How to Do an SNMP Walk

| Comments

Sometimes you need to manually SNMP poll a device. Here is how to do that.

Do an entire pull

To conduct a full SNMP walk and get all OIDs, do the following from a linux command line:

snmpwalk -v 2c -c publicstring

In the example above we indicate the SNMP version (-v) is 2c, the community string (-c) is publicstring and the IP to SNMP poll is

This will return all OIDs that are pollable on that system.

Poll a single MIB

You can add a mib to the end of the snmpwalk command to poll a single mib and get only that result. Here is an example:

snmpwalk -v 2c -c publicstring mib-

You can also poll an attribute such as sysDescr like so:

snmpwalk -v 2c -c publicstring mib-

misc, snmp