1 .\" /***********************************************************
2 .\" Copyright 1988, 1989 by Carnegie Mellon University
4 .\" All Rights Reserved
6 .\" Permission to use, copy, modify, and distribute this software and its
7 .\" documentation for any purpose and without fee is hereby granted,
8 .\" provided that the above copyright notice appear in all copies and that
9 .\" both that copyright notice and this permission notice appear in
10 .\" supporting documentation, and that the name of CMU not be
11 .\" used in advertising or publicity pertaining to distribution of the
12 .\" software without specific, written prior permission.
14 .\" CMU DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
15 .\" ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
16 .\" CMU BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
17 .\" ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
18 .\" WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
19 .\" ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
21 .\" ******************************************************************/
22 .TH SNMPWALK 1 "08 Feb 2002" VVERSIONINFO "Net-SNMP"
25 snmpwalk - communicates with a network entity using SNMP GETNEXT requests.
28 [APPLICATION OPTIONS] [COMMON OPTIONS] [OID]
31 is an SNMP application that uses SNMP GETNEXT requests to query a
32 network entity for a tree of information.
34 An object identifier (OID) may be given on the command line. This OID
35 specifies which portion of the object identifier space will be
36 searched using GETNEXT requests. All variables in the subtree
37 below the given OID are queried and their values presented to the user.
38 Each variable name is given in the format specified in
41 If no OID argument is present,
44 If the network entity has an error processing the request packet, an
45 error packet will be returned and a message will be shown, helping to
46 pinpoint why the request was malformed.
48 If the tree search causes attempts to search beyond the end of the
49 MIB, the message "End of MIB" will be displayed.
53 Do not check whether the returned OIDs are increasing. Some agents
54 (LaserJets are an example) return OIDs out of order, but can
55 complete the walk anyway. Other agents return OIDs that are out of
58 to loop indefinitely. By default,
60 tries to detect this behavior and warns you when it hits an agent
63 to turn off this behaviour.
66 Include the given OID in the search range. Normally
68 uses GETNEXT requests starting with the OID you specified and returns
69 all results in the MIB tree after that OID. Sometimes, you may wish
70 to include the OID specified on the command line in the printed
71 results if it is a valid OID in the tree itself. This option lets you
75 Upon completion of the walk, print the number of variables found.
77 In addition to these options,
79 takes the common options described in the
85 snmpwalk -Os -c public -v 1 zeus system
87 will retrieve all of the variables under system:
89 sysDescr.0 = STRING: "SunOS zeus.net.cmu.edu 4.1.3_U1 1 sun4m"
91 sysObjectID.0 = OID: enterprises.hp.nm.hpsystem.10.1.1
93 sysUpTime.0 = Timeticks: (155274552) 17 days, 23:19:05
95 sysContact.0 = STRING: ""
97 sysName.0 = STRING: "zeus.net.cmu.edu"
99 sysLocation.0 = STRING: ""
101 sysServices.0 = INTEGER: 72
103 snmpcmd(1), snmpbulkwalk(1), variables(5).