This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

get_nodes_discoveries.ps1

Because we often add nodes manually, it's important to identify which ones aren't covered by any of our existing discovery jobs. It's also convenient to know when a node is included in more than one discovery job.

This script produces comma-separated output listing all Solarwinds nodes. For each node, the script lists:

  • The node's FQDN
  • The node's IP address
  • A list of all discovery jobs that include the node. If list includes multiple jobs, the job names are separated by vertical bar (|) characters

For each discovery, the script looks at all specific nodes, subnets, and IP ranges specified on the "Network" tab of the Network Sonar Wizard. I've included IP address math to handle subnets and IP ranges.

Sample output:

"Node_DNS","Node_IP","Node_In_Discoveries"

"ethernetswitch1.domain.com","10.100.14.65","Discovery Job 1: 2/5/2016, 11:35 AM"

"ethernetswitch2.domain.com","10.100.14.68","Discovery Job 1: 2/5/2016, 11:35 AM|Private Networks Discovery Job"

"devhost.domain.com","10.100.16.34",""

get_nodes_discoveries.ps1