View Issue Details

IDProjectCategoryView StatusLast Update
0000171easycwmpHelppublic2017-01-27 16:16
Reporterpoori401 Assigned Tomohamed.kallel  
PriorityurgentSeverityminorReproducibilityalways
Status resolvedResolutionno change required 
PlatformLinuxOSUbuntuOS Version15.04
Summary0000171: Able to send Inform but not able to get GPV response from Easycwmp
DescriptionHi Team,

I am not able to get the GPV response from the easycwmp.

ACS : apache php simulator
Host : Ubuntu 15.04


Here is my datamodel o/p
root@ubuntu-VirtualBox:~# /usr/sbin/easycwmp get
{ "parameter": "InternetGatewayDevice.DeviceInfo.SpecVersion", "value": "1.0" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.ProvisioningCode", "value": "" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.Manufacturer", "value": "easycwmp" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.ManufacturerOUI", "value": "FFFFFF" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.ProductClass", "value": "easycwmp" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.SerialNumber", "value": "FFFFFF123456" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.HardwareVersion", "value": "example_hw_version" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.SoftwareVersion", "value": "example_sw_version" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.UpTime", "value": "6536", "type": "xsd:unsignedInt" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.DeviceLog", "value": "" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.MemoryStatus.Total", "value": "2048844" }
{ "parameter": "InternetGatewayDevice.DeviceInfo.MemoryStatus.Free", "value": "297184" }
{ "parameter": "InternetGatewayDevice.IP.Diagnostics.IPPing.DiagnosticsState", "value": "None" }
{ "parameter": "InternetGatewayDevice.IP.Diagnostics.IPPing.Host", "value": "" }
{ "parameter": "InternetGatewayDevice.IP.Diagnostics.IPPing.NumberOfRepetitions", "value": "3", "type": "xsd:unsignedInt" }
{ "parameter": "InternetGatewayDevice.IP.Diagnostics.IPPing.Timeout", "value": "1000", "type": "xsd:unsignedInt" }
{ "parameter": "InternetGatewayDevice.IP.Diagnostics.IPPing.DataBlockSize", "value": "64", "type": "xsd:unsignedInt" }
{ "parameter": "InternetGatewayDevice.IP.Diagnostics.IPPing.SuccessCount", "value": "0", "type": "xsd:unsignedInt" }
{ "parameter": "InternetGatewayDevice.IP.Diagnostics.IPPing.FailureCount", "value": "0", "type": "xsd:unsignedInt" }
{ "parameter": "InternetGatewayDevice.IP.Diagnostics.IPPing.AverageResponseTime", "value": "0", "type": "xsd:unsignedInt" }
{ "parameter": "InternetGatewayDevice.IP.Diagnostics.IPPing.MinimumResponseTime", "value": "0", "type": "xsd:unsignedInt" }
{ "parameter": "InternetGatewayDevice.IP.Diagnostics.IPPing.MaximumResponseTime", "value": "0", "type": "xsd:unsignedInt" }
{ "parameter": "InternetGatewayDevice.ManagementServer.URL", "value": "http:\/\/10.4.33.86\/CWMP2\/post_act_abd1.php" }
{ "parameter": "InternetGatewayDevice.ManagementServer.Username", "value": "" }
{ "parameter": "InternetGatewayDevice.ManagementServer.Password", "value": "" }
{ "parameter": "InternetGatewayDevice.ManagementServer.PeriodicInformEnable", "value": "0", "type": "xsd:boolean" }
{ "parameter": "InternetGatewayDevice.ManagementServer.PeriodicInformInterval", "value": "100", "type": "xsd:unsignedInt" }
{ "parameter": "InternetGatewayDevice.ManagementServer.PeriodicInformTime", "value": "0001-01-01T00:00:00Z", "type": "xsd:dateTime" }
{ "parameter": "InternetGatewayDevice.ManagementServer.ConnectionRequestURL", "value": "http:\/\/10.4.16.45:7547\/" }
{ "parameter": "InternetGatewayDevice.ManagementServer.ConnectionRequestUsername", "value": "" }
{ "parameter": "InternetGatewayDevice.ManagementServer.ConnectionRequestPassword", "value": "" }
{ "parameter": "InternetGatewayDevice.ManagementServer.ParameterKey", "value": "" }

Here is my configuration file
# easycwmp uci configuration

config local
# option interface eth0
    option interface enp0s3
    option port 7547
    option ubus_socket /var/run/ubus.sock
    option date_format %FT%T%z
    #option username easycwmp
    #option password easycwmp
    option provisioning_code ''
