NAME
snmpgetnext - Communicates with a network entity using SNMP GETNEXT Requests.

SYNOPSIS
snmpgetnext [ -d ] [ -V ] [ -v ] [ -p Port ] [ -r retries ] [ -t timeout ] [ -1 ] [ -2 ] host community object-identifier

DESCRIPTION
snmpgetnext will send an SNMP GETNEXT request to a network entity. The purpose of this request is to fetch the next item in the entity's MIB.

The host specification may be either a host name or an internet address specified in "dot notation"

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:

End of MIB.

Adding a "-d" to the argument list will cause the application to dump input and output packets.

The "-V" flag returns the version of the app, and the version of the SNMP library used.

The "-v" flag causes snmpgetnext to print more information about the responses received.

The "-p" flag allows you to specify a port to use for the SNMP requests.

The "-r" flag sets the number of retries. The default is 4.

The "-t" flag sets the timeout in microseconds. The default is 1000000.

The "-1" and "-2" flags set the SNMP version of the outgoing request.

EXAMPLES
% snmpgetnext snmp-example.net.cmu.edu public system.sysdescr system.sysUpTime

returns

Name: system.sysDescr.0 -> OCTET STRING- (ascii): Unix 4.3BSD
Name: system.sysUpTime.0 -> Timeticks: (529004457) 61 days, 5:27:24