SNMP Subagent Programmer's Guide

MIB Variable Declarations
4-2 119728SNMP Subagent Programmer’s Guide
Writing Subagent Logic
Depending on the functions your subagent uses, you may also need to include one or
more of these header files:
GDMOC Output File
Include the GDMOC output file globally after the declarations that include Toolkit
header files and identify MIB variables:
#include "helloh"
MIB Variable Declarations
Declare variables used to store values for the following items in global space prior to the
directive that includes the GDMOC output file:
MIB objects that are not managed by your own access functions
Callback functions
The header file named smitypeh contains typedef declarations you can use when
defining your global variables. Table 4-1 summarizes how the typedef declarations
correspond to C data types. Note that NULL is not represented. GDMOC does not
support this SNMP data type.
Functions Header Files
Access functions smitypeh
snmperrh
Locator function locatorh
Management function mgmt_del_instance() errnoh
Management function mgmt_read_nowait() mgmtenvh
snmpvblh
Management function mgmt_trap() errnoh
Next function erronoh
stdtypeh