I needed to check if SNMP was accessible on whatever live servers that existed in a particular subnet. Here’s a quick script to do this.

You will need to specify subnet information and the SNMP community string. The script will use nmap to find live hosts and will use snmpwalk running via xargs to query multiple hosts at once. The end result should look something like this:

And here’s the script

 

Leave A Reply

Please enter your comment!
Please enter your name here