SNMP Manager Programmer's Guide

Programming Examples
SNMP Manager Programmer’s Guide134249
2-65
SNMPNEXT
NonStop-agent-process
is the name of a NonStop agent process with which you want the manager to
interact. The default is $ZSNMP. When specifying the agent name for a manager
that will run as an OSS process, delimit it with single quotation marks:
'$ZSNMP1'
This value is only used when the target-host-identifier is the local host
or an Expand host.
output-information-level
describes the kind and amount of output information you want generated. Valid
options are:
0 (no output information)
1 (error information)
2 (request packet information)
3 (error and request packet information)
4 (response packet information)
5 (error and response packet information)
6 (request and response packet information)
7 (error, request packet, and response packet information)
The default is 7.
target-host-identifier
identifies the device on which the target agent resides. You can specify either a
name or an IP address; you can supply or omit the backslash when naming a
NonStop Kernel node:
somenode
\somenode
somesys.tandem.com
130.252.12.3
MIB-object
identifies the instance of the MIB object for which you want to retrieve the next
MIB object instance. If the object is a MIB-II object, you can refer to it by name or
using the dotted OID format; use the dotted OID format for objects that are not
MIB-II objects:
sysContact.0
1.3.6.1.2.1.25.2.2.0
You can specify as many as 16 MIB objects.
Example 2-7
illustrates the output SNMPNEXT generates when requested to retrieve the
MIB object following the Host Resources MIB object having an OID of
1.3.6.1.2.1.25.2.0. The first invocation of SNMPNEXT retrieves an unexpected
object—one from the NonStop agent’s MIB, which is indeed the next object because the
Host Resources Subagent is not communicating with $ZSNMP1. After starting the