Setting up Geniacs from scratch

Ulises Nicolini ulises at vianetcon.com.ar
Thu Jul 7 13:32:33 EDT 2016


Hi, I have recently discovered Geniacs and I intend to use it as a 
TR-069 provisioning system for some Huawei ONTs that we just bought.
Up to now I have installed Geniacs and get it to communicate with the 
ONT (Huawei HG8247H) and get some information out of it .. but what I 
can't do is SETTING any parameter .. e.g. SSID for the wifi interface .

I tried not only using de GUI, but also using curl:

curl -i 
'http://localhost:7557/devices/00259E-HG8247H-4857544394F39D68/tasks' -X 
POST --data '{"name":"setParameterValues", 
"parameterValues":[["InternetGatewayDevice.LANDevice.1.WLANConfiguration.1.SSID", 
"GenieACS", 
"xsd:string"],["InternetGatewayDevice.LANDevice.1.WLANConfiguration.1.PreSharedKey.1.PreSharedKey", 
"hello world", "xsd:string"]]}'

Here is the log debug/00259E-HG8247H-4857544394F39D68.dump for further 
analysis:

# REQUEST Thu Jul 07 2016 14:24:59 GMT-0300 (ART)
{"host":"190.1.0.74:7547","soapaction":"","connection":"Keep-Alive","content-type":"text/xml; 
charset=UTF-8","user-agent":"HW_WAP_CWMP_V02","content-length":"2350"}
<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-0">
<SOAP-ENV:Header>
<cwmp:ID SOAP-ENV:mustUnderstand="1">9424</cwmp:ID>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<cwmp:Inform>
<DeviceId>
<Manufacturer>Huawei Technologies Co., Ltd</Manufacturer>
<OUI>00259E</OUI>
<ProductClass>HG8247H</ProductClass>
<SerialNumber>4857544394F39D68</SerialNumber>
</DeviceId>
<Event SOAP-ENC:arrayType="cwmp:EventStruct[1]">
<EventStruct>
<EventCode>2 PERIODIC</EventCode>
<CommandKey/>
</EventStruct>
</Event>
<MaxEnvelopes>1</MaxEnvelopes>
<CurrentTime>2016-07-07T14:24:59+00:00</CurrentTime>
<RetryCount>1</RetryCount>
<ParameterList SOAP-ENC:arrayType="cwmp:ParameterValueStruct[8]">
<ParameterValueStruct>
<Name>InternetGatewayDevice.ManagementServer.ParameterKey</Name>
<Value xsi:type="xsd:string"/>
</ParameterValueStruct>
<ParameterValueStruct>
<Name>InternetGatewayDevice.ManagementServer.ConnectionRequestURL</Name>
<Value 
xsi:type="xsd:string">http://10.66.0.3:7547/969460279579c2d9a6c5711907a324ca</Value>
</ParameterValueStruct>
<ParameterValueStruct>
<Name>InternetGatewayDevice.DeviceSummary</Name>
<Value xsi:type="xsd:string">InternetGatewayDevice:1.1[](Baseline:1, 
EthernetLAN:1, WiFiLAN:1, Time:1, IPPing:1, DeviceAssociation:1)</Value>
</ParameterValueStruct>
<ParameterValueStruct>
<Name>InternetGatewayDevice.DeviceInfo.SpecVersion</Name>
<Value xsi:type="xsd:string">1.0</Value>
</ParameterValueStruct>
<ParameterValueStruct>
<Name>InternetGatewayDevice.DeviceInfo.HardwareVersion</Name>
<Value xsi:type="xsd:string">4B4.A</Value>
</ParameterValueStruct>
<ParameterValueStruct>
<Name>InternetGatewayDevice.DeviceInfo.SoftwareVersion</Name>
<Value xsi:type="xsd:string">V3R013C10S126</Value>
</ParameterValueStruct>
<ParameterValueStruct>
<Name>InternetGatewayDevice.DeviceInfo.ProvisioningCode</Name>
<Value xsi:type="xsd:string"/>
</ParameterValueStruct>
<ParameterValueStruct>
<Name>InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.ExternalIPAddress</Name>
<Value xsi:type="xsd:string">10.66.0.3</Value>
</ParameterValueStruct>
</ParameterList>
</cwmp:Inform>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>


# RESPONSE Thu Jul 07 2016 14:24:59 GMT-0300 (ART)
{"Server":"GenieACS/1.0.0","SOAPServer":"GenieACS/1.0.0","Content-Type":"text/xml; 
charset=\"utf-8\"","Set-Cookie":"session=30d28210ff4b59f3"}
<?xml version="1.0" encoding="UTF-8"?>
<soap-env:Envelope 
xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/" 
xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:cwmp="urn:dslforum-org:cwmp-1-0"><soap-env:Header><cwmp:ID 
soap-env:mustUnderstand="1">9424</cwmp:ID></soap-env:Header><soap-env:Body><cwmp:InformResponse><MaxEnvelopes>1</MaxEnvelopes></cwmp:InformResponse></soap-env:Body></soap-env:Envelope>


# REQUEST Thu Jul 07 2016 14:24:59 GMT-0300 (ART)
{"host":"190.1.0.74:7547","connection":"Keep-Alive","cookie":"session=30d28210ff4b59f3","user-agent":"HW_WAP_CWMP_V02","content-length":"0"}


# RESPONSE Thu Jul 07 2016 14:24:59 GMT-0300 (ART)
{"Server":"GenieACS/1.0.0","SOAPServer":"GenieACS/1.0.0","Content-Type":"text/xml; 
charset=\"utf-8\""}
<?xml version="1.0" encoding="UTF-8"?>
<soap-env:Envelope 
xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/" 
xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:cwmp="urn:dslforum-org:cwmp-1-0"><soap-env:Header><cwmp:ID 
soap-env:mustUnderstand="1">155c664235b00</cwmp:ID></soap-env:Header><soap-env:Body><cwmp:GetParameterNames><ParameterPath/><NextLevel>1</NextLevel></cwmp:GetParameterNames></soap-env:Body></soap-env:Envelope>


# REQUEST Thu Jul 07 2016 14:24:59 GMT-0300 (ART)
{"host":"190.1.0.74:7547","soapaction":"","connection":"Keep-Alive","content-type":"text/xml; 
charset=UTF-8","cookie":"session=30d28210ff4b59f3","user-agent":"HW_WAP_CWMP_V02","content-length":"681"}
<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-0">
<SOAP-ENV:Header>
<cwmp:ID SOAP-ENV:mustUnderstand="1">155c664235b00</cwmp:ID>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<cwmp:GetParameterNamesResponse>
<ParameterList SOAP-ENC:arrayType="cwmp:ParameterInfoStruct[1]">
<ParameterInfoStruct>
<Name>InternetGatewayDevice.</Name>
<Writable>0</Writable>
</ParameterInfoStruct>
</ParameterList>
</cwmp:GetParameterNamesResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>


# RESPONSE Thu Jul 07 2016 14:24:59 GMT-0300 (ART)
{"Server":"GenieACS/1.0.0","SOAPServer":"GenieACS/1.0.0"}



I need some help to get started, or at least a better way to debug the 
proccess :(


PS: I have noticed that "Writable" is set to 0 .. is that ok? Could not 
find any way to change it.

<ParameterInfoStruct>
<Name>InternetGatewayDevice.</Name>
<Writable>0</Writable>
</ParameterInfoStruct>



Best regards,
Ulises
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genieacs.com/pipermail/users/attachments/20160707/5077c3bb/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: genieacs-1.png
Type: image/png
Size: 29250 bytes
Desc: not available
URL: <http://lists.genieacs.com/pipermail/users/attachments/20160707/5077c3bb/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: genieacs-2.png
Type: image/png
Size: 63409 bytes
Desc: not available
URL: <http://lists.genieacs.com/pipermail/users/attachments/20160707/5077c3bb/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: genieacs-3.png
Type: image/png
Size: 28537 bytes
Desc: not available
URL: <http://lists.genieacs.com/pipermail/users/attachments/20160707/5077c3bb/attachment-0005.png>


More information about the Users mailing list