#Logging levels: Critic=0, Warning=1, Notice=2, Info=3, Debug=4
    option logging_level '3'

config acs
    option url http://10.4.33.86/CWMP2/post_act_abd1.php
    #option username easycwmp
    #option password easycwmp
    option parameter_key ''
    option periodic_enable '0'
    option periodic_interval '100'
    option periodic_time '0001-01-01T00:00:00Z'

config device
    option manufacturer easycwmp
    option oui FFFFFF
    option product_class easycwmp
    option serial_number FFFFFF123456
    option hardware_version example_hw_version
    option software_version example_sw_version

Here is my ACS XML file
<SOAP-ENV:Envelope xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:cwmp="urn:dslforum-org:cwmp-1-2" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <SOAP-ENV:Header>
        <cwmp:ID SOAP-ENV:mustUnderstand="1">GPV</cwmp:ID>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
        <cwmp:GetParameterValues>
            <ParameterNames>
                    <Name>InternetGatewayDevice.IP.</Name>
            </ParameterNames>
        </cwmp:GetParameterValues>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>


Here is the o/p of the easycwmp
root@ubuntu-VirtualBox:~# /usr/sbin/easycwmpd -f -b
2016-10-26 12:56:07 [easycwmp] NOTICE - external script init
config_init_local(55):: easycwmp.@local[0].interface=enp0s3
config_init_local(65):: easycwmp.@local[0].port=7547
config_init_local(83):: easycwmp.@local[0].ubus_socket=/var/run/ubus.sock
config_init_local(94):: easycwmp.@local[0].logging_level=3
config_init_acs(159):: easycwmp.@acs[0].url=http://10.4.33.86/CWMP2/post_act_abd1.php
config_init_acs(177):: easycwmp.@acs[0].periodic_enable=0
config_init_acs(183):: easycwmp.@acs[0].periodic_interval=100
config_init_acs(190):: easycwmp.@acs[0].periodic_time=0001-01-01T00:00:00Z
2016-10-26 12:56:07 [easycwmp] NOTICE - external: execute update_value_change
2016-10-26 12:56:08 [easycwmp] NOTICE - daemon started
2016-10-26 12:56:08 [easycwmp] NOTICE - external: execute inform device_id
2016-10-26 12:56:08 [easycwmp] NOTICE - external script exit
2016-10-26 12:56:08 [easycwmp] NOTICE - add event '1 BOOT'
2016-10-26 12:56:08 [easycwmp] NOTICE - interface enp0s3 has ip 10.4.16.45
main(320): ubus initialization failed
+++ HTTP SERVER CONFIGURATION +++
ip: '10.4.16.45'
port: '7547'
--- HTTP SERVER CONFIGURATION ---
2016-10-26 12:56:08 [easycwmp] NOTICE - http server initialized
2016-10-26 12:56:08 [easycwmp] NOTICE - entering main loop
2016-10-26 12:56:08 [easycwmp] NOTICE - start session
+++ HTTP CLIENT CONFIGURATION +++
http_client_init(50):: url: http://10.4.33.86/CWMP2/post_act_abd1.php
http_client_init(56):: ssl_verify: SSL certificate validation disabled.
--- HTTP CLIENT CONFIGURATION ---
2016-10-26 12:56:08 [easycwmp] NOTICE - configured acs url http://10.4.33.86/CWMP2/post_act_abd1.php
2016-10-26 12:56:08 [easycwmp] NOTICE - external script init
2016-10-26 12:56:08 [easycwmp] NOTICE - external: execute inform parameter
2016-10-26 12:56:08 [easycwmp] NOTICE - send Inform
+++ SEND HTTP REQUEST +++
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
 <soap_env:Envelope
