I am trying to write a query to pull all IP addresses in an instance of SolarWinds and associate it with the correct node and interface information.
I can get the list of IP Addresses from the Orion.NodeIPAddresses (SWQL) / NodeIPAddresses (SQL) table.
I can join that on the numeric NodeID to the Orion.Nodes (SWQL) / NodesData (SQL) table to pick up the node name (Caption)
There appear to be table(s) with interface names, like Cirrus.Interfaces (SWQL) / NCM_Interfaces (SQL) and Orion.NPM.Interfaces (SWQL) / NPM_Interfaces (SQL). It appears I could join the NPM Interface tables to the query via InterfaceIndex, but would not have interface names for all the interfaces. The Cirrus/NCM interface tables have far more entries, but use long, alphanumeric with dashes 'unique ids' that I cannot relate to the decimal NodeID and have InterfaceIndexes far longer than the other tables.
Does anyone know
- How to translate the decimal NodeID and InterfaceIndex on most of the above tables to the unique id NodeID and longer InterfaceIndex on the Cirrus/NCM tables?
- What is the difference between interfaces listed on the NPM and NCM interface tables?