SNMP Subagent Programmer's Guide
Organization
xii 119728—SNMP Subagent Programmer’s Guide
About This Manual
•
Write Management Information Base (MIB) definitions describing resources to be 
managed.
•
Compile MIB definitions using GDMOC, the MIB compiler provided with the 
Toolkit, to create a subagent header file containing run-time access logic.
•
Write C program modules that use Toolkit header files and run-time library 
functions for handling SNMP operations.
•
Compile header files and subagent logic, then bind the compiler output with the 
Toolkit’s run-time library to create executable subagents.
Organization
This manual is organized into five sections:
•
Section 1, “Introduction to Subagent Programming,” describes how the Toolkit 
components fit into the subagent development and usage cycles. 
•
Section 2, “Programming Tutorials,” describes the eight sample subagents provided 
with the Toolkit.
•
Section 3, “Writing and Compiling MIBs,” presents the syntax conventions for 
encoding MIBs and running GDMOC, the MIB compiler.
•
Section 4, “Writing Subagent Logic,” describes the elements to encode in C program 
logic to implement SNMP instrumentation.
•
Section 5, “Creating Executable Subagents,” provides instructions for compiling, 
binding, and accelerating subagents.
Related Reading
This manual has two companion manuals:
•
SNMP Configuration and Management Manual, which describes how to install and 
configure the NonStop agent and interpret information generated by subagents 
Tandem provides. This manual also contains a glossary that provides definitions to 
orient those new to either SNMP or NonStop systems. 
•
SCF Reference Manual for the SNMP Agent, which describes how to use the 
Subsystem Control Facility (SCF) to configure the NonStop agent
The following additional Tandem manuals may be useful while you are writing and 
building subagents from C language modules:
•
C Programmer’s Guide and Guardian C Library Calls Reference Manual, which 
document the NonStop C language, compiler, and run-time library
•
Binder Manual, which documents the Binder utility, used to link object files into 
executable files
•
Accelerator Manual, which documents the Accelerator utility available for 
optimizing applications that run on TNS/R systems










