I am trying to build a simple curl script to update bigfix with Solarwinds node number so that i can later use the node number to issue commands to put monitoring in maintenance mode, etc.
The curl command will use the client IP and Name to try to match a pre-existing registered client on the orion server.
curl -k -u user:passmwword https://solarserver:17778/SolarWinds/InformationService/v3/Json/Query?query=“SELECT+NodeID+FROM+Orion.Nodes+WHERE+IP_Address=’$IP’+OR+Caption=’$ComputerName’”
The output is like:
I really have issues trying to parse in action script, give me sed and awk any day.
I am looking to just get the ### and nothing else out of the return so i can use it to set a client setting for a node for future reference.