Hi,
I am trying to fetch the above data from SolarWinds which is shown under Orion/Interfaces/InterfaceDetails.aspx?NetObject=I:{interfaceId} along with other many details about the interface in context.
From what I found that this data is managed by NCM for each interface.
So in order to fetch this data I ran these queries :
SELECT TOP 1 i.InterfaceName, i.NodeID AS CoreNodeID FROM Orion.NPM.Interfaces i WHERE i.InterfaceID = @id
SELECT TOP 1 ca.ConfigID, ca.DownloadTime FROM NCM.ConfigArchive ca JOIN NCM.NodeProperties np ON ca.NodeID = np.NodeID WHERE np.CoreNodeID = @core AND ca .ConfigType = 'Running' ORDER BY ca.DownloadTime DESC
SELECT ca.Config FROM NCM.ConfigArchive ca WHERE ca.ConfigID = @id
And then I do a regex operation in python to scrape the above data from 1477 lines of text response.
I would like to understand if there is an easier way to do this as running 3 queries + regex operation is a little costly and adds unnecessary complexities.
I also want to fetch the runtime/current/real-time bandwidth of the interface…I guess that should be managed by NPM? If so can someone please help me with the SWQL query for it……
Thank you.