Does the API support a method to force a manual poll on a node?
The url should be https://SERVERNAME:17778/SolarWinds/InformationService/v3/Json/Invoke/Orion.Nodes/PollNow
And the POST body should be:
['N:100']
Yes. You can invoke the verb "Orion.Nodes.PollNow" to do this. It expects one argument, a NetObjectID. For a node, that looks like "N:123" where 123 is the NodeID value.
I am trying to use it in a POST e.g. (NodeID: 100)
https://SERVERNAME:17778/SolarWinds/InformationService/v3/Json/Invoke/Orion.Nodes/Poll.Now/N100
I am trying it using POSTMAN with Basic Auth
Receiving a 500 Internal Server Error.
"Expecting state 'Element'.. Encountered 'Text' with name '', namespace ''. "
I think I have not formatted the URL correctly.
Hi @tdanner,I'm getting an error stating:
"Encountered unexpected character '''."
I'm not sure what I'm doing wrong
Here's how I tried it via Postman:
Here's trying it in PowerShell ISE:
Do you know what I'm doing incorrectly?
JSON strings use double-quote delimiters.
From PowerShell you can also build up your body using powershell objects and use the ConvertTo-Json cmdlet to handle the json syntax for you. Like this:
$args = @( 'N:1261' )
$json = ConvertTo-Json $args
Hi @tdanner,
Thank you. That solved the error. However it doesn't seem to be causing a poll to occur. I get a return of "null":
But when I look at the status of "MinutesSinceLastSync" it never changes.
If I perform a "Poll Now" from the Orion website in Manage Nodes this field updates. Is that the correct field for me to checking? Is it perhaps that the Poll Now from the Orion website does an additional function?
Hi Martin_Crothers I see you are able to poll the device, but the response says 'null', why is it so.
I get the response as 'null' for all those nodes which are successful and failed