device is offline when usinf cURL POST

maximouton maximouton at gmail.com
Fri Aug 31 02:34:22 EDT 2018


Dear all,

I reopen this "old" topic because I have a similar issue and Dan's response
didn't helped me. When I trace the flow on ACS server, I observe that the
request doesn't use the open CWMP session between the ACS and the device
but initiates a new one using private IP of the device which won't work
since device on customer premise behind a NAT.
When I perform a call form APIs I have the same issue but instead of a 202
I receive an error 504.

See attached files for details.

Am I doing something wrong?



Le lun. 16 juil. 2018 à 21:45, Dan Morphis <dan at milkcarton.com> a écrit :

> A 202 will be reported if a timely response is not returned from the CPE.
> Try adding  &timeout=3000 to the URI. See the API reference for more
> information <https://github.com/genieacs/genieacs/wiki/API-Reference>.
>
> On Sun, Jul 15, 2018 at 5:31 PM, <eric at aisling-technologies.com> wrote:
>
>> I am trying to use curl to do a post to refresh the
>> “InternetGatewayDevice.SystemConfig.Status.ModemStatus.DownlinkCurrentSpeed”
>> parameter.  When I run this command…
>>
>>
>>
>> curl -i
>> http://LOCALHOST:7557/devices/1C497B-B2338%252D168-GMC170508001297/tasks?connection_request
>> -X POST --data "{\"name\":\"refreshObject\",
>> \"objectName\":\"InternetGatewayDevice.SystemConfig.Status.ModemStatus.DownlinkCurrentSpeed\"}"
>>
>>
>>
>> I get the following output…
>>
>>
>>
>> HTTP/1.1 202 Device is offline
>>
>> GenieACS-Version: 1.1.2
>>
>> Content-Type: application/json
>>
>> Date: Sun, 15 Jul 2018 22:52:13 GMT
>>
>> Connection: keep-alive
>>
>> Transfer-Encoding: chunked
>>
>>
>>
>>
>> {"name":"refreshObject","objectName":"InternetGatewayDevice.SystemConfig.Status.ModemStatus.DownlinkCurrentSpeed","device":"1C497B-B2338%2D168-GMC170508001297","timestamp":"2018-07-15T22:52:11.705Z","_id":"5b4bd01b8aeb1a079946c261"}
>>
>>
>>
>> The device however *is not offline* and it shows online in the GUI.  Any
>> thoughts?
>>
>>
>>
>> Thank you.
>>
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.genieacs.com
>> http://lists.genieacs.com/mailman/listinfo/users
>>
>>
> _______________________________________________
> Users mailing list
> Users at lists.genieacs.com
> http://lists.genieacs.com/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genieacs.com/pipermail/users/attachments/20180831/f2a37b86/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: from_api_504.pcap
Type: application/octet-stream
Size: 429 bytes
Desc: not available
URL: <http://lists.genieacs.com/pipermail/users/attachments/20180831/f2a37b86/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: from_gui_202.pcap
Type: application/octet-stream
Size: 747 bytes
Desc: not available
URL: <http://lists.genieacs.com/pipermail/users/attachments/20180831/f2a37b86/attachment-0003.obj>


More information about the Users mailing list