xmlns:soap_env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:soap_enc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:cwmp="urn:dslforum-org:cwmp-1-2">
  <soap_env:Header>
   <cwmp:ID soap_env:mustUnderstand="1">1</cwmp:ID>
  </soap_env:Header>
  <soap_env:Body>
   <cwmp:Inform>
    <DeviceId>
     <Manufacturer>easycwmp</Manufacturer>
     <OUI>FFFFFF</OUI>
     <ProductClass>easycwmp</ProductClass>
     <SerialNumber>FFFFFF123456</SerialNumber>
    </DeviceId>
    <Event soap_enc:arrayType="cwmp:EventStruct[1]">
     <EventStruct>
      <EventCode>1 BOOT</EventCode>
      <CommandKey />
     </EventStruct>
    </Event>
    <MaxEnvelopes>1</MaxEnvelopes>
    <CurrentTime>2016-10-26T12:56:08+05:00</CurrentTime>
    <RetryCount>0</RetryCount>
    <ParameterList soap_enc:arrayType="cwmp:ParameterValueStruct[10]">
     <ParameterValueStruct>
      <Name>InternetGatewayDevice.DeviceInfo.HardwareVersion</Name>
      <Value xsi:type="xsd:string">example_hw_version</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>InternetGatewayDevice.DeviceInfo.Manufacturer</Name>
      <Value xsi:type="xsd:string">easycwmp</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>InternetGatewayDevice.DeviceInfo.ManufacturerOUI</Name>
      <Value xsi:type="xsd:string">FFFFFF</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>InternetGatewayDevice.DeviceInfo.ProductClass</Name>
      <Value xsi:type="xsd:string">easycwmp</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>InternetGatewayDevice.DeviceInfo.ProvisioningCode</Name>
      <Value xsi:type="xsd:string"></Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>InternetGatewayDevice.DeviceInfo.SerialNumber</Name>
      <Value xsi:type="xsd:string">FFFFFF123456</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>InternetGatewayDevice.DeviceInfo.SoftwareVersion</Name>
      <Value xsi:type="xsd:string">example_sw_version</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>InternetGatewayDevice.DeviceInfo.SpecVersion</Name>
      <Value xsi:type="xsd:string">1.0</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>InternetGatewayDevice.ManagementServer.ConnectionRequestURL</Name>
      <Value xsi:type="xsd:string">http://10.4.16.45:7547/</Value>
     </ParameterValueStruct>
     <ParameterValueStruct>
      <Name>InternetGatewayDevice.ManagementServer.ParameterKey</Name>
      <Value xsi:type="xsd:string"></Value>
     </ParameterValueStruct>
    </ParameterList>
   </cwmp:Inform>
  </soap_env:Body>
 </soap_env:Envelope>
