I am trying to create an sql or swql query that allows me to query a specific customer node poller for a specific result, then query the results to pull another custom poller value(s) by node. I can do either independently, which is easy enough, but how can I with the same query, reevaluate using the first set of results, to then get my final results ?
SELECT TOP 100 [Nodes].NodeID , [Nodes].DisplayName , [Nodes].NodeDescription , [Nodes].MachineType , [Nodes].ObjectSubType , [Nodes].DetailsURL , [Nodes].Interfaces.InterfaceID , [Nodes].Interfaces.FullName , [Nodes].CustomPollerAssignmentOnNode.CustomPollerName , [Nodes].CustomPollerAssignmentOnNode.CurrentValue , [Nodes].CustomProperties.No_ENOC_Monitoring
FROM Orion.Nodes WHERE [Nodes].MachineType = 'PacketLight Networks Ltd.' AND [Nodes].CustomProperties.No_ENOC_Monitoring = 'False' AND [Nodes].NodeDescription LIKE 'PL-1000r%' AND [Nodes].CustomPollerAssignmentOnNode.CustomPollerName LIKE 'detect13' AND [Nodes].CustomPollerAssignmentOnNode.CurrentValue = '1'
Then I want to query the results for the list of nodes that meet this criteria;
FROM Orion.Nodes WHERE [Nodes].MachineType = 'PacketLight Networks Ltd.' AND [Nodes].CustomProperties.No_ENOC_Monitoring = 'False' AND [Nodes].NodeDescription LIKE 'PL-1000r%' AND [Nodes].CustomPollerAssignmentOnNode.CustomPollerName = 'channel13' with the node, custom pollerid and [Nodes].CustomPollerAssignmentOnNode.CurrentValue
I've been working this for several days looking at many thwack articles, and have been extremely unsuccessful. Hoping there is help out there.
Thanks,
Ned