I've been re-working my nightly List Resources script to improve/cleanup things a bunch. One of our bigger issues is that we have interfaces on nodes that are not up, yet are imported to the node. I have found that I can query NPM.Interfaces to see the status of nodes that have ALREADY been imported, but I want to determine if they're up or down BEFORE I import them. Here's what I've found so far.
- After doing a ScheduleListResources, I can filter the GetListResourcesResult to filter out the interfaces I'm not interested in so that I'm only importing up interfaces.
- the GetListResourcesResult unfortunately does not tell me the Status of the interface.
- I can query SNMP nodes with DiscoverInterfacesOnNode to determine the status of non-imported interfaces, but this does not work for WMI. Only SNMP.
I know that I could import them all, then query NPM.Interfaces to determine which ones are down and remove them, but I have thousands of WMI nodes to deal with - I'd like to not have that much churn if I can help it.
Any suggestions?
Paul