SNMP Manager Programmer's Guide
SNMP Manager Programmer’s Guide–134249
2-1
2
Programming Examples
This section describes the sample managers that are provided with Manager Services. 
Table 2-1
 provides a summary of sample manager functions; some of the managers use 
the UDP application program interface (API) to communicate over TCP/IP, while others 
support both UDP and IPC.
Example Files
The sample managers are provided as a collection of source code and header files that 
can be converted into executable managers by using the build script included with the 
files.
Manager Logic
The source code files for the sample managers are summarized in Table 2-2. When first 
installed, these files are located in the following locations:
•
In the Guardian environment:  $<dsv>.ZSNMPMEX
•
In the OSS environment:  /usr/tandem/snmpapps
Table 2-1. Summary of Sample Manager Functions
Sample 
Manager
Protocol 
Supported Functions
SNMPGT UDP Handles a Get packet for MIB objects specified at 
invocation.
SNMPGET UDP and IPC Same as SNMPGT, except makes IPC communication 
available for requests for NonStop agents. 
SNMPNEXT UDP and IPC Handles a GetNext packet for MIB objects specified at 
invocation.
SNMPSET UDP and IPC Handles a Set packet for MIB objects specified at 
invocation.
SNMPWALK UDP and IPC Handles multiple GetNext packets to retrieve MIB object 
values in lexicographical order starting at a point in the 
MIB object tree specified at invocation. Uses MIB 
compiler output to convert OIDs to MIB object names.
SNMPTRAP UDP Sends a Trap packet containing one or more variable 
bindings specified at invocation.
SNMPMON UDP Prints the contents of Response and Trap packets 
received from the UDP port and TCP/IP process 
specified at invocation.
SNMPHOST UDP and IPC Handles multiple GetNext and Get packets to retrieve 
device information from several tables in the Host 
Resources MIB described in RFC 1514. 










