getnext(1M) getnext(1M)
NAME
getnext - retrieve objects from an SNMP entity
SYNOPSIS
getnext [-T timeout] entity_addr community_string object_name . . .
DESCRIPTION
The getnext command is an SNMP application that retrieves one
or more individual objects from an SNMP entity. The getnext
command returns the object and value pair(s) that appear in
the MIB database immediately after the object(s) specified on
the commmand line.
The arguments are the entity's address, the community string
for access to the SNMP entity, and the object name(s).
The entity address can be either an IP address or entity name
(if name-to-address resolution is enabled).
The community string used must be valid on the given entity.
On UnixWare, community strings are kept in
/etc/netmgt/snmpd.comm.
Object names must refer to a valid SNMP object or class of
objects. Object names can be in the form of an identifier or
the equivalent SNMP dot-notation. Identifiers for UnixWare
SNMP objects are listed in the section ``SNMP Objects'' in the
chapter ``Network Management Using SNMP'' of part ``TCP/IP
Administration'' of the book Network Administration.
Equivalent SNMP dot-notation for these objects is defined in
the files /etc/netmgt/nwumpsd.defs, /etc/netmgt/snmpd.defs,
and /etc/netmgt/unixwared.defs. For a general explanation of
SNMP dot-notation, see RFC 1213.
If an object on the command line is a group name, then the
object and value returned is the first object-value pair in
the group.
The -T option can be used to specify the number of seconds the
command will wait for a response from the entity specified by
entity_addr. If not specified, this defaults to 20 seconds.
EXAMPLE
The following example uses two object group names, and returns
the first member of each group specified.
Copyright 1994 Novell, Inc. Page 1
getnext(1M) getnext(1M)
getnext suzzy public system interfaces
getnext returns the variables sysDescr.0 and ifNumber.0, which
are the first members of the system and interfaces groups,
respectively.
Name: sysDescr.0
Value: Novell UnixWare 2.0
Name: ifNumber.0
Value: 2
REFERENCES
getid(1M), getmany(1M), getone(1M), getroute(1M), setany(1M),
snmp(1M), RFC 1155, RFC 1157, RFC 1213.
Copyright 1994 Novell, Inc. Page 2