View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000020 | easycwmp | Help | public | 2014-10-23 06:01 | 2014-10-29 14:13 |
Reporter | janmus | Assigned To | mohamed.kallel | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Platform | ARMv5TEJ | OS | Linux | OS Version | 3.0.8 |
Summary | 0000020: Run the easycwmp support RPC method [DeleteObject] problem from OpenACS | ||||
Description | The Default script as below: logger("=======>DeleteObject<======="); cpe.DeleteObject('InternetGatewayDevice.LANDevice.1.WLANConfiguration.', ''); logger("=======>END<======="); -------------------------------------------------------------------------- The output from jboss : INFO: Request is Inform INFO: oui=FFFFFF sn=FFFFFF123456 oui=FFFFFF, sn=FFFFFF123456, URL=http://192.168.0.118:7547/, hw=v0.153, sw=v1.553, cfg=null, ProvisioningCode= INFO: FFFFFF:FFFFFF123456 Configurator::run INFO: FFFFFF:FFFFFF123456 Backup cwmp tree INFO: FFFFFF:FFFFFF123456 Configurator::CheckParameters INFO: oui=FFFFFF sn=FFFFFF123456 Request is GetParameterValuesResponse INFO: =======>DeleteObject<======= 11:34:28,148 INFO [STDOUT] Received: DeleteObject 11:34:28,161 INFO [STDOUT] End of processing INFO: oui=FFFFFF sn=FFFFFF123456 Request is Fault 11:34:28,425 INFO [STDOUT] Fault: CWMP fault cwmp: Invalid parameter name SEVERE: FFFFFF:FFFFFF123456 Run exception: [object Object] line: 0 column: 0 11:34:33,432 INFO [STDOUT] Received: null 11:34:33,434 INFO [STDOUT] End of processing | ||||
Tags | No tags attached. | ||||
e-mail notification | |||||
|
the RPC method [DeleteObject] required the number of the object instance to be deleted. try with this (object instance 2 must exist): logger("=======>DeleteObject<======="); cpe.DeleteObject('InternetGatewayDevice.LANDevice.1.WLANConfiguration.2.', ''); logger("=======>END<======="); |
|
After testing, some errors occur : INFO: =======>DeleteObject<======= 11:44:28,133 INFO [STDOUT] Received: DeleteObject 11:44:28,137 INFO [STDOUT] End of processing INFO: oui=FFFFFF sn=FFFFFF123456 Request is Fault 11:44:28,808 INFO [STDOUT] Fault: CWMP fault cwmp: Invalid parameter name SEVERE: FFFFFF:FFFFFF123456 Run exception: [object Object] line: 0 column: 0 11:44:33,815 INFO [STDOUT] Received: null 11:44:33,817 INFO [STDOUT] End of processing ---------------------------------------------------------------- Error messages seem to be almost as big as the previous. How to add a new object like this: 'InternetGatewayDevice.LANDevice.1.WLANConfiguration.2.' How to get the RPC method [DeleteObject] required the number of the object instance to be deleted ? |
|
You have to choose the right number of instance. check it by this cmd : easycwmp --json get name "" 0 ............. { "parameter": "InternetGatewayDevice.LANDevice.1.WLANConfiguration.2.SSID", "fault_code": "", "writable": "1" } ............... |
|
I cat not find the node : "InternetGatewayDevice.LANDevice.1.WLANConfiguration.2.SSID" The output as below # /usr/sbin/easycwmp --json get name "" 0 { "parameter": "InternetGatewayDevice.LANDevice.", "fault_code": "", "writable": "0" } { "parameter": "InternetGatewayDevice.LANDevice.1.", "fault_code": "", "writable": "0" } { "parameter": "InternetGatewayDevice.LANDevice.1.WLANConfiguration.", "fault_code": "", "writable": "1" } |
|
you have to add instance and then after you can delete it cpe.AddObject('InternetGatewayDevice.LANDevice.1.WLANConfiguration.', ''); Use the cmd " /usr/sbin/easycwmp --json get name "" 0 " to check the instance number to be deleted |
|
If use the Default script, ------------------------------------------------------------------------------ cpe.AddObject('InternetGatewayDevice.LANDevice.1.WLANConfiguration.', ''); then use cmd to check : Nothing changed as in previous. ------------------------------------------------------------------------------ If use the cmd : # /usr/sbin/easycwmp --json add object "InternetGatewayDevice.LANDevice.1.WLANConfiguration." There seems to be a response { "status": "1", "instance": "1" } then use cmd to check : Still Nothing changed as in previous. { "parameter": "InternetGatewayDevice.LANDevice.", "fault_code": "", "writable": "0" } { "parameter": "InternetGatewayDevice.LANDevice.1.", "fault_code": "", "writable": "0" } { "parameter": "InternetGatewayDevice.LANDevice.1.WLANConfiguration.", "fault_code": "", "writable": "1" } |
|
execute this cmd more than one time : /usr/sbin/easycwmp --json add object "InternetGatewayDevice.LANDevice.1.WLANConfiguration." and check if instance number is incremented |
|
The instance number is not incremented after I test. Could you help me check the attached file (scripts.RAR), Does the scripts of easycwmp-1.0.3 have any problems? |
|
|
|
what is your linux distribution? Because scripts are developed and tested under Openwrt. Please note that OpenWrt use uci configuration files. If your linux is not OpenWRT, then you have to update the scripts according to your linux system |
|
In embedded linux system (MontaVista) root # uname -a Linux MontaVista 3.0.8 #1 Tue Aug 5 14:45:54 CST 2014 armv5tejl GNU/Linux In x86 linux system (fedora) # uname -r 2.6.35.6-45.fc14.i686 These platforms are the same test results. |
|
Then you have to update the data model scripts according to your linux system configurations |
|
Does the easycwmp scripts can not developed and tested under general x86 linux ? I do'nt clear, Could you teach me, how to configure, Thank you ! |
|
easycwmp script can run on any linux distribution. But you have to update the set, get, addobject and delete object functions according to your linux system. Example: if we take the "get_wlan_enable()" function. You have to update the command of getting value with the related command of your system. So you have to change the following line with a command related to your linux system val=`$UCI_GET wireless.wl0.disabled 2> /dev/null` |
|
OK, I will test, Thank you very mush. |
Date Modified | Username | Field | Change |
---|---|---|---|
2014-10-23 06:01 | janmus | New Issue | |
2014-10-23 17:38 |
|
Note Added: 0000083 | |
2014-10-23 17:39 |
|
Note Edited: 0000083 | |
2014-10-24 06:03 | janmus | Note Added: 0000084 | |
2014-10-27 09:12 |
|
Note Added: 0000088 | |
2014-10-27 09:13 |
|
Note Edited: 0000088 | |
2014-10-27 09:23 | mohamed.kallel | Note Edited: 0000088 | |
2014-10-27 09:24 | mohamed.kallel | Note Edited: 0000088 | |
2014-10-27 09:24 | mohamed.kallel | Note Edited: 0000088 | |
2014-10-27 09:24 | mohamed.kallel | Note Edited: 0000088 | |
2014-10-28 04:12 | janmus | Note Added: 0000091 | |
2014-10-28 04:13 | janmus | Note Edited: 0000091 | |
2014-10-28 09:04 |
|
Note Added: 0000092 | |
2014-10-28 09:46 | janmus | Note Added: 0000094 | |
2014-10-28 16:47 |
|
Note Added: 0000095 | |
2014-10-29 10:25 | janmus | Note Added: 0000096 | |
2014-10-29 10:26 | janmus | File Added: scripts.rar | |
2014-10-29 10:58 |
|
Note Added: 0000097 | |
2014-10-29 11:12 | mohamed.kallel | Note Edited: 0000097 | |
2014-10-29 11:13 | mohamed.kallel | Note Edited: 0000097 | |
2014-10-29 11:13 | janmus | Note Added: 0000098 | |
2014-10-29 11:15 | mohamed.kallel | Note Added: 0000099 | |
2014-10-29 11:26 | janmus | Note Added: 0000100 | |
2014-10-29 12:04 | mohamed.kallel | Note Added: 0000101 | |
2014-10-29 12:17 | janmus | Note Added: 0000103 | |
2014-10-29 14:13 | mohamed.kallel | Status | new => resolved |
2014-10-29 14:13 | mohamed.kallel | Resolution | open => fixed |
2014-10-29 14:13 | mohamed.kallel | Assigned To | => mohamed.kallel |