View Issue Details

IDProjectCategoryView StatusLast Update
0000020easycwmpHelppublic2014-10-29 14:13
Reporterjanmus Assigned Tomohamed.kallel  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformARMv5TEJOSLinuxOS Version3.0.8
Summary0000020: Run the easycwmp support RPC method [DeleteObject] problem from OpenACS
DescriptionThe 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
TagsNo tags attached.
e-mail notification

Activities

user13

2014-10-23 17:38

  ~0000083

Last edited: 2014-10-23 17:39

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<=======");

janmus

2014-10-24 06:03

reporter   ~0000084

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 ?

user13

2014-10-27 09:12

  ~0000088

Last edited: 2014-10-27 09:24

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" }
...............

janmus

2014-10-28 04:12

reporter   ~0000091

Last edited: 2014-10-28 04:13

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" }

user13

2014-10-28 09:04

  ~0000092

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

janmus

2014-10-28 09:46

reporter   ~0000094

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" }

user13

2014-10-28 16:47

  ~0000095

execute this cmd more than one time :

/usr/sbin/easycwmp --json add object "InternetGatewayDevice.LANDevice.1.WLANConfiguration."

and check if instance number is incremented

janmus

2014-10-29 10:25

reporter   ~0000096

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?

janmus

2014-10-29 10:26

reporter  

scripts.rar (15,635 bytes)

user13

2014-10-29 10:58

  ~0000097

Last edited: 2014-10-29 11:13

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

janmus

2014-10-29 11:13

reporter   ~0000098

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.

mohamed.kallel

2014-10-29 11:15

administrator   ~0000099

Then you have to update the data model scripts according to your linux system configurations

janmus

2014-10-29 11:26

reporter   ~0000100

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 !

mohamed.kallel

2014-10-29 12:04

administrator   ~0000101

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`

janmus

2014-10-29 12:17

reporter   ~0000103

OK, I will test, Thank you very mush.

Issue History

Date Modified Username Field Change
2014-10-23 06:01 janmus New Issue
2014-10-23 17:38 user13 Note Added: 0000083
2014-10-23 17:39 user13 Note Edited: 0000083
2014-10-24 06:03 janmus Note Added: 0000084
2014-10-27 09:12 user13 Note Added: 0000088
2014-10-27 09:13 user13 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 user13 Note Added: 0000092
2014-10-28 09:46 janmus Note Added: 0000094
2014-10-28 16:47 user13 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 user13 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