SNMP Subagent Programmer's Guide

Subagent Development Cycle
1-6 119728SNMP Subagent Programmer’s Guide
Introduction to Subagent Programming
For more information about the subagents that Tandem provides, refer to the SNMP
Configuration and Management Manual.
Coding Subagent Logic
The subagent logic works together with the run-time library to handle SNMP requests
and to send traps. Figure 1-5 illustrates where in the subagent C source code you embed
declarations and functions used by the run-time library.
Figure 1-4. Subagent Styles
Stand-alone subagents These subagents rely entirely on their own resources for
accessing and managing MIB object values. Most of the
example subagents described in Section 2, “Programming
Tutorials,” are stand-alone subagents.
Collaborative subagents These subagents use the services of other applications to
access and maintain data. For example, the MIB-II
Subagent that Tandem offers uses the Subsystem
Programmatic Interface (SPI) to retrieve information from
processes managing TCP/IP resources. Some of the
sample subagents described in Section 2 use Guardian
procedure calls to retrieve or alter MIB values.
Integrated subagents These subagents reside within an application. The EMS
Trap Subagent that Tandem offers is an example of such a
subagent. The EMS Trap Subagent is implemented
within EMS (Event Management Service) as a special
kind of printing distributor.
104
Subagent
Stand-Alone Subagent
Subagent
Application
Application
Collaborative Subagent
Subagent
Application
Integrated Subagent