Snmpwalk is an SNMP application that uses GET NEXT Requests to query for a tree of information about a network entity.
A variable may also be given on the command line. This variable specifies which portion of the object identifier space will be searched using GET NEXT Requests. All variables in the subtree below the given variable are queried and their values presented to the user. Each variable name is given in the format specified in variables(5)?.
snmpwalk zeus public system
will retrieve all of the variables under system:
system.sysDescr.0 = system.sysObjectID.0 = OID: enterprises.hp.nm.hpsystem.10.1.1 system.sysUpTime.0 = Timeticks: (155274552) 17 days, 23:19:05 system.sysContact.0 = system.sysName.0 = system.sysLocation.0 = system.sysServices.0 = 72
If the network entity has an error processing the request packet, an error packet will be returned and a message will be shown, helping to pinpoint why the request was malformed.
If the tree search causes attempts to search beyond the end of the MIB, a message will be displayed:
In addition to the arguments defined in the snmpcmd(1)? manual page, the following options are supported as well:
Includes the requested oid in the search range. Normally snmpwalk uses getnexts starting with the oid you request and returns all results in the MIB tree below the one you requested. Sometimes, you may wish to include the OID specified on the command line in the printed results if it is a valid OID in the tree itself. This option lets you do this.
Upon completion, snmpwalk will print the number of variables found during the walk.