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 <[email protected]> On Behalf Of Dan Morphis
Sent: Thursday, April 19, 2018 4:10 PM
To: Community support for GenieACS users <[email protected]>
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 <[email protected] 
<mailto:[email protected]> > 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 <[email protected] 
<mailto:[email protected]> > On Behalf Of Dan Morphis
Sent: Thursday, April 19, 2018 3:42 PM
To: Community support for GenieACS users <[email protected] 
<mailto:[email protected]> >
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 <[email protected] 
<mailto:[email protected]> > 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
[email protected] <mailto:[email protected]> 
http://lists.genieacs.com/mailman/listinfo/users

 

_______________________________________________
Users mailing list
[email protected]
http://lists.genieacs.com/mailman/listinfo/users

Reply via email to