View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000320easycwmp[All Projects] Helppublic2018-04-17 03:352018-05-10 15:16
Assigned Tomohamed.kallel 
StatusresolvedResolutionno change required 
PlatformOSOS Version
Summary0000320: easycwmp cannot set the value of the corresponding field by "easycwmp set Device.ManagementServer.Username XXX"
DescriptionHello, I am a user of easycwmp. I have a question in use, I would like to ask for it. If it is convenient, can you help me to answer it? This question has really been bothering me for a long time. Thank you.

The problem is that:

Easycwmp runs in openwrt system, compiled easycwmp-1.6.1 version. Both openwrt and easycwmp run normally, and the value of the field corresponding to the field can be obtained by "easycwmp get Device.ManagementServer.Username", but it is not possible to set the value of the corresponding field by "easycwmp set Device.ManagementServer.Username XXX". There are corresponding fields in the management_server file under the function folder, and support the setting function. Other fields can only be read through get command, but not set. I want to ask if there are less steps in compiling or configuring. Or is my configuration wrong? How can we configure the values of existing fields through easycwmp?

Thanks again!
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
yuhan (reporter)
2018-04-17 03:49

root@TAU:~# easycwmp set Device.ManagementServer.Username huhuhu
root@TAU:~# easycwmp get Device.ManagementServer.Username
{ "parameter": "Device.ManagementServer.Username", "value": "easycwmp" }

common_execute_method_param "$DMROOT.ManagementServer.Username" "1" "$UCI_GET easycwmp.@acs[0].username" "management_server_set easycwmp.@acs[0].username"

management_server_set_url() {
    local val=$1
    local chk=`echo $val | grep "[a-zA-Z0-9_]://.*"`
    [ "$chk" = "" ] && return $E_INVALID_PARAMETER_VALUE

    $UCI_SET easycwmp.@acs[0].url=$val
    return 0
nromero (reporter)
2018-04-19 10:27

Hi yuhan,

You need to apply your changes after setting them.

root@OpenWrt:/# easycwmp get Device.ManagementServer.Username
{ "parameter": "Device.ManagementServer.Username", "value": "easycwmp" }

root@OpenWrt:/# easycwmp set Device.ManagementServer.Username huhuhu

root@OpenWrt:/# easycwmp apply
{ "status": "1", "config_load": "1" }

root@OpenWrt:/# easycwmp get Device.ManagementServer.Username
{ "parameter": "Device.ManagementServer.Username", "value": "huhuhu" }
yuhan (reporter)
2018-04-19 11:13

dear nromero,
Thank you very much. I'm glad to hear from you! You're right。

- Issue History
Date Modified Username Field Change
2018-04-17 03:35 yuhan New Issue
2018-04-17 03:49 yuhan Note Added: 0000858
2018-04-19 10:27 nromero Note Added: 0000859
2018-04-19 11:13 yuhan Note Added: 0000861
2018-05-10 15:16 mohamed.kallel Status new => resolved
2018-05-10 15:16 mohamed.kallel Resolution open => no change required
2018-05-10 15:16 mohamed.kallel Assigned To => mohamed.kallel

Copyright © 2000 - 2018 MantisBT Team
Powered by Mantis Bugtracker