getnext(1M) TCP/IP 5.4.2 getnext(1M)
NAME
getnext - get MIB-objects from SNMP agent
SYNOPSIS
getnext host community object ...
where:
host is a hostname or Internet address
community is a community string
object is a object type or object instance
DESCRIPTION
Use the getnext command to retrieve objects from an SNMP agent. The
command sends an SNMP message containing the community string and a
GetNextRequest-PDU requesting the specified object to the agent
running on the host.
Specify the host as either a hostname or an Internet address in dot-
notation.
The community string is a text string used by the agent to
authenticate the request. You must configure the agent to accept
requests from the specified community for the operation to be
successful.
Specify the object as either an object type or object instance. You
may specify the object in either dot-notation representing an object
identifier or as a text string representing an object descriptor.
EXAMPLES
$ getnext myhost public sysDescr sysDescr.0 1.3.6.1.2.1.2
Name: sysDescr.0
Value: DG/UX TCP/IP SNMP AGENT
Name: sysObjectID.0
Value: DataGeneral
Name: ifNumber.0
Value: 2
Note: The object returned by the agent is the one that follows
lexicographically the one specified.
In this example the type sysDescr was specified and the first instance
sysDescr.0 was returned.
The instance sysDescr.0 was specified so the next instance sysObjectID.0
was returned.
Lastly, 1.3.6.1.2.1.2 which is the object identifier for ifTable was
requested and ifNumber.0, which is the first instance in the ifTable
was returned.
DIAGNOSTICS
Exit status is 0 upon success.
Licensed material--property of copyright holder(s) 1
getnext(1M) TCP/IP 5.4.2 getnext(1M)
Exit status is -1 if there are errors parsing the command line.
Exit status is 1 if the agent returns an error.
SEE ALSO
getone(1M), getmany(1M), setany(1M), snmpd(1M), traprecv(1M),
trapsend(1M), snmpd.communities(4M), snmpd.config(4M),
snmpd.trapcommunities(4M).
Licensed material--property of copyright holder(s) 2