SNMP Manager Programmer's Guide
Programming Examples
SNMP Manager Programmer’s Guide–134249
2-81
SNMPWALK
SNMPWALK
SNMPWALK lets you browse through MIBs in lexicographical order.  It issues GetNext 
packets starting at a point in the SNMP object hierarchy you specify at invocation. 
SNMPWALK, like SNMPGET, encodes the packets for UDP or IPC communication. 
At startup, SNMPWALK loads a file named mibrt, a -readtree output file from the MIB 
compiler, enabling it to accept MIB object name input and represent MIB objects in 
response packets by name when the objects are represented in mibrt. The mibrt file 
delivered with Manager Services represents MIB-II objects.  You can regenerate mibrt to 
tailor it to describe MIBs of particular interest to you. Refer to Section 3, Using the 
MIB Compiler, for instructions on generating -readtree MIB compiler output.
Invoke SNMPWALK as follows; invocation is similar to SNMPGET invocation, except 
SNMPWALK accepts a -d parameter that lets you specify how many MIB objects to 
retrieve, and specification of a MIB object is optional: 
agent-community string
is the community name used by the target agent for request authentication. You can 
format the community name as a displayable string or as a sequence of octets, where 
each octet is an 8-bit hexadecimal value:
"myCommunity"
0x4D:0x65
The default is "public".
number-of-objects
is an integer indicating the number of MIB objects you want to retrieve.  The default 
is 2147483647.
request-id
is an integer in the range -2147483648 to 2147483647 that uniquely identifies the 
first request packet sent by the manager. The default is 1. If retry-count is 
greater than 0, the request ID is incremented by one each time another request is 
sent.
SNMPWALK [-c agent-community string]
 [-d number-of-objects]
 [-i request-id]
 [-p agent-request-port}
 [-r retry-count]
 [-t timeout-seconds]
 [-a NonStop-agent-process]
 [-x output-information-level]
 target-host-identifier
 [first-MIB-object]










