Hi all,
I am using this custom query widget when in order to search by node id and find out what maps the node is a part of, it works great for this purpose.
SELECT TOP 100
p.DisplayName
,concat('http://{redacted orion IP}/ui/maps/viewer/', p.ProjectID) AS [_LinkFor_DisplayName]
,n.Caption
,n.IPAddress
FROM Orion.Maps.Projects AS p
JOIN Orion.Nodes AS n ON ${SEARCH_STRING}=n.NodeID
WHERE p.Data LIKE '%Nodes_${SEARCH_STRING}/%'
My new goal is to adapt this query to a new purpose. I would like to display all the current down nodes with a link to all maps that are related to their node ID's. Anyone have any ideas how this can be done? I think its a two step process and not sure how to make the SWQL query. First filter down to the down node IDs and than run the above query per node ID returned from the down nodes and join the queries with Union?
Any help would be greatly appreciated I think this would help others as well since it would allow for anyone to drill into a topology map right from the down node list very fast troubleshooting capability. I dare say it might be worth a feature request in NPM if it can't be done through a custom query already.
This is what the current query result looks like when search node id 1807 as an example:

So basically I am looking for the same output but instead of having to enter a search criteria it would union all the current down node ids into the output.