Caution: This version of this document is no longer maintained. For the latest documentation, see


Communicate with a network entity using SNMP GET NEXT requests

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


snmpgetnext [-d] host community variable_name

Runs on:



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


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.


Retrieve the variables sysDescr.0 and sysUpTime.0:

snmpgetnext public
    system.sysContact.0   system.sysName.0

The output is similar to:

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


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


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)