snmpgetnext

communicate with a network entity using SNMP GET NEXT requests

Syntax:

snmpgetnext [-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 variable name in the format specified in the file mib.txt.

Examples:

Retrieve the variables sysDescr.0 and sysUpTime.0:

snmpgetnext netdev-kbox.cc.cmu.edu public
    system.sysDescr    system.sysUpTime

The output is similar to:

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

Name: system.sysUpTime.0
Timeticks: (2270351) 6:18:23

Description:

The snmpgetnext utility uses the GET NEXT request to query for information on a network entity. You can specify one or more fully qualified object identifiers in the format specified in the file mib.txt. For each one, the utility returns the variable in the network entity's MIB that is next in alphanumeric order.

Errors:

If the network entity has an error processing the request packet, snmpgetnext displays an error message helping to pinpoint how the request was malformed.

See also:

snmpd, snmpget, snmpnetstat, snmpstatus, snmptest, snmptrap, snmptrapd, snmpwalk, 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)