API call failure

eric at aisling-technologies.com eric at aisling-technologies.com
Thu Apr 19 16:31:53 EDT 2018


We are getting closer…  See below.

 

C:\Users\eric>curl -i "http://###.###.###.###:7557/devices/1C497B-B2338%2D168-GMC170508001297/tasks?timeout=3000&connection_request" -X POST     --data '{ "name": "getParameterValues", "parameterNames": ["InternetGatewayDevice.DeviceInfo.ProductClass"] }'

curl: (52) Empty reply from server

curl: (6) Could not resolve host: name

curl: (6) Could not resolve host: getParameterValues,

curl: (6) Could not resolve host: parameterNames

curl: (6) Could not resolve host: [InternetGatewayDevice.DeviceInfo.ProductClass]

curl: (3) [globbing] unmatched close brace/bracket in column 1

 

this is just a lab setup that I access and play with when I have time.  I shut it off when not in use, but you’re right, it does need to be firewalled…

 

From: Users <users-bounces at lists.genieacs.com> On Behalf Of Dan Morphis
Sent: Thursday, April 19, 2018 4:10 PM
To: Community support for GenieACS users <users at lists.genieacs.com>
Subject: Re: API call failure

 

You're double encoding the device ID. Try this:

 

curl -i "http://35.171.217.31:7557/devices/1C497B-B2338%2D168-GMC170508001297/tasks?timeout=3000 <http://35.171.217.31:7557/devices/1C497B-B2338%2D168-GMC170508001297/tasks?timeout=3000&connection_request> &connection_request" -X POST     --data '{ "name": "getParameterValues", "parameterNames": ["InternetGatewayDevice.DeviceInfo.ProductClass"] }'

 

 

 

On Thu, Apr 19, 2018 at 11:50 AM, Eric Whalen <ewhalen at xtremeinternet.biz <mailto:ewhalen at xtremeinternet.biz> > wrote:

It still failed with the specific parm specified.  The results are below…

 

C:\Users\eric>curl -i "http://35.171.217.31:7557/devices/1C497B%2DB2338%2D168%2DGMC170508001297/tasks?connection_request" -X POST --data "{"name":"refreshObject", "objectName":"InternetGatewayDevice.SystemConfig.Status.ModemStatus.RSRP"}"

curl: (52) Empty reply from server

 

I really appreciate your help on this.

 

From: Users <users-bounces at lists.genieacs.com <mailto:users-bounces at lists.genieacs.com> > On Behalf Of Dan Morphis
Sent: Thursday, April 19, 2018 3:42 PM
To: Community support for GenieACS users <users at lists.genieacs.com <mailto:users at lists.genieacs.com> >
Subject: Re: API call failure

 

Don't refresh "", that doesn't really work right in v1.1, refresh a specific instance.

 

On Thu, Apr 19, 2018 at 11:41 AM, Eric Whalen <ewhalen at xtremeinternet.biz <mailto:ewhalen at xtremeinternet.biz> > wrote:

Ok, so that fixed the debug issue.  However when I run the following command

 

C:\Users\eric>curl -i "http://###.###.###.###:7557/devices/1C497B%2DB2338%2D168%2DGMC170508001297/tasks?connection_request <http://#%23%23.%23%23%23.%23%23%23.%23%23%23:7557/devices/1C497B%2DB2338%2D168%2DGMC170508001297/tasks?connection_request> " -X POST --data "{"name":"refreshObject", "objectName":""}"

 

I get the following response

 

curl: (52) Empty reply from server

 

and nothing is written to the debug except for the periodic informs.

 

Thanks

 

 

 


_______________________________________________
Users mailing list
Users at lists.genieacs.com <mailto: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/20180419/58be53f4/attachment-0001.html>


More information about the Users mailing list