snmpwalk

query for a tree of information about a network entity

Syntax:

snmpwalk [-d] host community [variable_name]

Options:

-d
Dump input and output packets.
host
An Internet address specified in dot notation or a host name.
community
The community name for the transaction with the remote system.
variable_name
The portion of the object identifier space that will be 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.

Examples:

Retrieve the variables sysDescr.0, sysObjectID.0, and sysUpTime.0:

snmpwalk netdev-kbox.cc.cmu.edu public system

The output is similar to:

Name: system.sysDescr.0
OCTET STRING- (ascii):   Kinetics FastPath2

Name: system.sysObjectID.0
OBJECT IDENTIFIER:     .iso.org.dod.internet.private.enterprises.CMU.sysID.CMU-KIP

Name: system.sysUpTime.0
Timeticks: (2291082) 6:21:50

Description:

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

Errors:

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

See also:

snmpd, snmpget, snmpgetnext, snmpnetstat, snmpstatus, snmptest, snmptrap, snmptrapd, mib.txt file

RFC 1065, RFC 1066, RFC 1067

Marshall T. Rose, The Simple Book: An Introduction to Internet Management, 2nd ed. (Prentice-Hall, 1994, ISBN 0-13-177254-6)