×
Back to Geneos FAQ
How to use REST API to find the connection state of the Netprobes
Solution Copied
You can query the Gateway for the Netprobe’s Connection State Runtime Parameter.
To find that all Netprobes that do NOT have an “Up” connection state as seen in the Gateway-ProbeData dataview run the following command:
curl -u username:password -X GET -s --data '{"target":"//probe[(rparam(\"ConState\")!=\"Up\")]"}' http://gatewayHost:gatewayPort/rest/xpaths/match | python -m json.tool
To find that all Netprobes with a “Down” connection state run the following command:
curl -u username:password -X GET -s --data '{"target":"//probe[(rparam(\"ConState\")=\"Down\")]"}' http://gatewayHost:gatewayPort/rest/xpaths/match | python -m json.tool
Related Articles Copied
Rest Service/REST API Documentation
["Geneos"]
["Geneos > Gateway"]
["FAQ"]