Quantcast
Channel: THWACK: All Content - All Communities
Viewing all articles
Browse latest Browse all 20518

How to query the SWIS JSON interface using curl?

$
0
0

I thought I'd try curl before implementing it in the client, but all queries end in

curl: (7) Failed connect to myserver:17778; Connection timed out

 

I've read the "SWIS REST/JSON API" thread, but can't figure out, why it doesn't work.

 

This is what I tried on a laptop in the server network:

curl --user myuser:mypass https://192.168.0.101:17778/SolarWinds/InformationService/v3/Json/Query?query=SELECT+NodeID+FROM+Orion.Nodes

 

I can connect in and run the query from SWQL Studio (same user, pass) just fine. Does the user have to have a special permission or is there a special setting to enable the query-interface, maybe?

 

Update:

If I try to connect to https://192.168.0.101:17778/SolarWinds/InformationService in a Browser, I get "The connection has timed out, The server at myserver is taking too long to respond.", but both SWIS and SWIS V3 Services are running.

 

Update:

Apparently SWIS won't respond if called using the IP address, but how to work around this on a local network?


Viewing all articles
Browse latest Browse all 20518

Trending Articles