SNMP Subagent Programmer's Guide
Introduction to Subagent Programming
SNMP Subagent Programmer’s Guide—119728 1-7
Subagent Development Cycle
Figure 1-5. Components of Subagent Logic
Toolkit header files Several header files contain declarations, definitions, 
and other logic needed by the run-time library. 
MIB variable declarations Some variables for passing MIB object values between 
your subagent and the run-time library need to be 
declared globally. 
MIB compiler output file The file containing the MIB compiler output is 
included after MIB variables are declared because it 
contains references to those variables.
Management function 
calls
A subagent uses management function calls to initiate 
communication with the NonStop agent, to process 
manager requests, and to send traps.
Callback functions When you want to provide your own logic for the run-
time library to use, you write what are known as 
“callback functions.” These optional functions are 
used when you want to optimize certain aspects of 
MIB value handling or when you need to write your 
own logic for Get and Set operations instead of relying 
on the logic generated by the Toolkit.
105
#include 
toolkit-header-files 
. 
. 
. 
global-MIB-variable-declarations 
. 
. 
. 
#include 
MIB-compiler-output-file 
. 
. 
.
main() 
{ 
. 
. 
. 
management-function-calls
. 
. 
. 
} 
[
callback-function-definitions
] 










