Hi,
I'm trying to use the IPaddressGUID as a variable in a web based Custom Query (SWQL) in Orion NPM (10.7)
SELECT n.MachineType , '/Netperfmon/Images/Vendors/' + n.vendoricon as [_IconFor_MachineType]
, n.caption, n.detailsurl as [_LinkFor_caption], '/Orion/images/StatusIcons/Small-' + StatusIcon AS [_IconFor_caption]
from Orion.nodes n where
(n.ipaddressguid = 'FE' + substring('${IPAddressGUID}', 3, 40))
The query is a resource on the node details page. For a node with IP address 10.0.0.1, the query should find and display details for (and links to) a node with IP address 10.0.0.254 (if it exists).
The Custom Query fails with an error message :Error: A query to the SolarWinds Information Service failed.
The query works if I replace ${IPAddressGUID} with the actual value of IPAddressGUID.
Is there a list of what variables are supported by SWQL?
Thanks
L