--- SEND HTTP REQUEST ---
* Trying 10.4.33.86...
* Connected to 10.4.33.86 (10.4.33.86) port 80 (#0)
> POST /CWMP2/post_act_abd1.php HTTP/1.1
Host: 10.4.33.86
User-Agent: easycwmp
Content-Type: text/xml; charset="utf-8"
SOAPAction:
Content-Length: 2871
Expect: 100-continue

< HTTP/1.1 100 Continue
* We are completely uploaded and fine
< HTTP/1.1 200 OK
< Date: Wed, 26 Oct 2016 07:26:05 GMT
< Server: Apache/2.2.16 (Debian)
< X-Powered-By: PHP/5.4.4-14+deb7u2
< Vary: Accept-Encoding
< Content-Length: 543
< Content-Type: text/html
<
* Connection #0 to host 10.4.33.86 left intact
+++ RECEIVED HTTP RESPONSE +++
<env:Envelope xmlns:enc='http://schemas.xmlsoap.org/soap/encoding/' xmlns:env='http://schemas.xmlsoap.org/soap/envelope/' xmlns:cwmp='urn:dslforum-org:cwmp-1-0' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:xsi='http://w:ww.w3.org/2001/XMLSchema-instance'>
<env:Header><cwmp:ID SOAP-ENV:mustUnderstand='1'>073ad5f1</cwmp:ID>
<cwmp:NoMoreRequests>1</cwmp:NoMoreRequests>
</env:Header>
<env:Body><cwmp:InformResponse xmlns:cwmp='urn:dslforum-org:cwmp-1-0'><MaxEnvelopes>1</MaxEnvelopes></cwmp:InformResponse></env:Body></env:Envelope>
--- RECEIVED HTTP RESPONSE ---
2016-10-26 12:56:08 [easycwmp] NOTICE - receive InformResponse from the ACS
2016-10-26 12:56:08 [easycwmp] NOTICE - send empty message to the ACS
+++ SEND EMPTY HTTP REQUEST +++
* Found bundle for host 10.4.33.86: 0x7ea210
* Re-using existing connection! (#0) with host 10.4.33.86
* Connected to 10.4.33.86 (10.4.33.86) port 80 (#0)
> POST /CWMP2/post_act_abd1.php HTTP/1.1
Host: 10.4.33.86
User-Agent: easycwmp
Content-Type: text/xml; charset="utf-8"
Content-Length: 0

< HTTP/1.1 200 OK
< Date: Wed, 26 Oct 2016 07:26:05 GMT
< Server: Apache/2.2.16 (Debian)
< X-Powered-By: PHP/5.4.4-14+deb7u2
< Vary: Accept-Encoding
< Content-Length: 630
< Content-Type: text/html
<
* Connection #0 to host 10.4.33.86 left intact
+++ RECEIVED HTTP RESPONSE +++
<SOAP-ENV:Envelope xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:cwmp="urn:dslforum-org:cwmp-1-2" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <SOAP-ENV:Header>
        <cwmp:ID SOAP-ENV:mustUnderstand="1">GPV</cwmp:ID>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
        <cwmp:GetParameterValues>
            <ParameterNames>
                    <Name>InternetGatewayDevice.IP.</Name>
            </ParameterNames>
        </cwmp:GetParameterValues>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

--- RECEIVED HTTP RESPONSE ---
2016-10-26 12:56:08 [easycwmp] NOTICE - received GetParameterValues method from the ACS
2016-10-26 12:56:08 [easycwmp] NOTICE - param value is NULL
2016-10-26 12:56:08 [easycwmp] NOTICE - param value is NULL
2016-10-26 12:56:08 [easycwmp] NOTICE - send GetParameterValuesResponse to the ACS
+++ SEND HTTP REQUEST +++
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
 <soap_env:Envelope
xmlns:soap_env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:soap_enc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:cwmp="urn:dslforum-org:cwmp-1-2">
  <soap_env:Header>
   <cwmp:ID soap_env:mustUnderstand="1">GPV</cwmp:ID>
  </soap_env:Header>
  <soap_env:Body>
   <cwmp:GetParameterValuesResponse>
    <ParameterList soap_enc:arrayType="cwmp:ParameterValueStruct[0]" />
   </cwmp:GetParameterValuesResponse>
  </soap_env:Body>
 </soap_env:Envelope>
--- SEND HTTP REQUEST ---
* Found bundle for host 10.4.33.86: 0x7ea210
* Re-using existing connection! (#0) with host 10.4.33.86
* Connected to 10.4.33.86 (10.4.33.86) port 80 (#0)
> POST /CWMP2/post_act_abd1.php HTTP/1.1
Host: 10.4.33.86
User-Agent: easycwmp
Content-Type: text/xml; charset="utf-8"
SOAPAction:
Content-Length: 633

* upload completely sent off: 633 out of 633 bytes
< HTTP/1.1 200 OK
< Date: Wed, 26 Oct 2016 07:26:05 GMT
< Server: Apache/2.2.16 (Debian)
< X-Powered-By: PHP/5.4.4-14+deb7u2
< Vary: Accept-Encoding
< Content-Length: 0
< Content-Type: text/html
<
* Connection #0 to host 10.4.33.86 left intact
+++ RECEIVED EMPTY HTTP RESPONSE +++
2016-10-26 12:56:08 [easycwmp] NOTICE - receive empty message from the ACS
2016-10-26 12:56:08 [easycwmp] NOTICE - external: execute apply service
2016-10-26 12:56:08 [easycwmp] NOTICE - external script exit
2016-10-26 12:56:08 [easycwmp] NOTICE - end session success
TagsNo tags attached.
e-mail notification

Activities

mohamed.kallel

2016-10-26 10:06

administrator   ~0000563

Last edited: 2016-10-26 10:07

Your GetParameterValue in your XML file is not conform to the standard (Chapter A.3.2.2) : https://www.broadband-forum.org/technical/download/TR-069_Amendment-5.pdf

You should use the xml tags <string> instead of <Name>

It should be:

<SOAP-ENV:Envelope xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" [^] xmlns:xsd="http://www.w3.org/2001/XMLSchema" [^] xmlns:cwmp="urn:dslforum-org:cwmp-1-2" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" [^] xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> [^]
    <SOAP-ENV:Header>
        <cwmp:ID SOAP-ENV:mustUnderstand="1">GPV</cwmp:ID>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
        <cwmp:GetParameterValues>
            <ParameterNames>
                    <string>InternetGatewayDevice.IP.</string>
            </ParameterNames>
        </cwmp:GetParameterValues>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

poori401

2016-10-28 08:34

reporter   ~0000567

Thanks a lot Kallel.

Yes, I have tested the GPV and SPV and they are working fine. You can close the issue.

Thanks and regards,
Abdul Muheedh B

Issue History

Date Modified Username Field Change
2016-10-26 09:26 poori401 New Issue
2016-10-26 10:06 mohamed.kallel Note Added: 0000563
2016-10-26 10:07 mohamed.kallel Note Edited: 0000563
2016-10-28 08:34 poori401 Note Added: 0000567
2017-01-27 16:16 mohamed.kallel Status new => resolved
2017-01-27 16:16 mohamed.kallel Resolution open => no change required
2017-01-27 16:16 mohamed.kallel Assigned To => mohamed.kallel