EasyCwmp

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000110easycwmp[All Projects] Questionpublic2016-01-06 12:052016-01-13 09:36
Reporteroleal 
Assigned Tomohamed.kallel 
PrioritynormalSeveritymajorReproducibilityalways
StatusresolvedResolutionno change required 
PlatformOSOS Version
Summary0000110: Not able to get information from ExternalIPAddress
DescriptionHi,

I have tried to use EasyCwmp-1.2.6 on Lubunto distro but I'm not able to put it working to send the External IP.
I have followed all steps on "http://www.easycwmp.org/index.php/manual [^] - EasyCwmp install for other Linux distributions" in order to compile all dependencies.

This process was ok and I didn't get errors during the compilation.

The problem is that the easycwmp is not able to get information from ExternalIPAddress.

Below you can see the result from InternetGatewayDevice

# bash /usr/sbin/easycwmp get value InternetGatewayDevice.
{ "parameter": "InternetGatewayDevice.DeviceInfo.SpecVersion", "value": "1.0" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.ProvisioningCode", "value": "" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.Manufacturer", "value": "HUAWEI" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.ManufacturerOUI", "value": "00259E" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.ProductClass", "value": "HG8000H" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.SerialNumber", "value": "FFFFFF123456" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.HardwareVersion", "value": "HW_v01" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.SoftwareVersion", "value": "R16M01D5" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.UpTime", "value": "283", "type": "xsd:unsignedInt" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.DeviceLog", "value": "" }
{ "parameter": "InternetGatewayDevice.ManagementServer.URL", "value": "http:\/\/192.168.1.75:7547" }
{ "parameter": "InternetGatewayDevice.ManagementServer.Username", "value": "cwmp" }
{ "parameter": "InternetGatewayDevice.ManagementServer.Password", "value": "" }
{ "parameter": "InternetGatewayDevice.ManagementServer.PeriodicInformEnable", "value": "1", "type": "xsd:boolean" }
{ "parameter": "InternetGatewayDevice.ManagementServer.PeriodicInformInterval", "value": "30", "type": "xsd:unsignedInt" }
{ "parameter": "InternetGatewayDevice.ManagementServer.PeriodicInformTime", "value": "0001-01-01T00:00:00Z", "type": "xsd:dateTime" }
{ "parameter": "InternetGatewayDevice.ManagementServer.ConnectionRequestURL", "value": "" }
{ "parameter": "InternetGatewayDevice.ManagementServer.ConnectionRequestUsername", "value": "admin" }
{ "parameter": "InternetGatewayDevice.ManagementServer.ConnectionRequestPassword", "value": "" }
{ "parameter": "InternetGatewayDevice.ManagementServer.ParameterKey", "value": "" }
{ "parameter": "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.ConnectionStatus", "value": "Connected" }
{ "parameter": "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.ExternalIPAddress", "value": "" }
{ "parameter": "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.MACAddress", "value": "" }
{ "parameter": "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.2.WANPPPConnection.1.Enable", "value": "", "type": "xsd:boolean" }
{ "parameter": "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.2.WANPPPConnection.1.Username", "value": "" }
{ "parameter": "InternetGatewayDevice.WANDevice.1.WANConnectionDevice.2.WANPPPConnection.1.Password", "value": "" }
#

Can you please help me on this?
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0000364)
oleal (reporter)
2016-01-06 12:09

I forgot to add the following information:

Platform - Lubunto
OS - Linux
OS Version - 4.2.0-16-generic
(0000365)
mohamed.kallel (manager)
2016-01-07 09:21

You should edit the wan_device script (under /usr/share/easycwmp/functions/) according to your network config.

The function wan_device_get_interface_maps() should return the right wan interfaces. And the wan_device_get_ipcx_ipaddr()should return the right ip address.

The existing data model in EasyCwmp are provided as example to show to developers how to implement Data Model prameters. These example are developed based on OpenWRT linux systems. You have to adapt the data model scripts according to your Linux system. (You do not need to edit easycwmp.sh neither common scripts).
(0000369)
oleal (reporter)
2016-01-08 15:14

Hi,


The "enp0s3" is the name of my wan interface.

In the function "wan_device_get_ipcx_ipaddr()" I have changed the line "network_get_ipaddr val "$iface" " to "network_get_ipaddr val enp0s3" and it is not working.

Below the function.

wan_device_get_ipcx_ipaddr() {
    local val iface="$1"
    network_get_ipaddr val enp0s3
    echo "$val"
}

Are you able to identify the problem?
The "network_get_ipaddr" it is part of other package?

Thanks.
(0000370)
mohamed.kallel (manager)
2016-01-08 15:34

network_get_ipaddr() is an openWRT predefined functions. You can not use it for your Linux system. You have to develop your own script to retrieve the ipaddress.

you can call ifconfig with awk, grep , sed... to fetch the ip address

- Issue History
Date Modified Username Field Change
2016-01-06 12:05 oleal New Issue
2016-01-06 12:09 oleal Note Added: 0000364
2016-01-07 09:21 mohamed.kallel Note Added: 0000365
2016-01-08 09:14 mohamed.kallel Status new => resolved
2016-01-08 09:14 mohamed.kallel Resolution open => no change required
2016-01-08 09:14 mohamed.kallel Assigned To => mohamed.kallel
2016-01-08 15:14 oleal Note Added: 0000369
2016-01-08 15:14 oleal Status resolved => feedback
2016-01-08 15:14 oleal Resolution no change required => reopened
2016-01-08 15:34 mohamed.kallel Note Added: 0000370
2016-01-13 09:36 mohamed.kallel Status feedback => resolved
2016-01-13 09:36 mohamed.kallel Resolution reopened => no change required


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker