EasyCwmp

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000020easycwmp[All Projects] Helppublic2014-10-23 06:012014-10-29 14:13
Reporterjanmus 
Assigned Tomohamed.kallel 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
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.
Attached Filesrar file icon scripts.rar [^] (15,635 bytes) 2014-10-29 10:26

- Relationships

-  Notes
(0000083)
Anis (developer)
2014-10-23 17:38
edited on: 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<=======");

(0000084)
janmus (reporter)
2014-10-24 06:03

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 ?
(0000088)
Anis (developer)
2014-10-27 09:12
edited on: 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" }
...............

(0000091)
janmus (reporter)
2014-10-28 04:12
edited on: 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" }

(0000092)
Anis (developer)
2014-10-28 09:04

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
(0000094)
janmus (reporter)
2014-10-28 09:46

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" }
(0000095)
Anis (developer)
2014-10-28 16:47

execute this cmd more than one time :

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

and check if instance number is incremented
(0000096)
janmus (reporter)
2014-10-29 10:25

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?
(0000097)
Anis (developer)
2014-10-29 10:58
edited on: 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

(0000098)
janmus (reporter)
2014-10-29 11:13

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.
(0000099)
mohamed.kallel (manager)
2014-10-29 11:15

Then you have to update the data model scripts according to your linux system configurations
(0000100)
janmus (reporter)
2014-10-29 11:26

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 !
(0000101)
mohamed.kallel (manager)
2014-10-29 12:04

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`
(0000103)
janmus (reporter)
2014-10-29 12:17

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 Anis Note Added: 0000083
2014-10-23 17:39 Anis Note Edited: 0000083 View Revisions
2014-10-24 06:03 janmus Note Added: 0000084
2014-10-27 09:12 Anis Note Added: 0000088
2014-10-27 09:13 Anis Note Edited: 0000088 View Revisions
2014-10-27 09:23 mohamed.kallel Note Edited: 0000088 View Revisions
2014-10-27 09:24 mohamed.kallel Note Edited: 0000088 View Revisions
2014-10-27 09:24 mohamed.kallel Note Edited: 0000088 View Revisions
2014-10-27 09:24 mohamed.kallel Note Edited: 0000088 View Revisions
2014-10-28 04:12 janmus Note Added: 0000091
2014-10-28 04:13 janmus Note Edited: 0000091 View Revisions
2014-10-28 09:04 Anis Note Added: 0000092
2014-10-28 09:46 janmus Note Added: 0000094
2014-10-28 16:47 Anis 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 Anis Note Added: 0000097
2014-10-29 11:12 mohamed.kallel Note Edited: 0000097 View Revisions
2014-10-29 11:13 mohamed.kallel Note Edited: 0000097 View Revisions
2014-10-29 11:13 janmus Note Added: 0000098
2014-10-29 11:14 mohamed.kallel Note Revision Dropped: 97: 0000105
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


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker