device is offline when usinf cURL POST

eric at aisling-technologies.com eric at aisling-technologies.com
Sun Jul 15 21:31:30 EDT 2018


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?con
nection_request -X POST --data "{\"name\":\"refreshObject\",
\"objectName\":\"InternetGatewayDevice.SystemConfig.Status.ModemStatus.Downl
inkCurrentSpeed\"}"

 

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.Sta
tus.ModemStatus.DownlinkCurrentSpeed","device":"1C497B-B2338%2D168-GMC170508
001297","timestamp":"2018-07-15T22:52:11.705Z","_id":"5b4bd01b8aeb1a079946c2
61"}

 

The device however is not offline and it shows online in the GUI.  Any
thoughts?

 

Thank you.

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genieacs.com/pipermail/users/attachments/20180715/3bb5d1ce/attachment.html>


More information about the Users mailing list