Caution: This version of this document is no longer maintained. For the latest documentation, see


Query for a tree of information about a network entity


snmpwalk [-d] [-p port] -v 1 host community

snmpwalk [-d] [-p port] [-v 2] host noAuth

snmpwalk [-d] [-p port] [-v 2] host srcparty
         dstparty context [variable_name]

Runs on:



Dump input and output packets.
-p port
Specify the destination port number.
-v 1|2
SNMP version (default is 2).
The community name for the transaction with the remote system.
The collection of object resources that can be queried by the dstparty.
The name of the party providing the information.
An Internet address specified in dot notation or a host name.
The name of the party requesting information.
The portion of the object identifier space that's searched using GET NEXT requests. The snmpwalk utility queries all variables in the subtree below the given variable and displays their values. Specify variable_name in the format specified in the file mib.txt.

If you don't specify variable_name, snmpwalk searches the entire Internet MIB for host.


The snmpwalk utility uses GET NEXT requests to query for a tree of information about a network entity (snmpbulkwalk uses BULK requests).

If you're using SNMP version 2, you must configure the following files:

For a description on how to configure the files, see the documentation for each of the configuration files listed above. If you wish to change the location of your configuration files, you must include a snmpd.conf file.


Retrieve the variables in the system subtree:

Using SNMPv1

snmpwalk -v 1 public system

Using SNMPv2

snmpwalk manager_party \
agent_party agent_context system

The output is similar to:

system.sysDescr.0 = "QNX 425 C, cpu: 586"
system.sysObjectID.0 = OID: enterprises.QNX-Systems
system.sysUpTime.0 = Timeticks: (8336500) 23:09:25 
Current time: Wed Mar 18 14:16:59 1998
system.sysContact.0 = "Dave Brown"
system.sysName.0 = ""
system.sysLocation.0 = ""
system.sysServices.0 = 79

Environment variables:

Specify the location of the mib.txt file. For example, MIBFILE=path/mib.txt (the default path is /etc).
If SUFFIX exists in your environment, all object IDs with a symbolic name are printed with only the last element. Examples:

This ID:


is printed as:


This ID:


is printed as:



If the network entity has an error processing the request packet, an error packet is returned and snmpwalk displays a message to help pinpoint how the request was malformed.

If snmpwalk tries to search beyond the end of the MIB, it displays this message:

End of MIB


The snmpbulkwalk utility is more efficient.

See also:

snmpd, snmpbulkwalk, snmpget, snmpgetnext, snmpnetstat, snmpset, snmpstatus, snmptest, snmptranslate, snmptrap, snmptrapd

/etc/acl.conf, /etc/context.conf, /etc/mib.txt, /etc/party.conf, /etc/snmpd.conf, /etc/view.conf files

Based on RFC 1065, RFC 1066, RFC 1067
RFC 1441, RFC 1445, RFC 1446
RFC 1448, RFC 1449

Marshall T. Rose, The Simple Book: An Introduction to Internet Management, Revised 2nd ed. (Prentice-Hall, 1996, ISBN 0-13-451659-1)