SNMP Subagent Programmer's Guide

Introduction to Subagent Programming
SNMP Subagent Programmer’s Guide119728 1-9
Subagent Development Cycle
Building the Subagent
Figure 1-6 illustrates the steps and products used to convert MIB definitions and
subagent logic into an executable subagent:
Refer to Section 3, “Writing and Compiling MIBs,” for how to use GDMOC. Refer to
Section 5, “Creating Executable Subagents,” for guidelines on compilation and binding.
MIB compilation The MIB definition is compiled by GDMOC, the Toolkit’s
MIB compiler. The output file is a header file containing
data structure definitions and access logic that the run-time
library needs.
Subagent compilation The subagent source code, including the compiled MIB
definition file and any other required header files, is
compiled by the C compiler.
Binding Run-time library logic is bound into the subagent object
code. Two run-time libraries are available: PEERLBTO and
PEERLIBO. PEERLBTO is for use during subagent
development; it provides tracing that describes subagent and
agent actions during subagent execution. PEERLBTO is not
for use with production code; for production code, use
PEERLIBO.