SNMP Manager Programmer's Guide

Programming Examples
SNMP Manager Programmer’s Guide134249
2-3
Header Files
Header Files
The Manager Services header files needed by the sample managers are summarized in
Table 2-3.
Build Scripts
Two build scripts are provided to create executable managers from the source code files:
To build managers that will execute in the Guardian environment, you use the build
script in the TACL obey file named grdbuild.
To build managers that will run in the OSS environment, you use the make file
named ossmake.
Section 8, Building Executable Managers, explains the contents of these files.
Using the Example Managers
The easiest way to get started with Manager Services is to create executable managers
from the sample files and run them, trying out various invocation parameters and target
agents to become familiar with their behavior. The steps in this process are simple, as
the following examples using the Guardian environment illustrate:
Table 2-3. Sample Manager Header Files
File Description C File Names
System File
Names Used By
Prototypes of Manager
Services library packet-
handling functions
asn1.h
buffer.h
buildpkt.h
localio.h
objectid.h
snmp.h
snmpdefs.h
snmpstat.h
asn1h
bufferh
buildpkh
localioh
objectih
snmph
snmpdefh
snmpstah
All sample mangers
Type definitions for
Guardian and OSS
environments
systype.h systypeh All sample managers
Structure definitions and
prototypes supporting
snmpfsc
snmpfs.h snmpfsh SNMPGET
SNMPNEXT
SNMPSET
SNMPWALK
SNMPHOST
Structure definitions and
prototypes supporting
snmphosc
snmphost.h snmphosh SNMPHOST
Structure definitions and
prototypes supporting
common utility functions
print.h
readmib.h
rtutils.h
printh
readmibh
rtutilsh
All sample managers
SNMPWALK
SNMPWALK