device is offline when usinf cURL POST

Dan Morphis dan at milkcarton.com
Mon Jul 16 15:45:34 EDT 2018


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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genieacs.com/pipermail/users/attachments/20180716/d0d7b9a0/attachment.html>


More information about the Users mailing list