snmpgetnext

Communicate with a network entity using SNMP GET NEXT requests


Note: This utility has been deprecated in SNMP version 2.

Syntax:

snmpgetnext [-d] host community variable_name

Runs on:

Neutrino

Options:

-d
Dump input and output packets.
community
The community name for the transaction with the remote system.
host
An Internet address specified in dot notation or a hostname.
variable_name
The variable name in the format specified in the file mib.txt.

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.

Examples:

Retrieve the variables sysDescr.0 and sysUpTime.0:

snmpgetnext netdev-kbox.cc.cmu.edu public
    system.sysContact.0   system.sysName.0

The output is similar to:

system.sysName.0 = "computer"
system.sysLocation.0 = "Outer Regions"

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.

Caveats:

This utility has been deprecated; it works only with SNMP version 1.

See also:

snmpd, snmpget, snmpnetstat, snmpstatus, snmptest, snmptrap, snmptrapd, snmpwalk

/etc/mib.txt file

Based on RFC 1065, RFC 1066, RFC 1067

Marshall T. Rose, The Simple Book: An Introduction to Internet Management, Revised 2nd ed. (Prentice-Hall, 1996, ISBN 0-13-451659-1)