Creating a Subagent Using the eSNMP API
3.3 Creating a MIB Source File
enum: complete
1
enum: underway
2
enum: delete
3
moveTable
1.3.6.1.4.1.36.2.15.2.99.5
moveEntry
1.3.6.1.4.1.36.2.15.2.99.5.1
indexes: gameIndex moveIndex
moveIndex
1.3.6.1.4.1.36.2.15.2.99.5.1.1
INTEGER
read-write
moveByWhite
1.3.6.1.4.1.36.2.15.2.99.5.1.2
DisplayString
read-write
range: 0 to 255
moveByBlack
1.3.6.1.4.1.36.2.15.2.99.5.1.3
DisplayString
read-write
range: 0 to 255
moveStatus
1.3.6.1.4.1.36.2.15.2.99.5.1.4
INTEGER
read-write
enum: ok
1
enum: delete
2
security
1.3.6.1.5
snmpV2
1.3.6.1.6
snmpDomains
1.3.6.1.6.1
snmpProxys
1.3.6.1.6.2
snmpModules
1.3.6.1.6.3
joint_iso_ccitt
2
--------------------------
11 objects written to chess_tbl.c
11 objects written to chess_tbl.h
3.3.2.1 UNIX Utilities Supplied with TCP/IP Services
For compatibility with UNIX, the
mosy
and
snmpi
utilities are provided with
TCP/IP Services for generating the C language code that defines the object tables.
These UNIX utilities are supported on OpenVMS for compatibility with UNIX-
developed procedures. For information about using these utilities, refer to the
Compaq Tru64 UNIX Network Programmer’s Guide.
3.3.2.2 Object Tables
The MIBCOMP command is used to generate the C language code that defines
the object tables from the MIBs. The object tables are defined in the emitted files
subtree_TBL.H and subtree_TBL.C, which are compiled into your subagent.
These modules are created by the MIBCOMP command or the UNIX utilities.
Compaq recommends that you do not edit them. If the MIBs change or if a
future version of the SNMP development utilities requires your object tables to be
rebuilt, it is easier to rebuild and recompile the files if you did not edit them.
3.3.2.3 The subtree_TBL.H Output File
The subtree_TBL.H file contains the following sections:
1.
A declaration of the subtree structure
2.
Index definitions for each MIB variable in the subtree
3.
Enumeration definitions for MIB variables with enumerated values
4.
MIB group data structure definitions
5.
Method routine function prototypes
The following sections describe each section of the subtree_TBL.H file.
Creating a Subagent Using the eSNMP API 3–7