All Collections
Übercool tricks and answers
Tips, tricks & opinions
Test if SNMP devices are responding correctly to SNMP queries
Test if SNMP devices are responding correctly to SNMP queries
IT-Man avatar
Written by IT-Man
Updated over a week ago

Installing a SNMP tool

Debug and troubleshooting SNMP is notoriously awkward. Use this guide and you'll soon master the tools needed, get a better understanding of how SNMP works and most importantly ensure that a device correctly replies to your queries.

Several applications exists for executing an SNMP query - some with a GUI others as a command-line tool. We recommend the command-line tool SnmpWalk and if you're using Microsoft Windows consider downloading this ready to use package otherwise install a version matching your type of operating system (packages exists for Mac OS X and different flavours of Linux/Unix).

After downloading and installing SnmpWalk open a "command prompt" and navigate to the folder where SnmpWalk is located.

Create a SNMP query

The following is a simple SNMP query using SnmpWalk:

snmpwalk -Os -c [community string] -v [SNMP version] [IP] [OID]
  • [community string]: By default most SNMP enabled devices uses "public". You may have changed it through the administration tool used to configure the device.

  • [SNMP version]: SNMP protocol version, "1" or "2c". Most devices supports "2c".

  • [IP]: IP address of the device.

  • [OID]: SNMP OID value(s) that you wish to read (optional, but if omitted expect a very long response).


If community string is "public", SNMP protocol version is "2c", the IP address of the device is "" and you wish to read the "sysDescr" object (OID: iso. - then the command will look like this:

snmpwalk -Os -c public -v 2c iso.

Response from a SNMP enabled device (in this example from a Hewlett Packard network attached printer):

iso. = OID: iso.
iso. = Timeticks: (526523774) 60 days, 22:33:57.74
iso. = ""
iso. = STRING: "NPI10BE5A"
iso. = STRING: "HP Color LaserJet CM2320nf MFP"
iso. = INTEGER: 72
iso. = Timeticks: (0) 0:00:00.00

Response from a device not supporting SNMP:

Timeout: No Response from

If you get a result like the one above, please verify that the SNMP community string, protocol version and IP address is correct. If the command has been entered correctly you can assume that the device does not respond to SNMP queries. Please see vendor documentation for further troubleshooting.

OID to read values from

You got a valid reply from a SNMP enabled device, now you need to figure out which values that are of interest. Depending on the documentation available this may prove the most tedious part.

SNMP stores values in a tree like structure similar to how files and folders are organized on your hard drive. Each vendor may implement a private branch with specific information about the hardware or use the more generic structure defined by e.g RFC 1156.

Anything under iso. should be well documented as is follows an agreed standard, but don't be surprised if your device just doesn't comply and produces odd output. Iso. is vendor specific and typically requires some sort of documentation from the vendor to interpret.

Alternative you can run the snmpwalk example above, but just omit the OID. This will return every information the device is able to display through SNMP. The returned data may be a very long list of OIDs and values.

Tools that can help you to understand what you're looking at:

Did this answer your question?