beautypg.com

Compaq AAR04BCTE User Manual

Page 36

background image

Creating a Subagent Using the eSNMP API
3.3 Creating a MIB Source File

The parameters and qualifiers for the MIBCOMP command are as follows:

Parameter or Qualifier

Definition

MIB-source-file

A comma-separated list of MIB definition files. The
standard extension is .MY, but you can specify any valid
OpenVMS file name. You must specify the full file name.

subtree

The text name for the root of your MIB definitions. This
parameter must be enclosed in quotation marks. This name
is used in generating names for template C modules and
also for the names of the files themselves: subtree_tbl.c and
subtree_tbl.h.

/PREFIX=prefix-name

The MIB compiler attaches the prefix-name string to the
beginning of all generated names.

/PRINT_TREE

Displays the entire MIB subtree.

/SNMPV2

Specifies the use of SNMP Version 2 parsing rules.

The following is an example of processing the chess example files using the
/PRINT_TREE qualifier:

$ MIBCOMP RFC1442.MY,CHESS_MIB.MY "chess" /PRINT_TREE

Processing RFC1442.MY
Processing CHESS_MIB.MY
Dump of objects in lexical order

-- This file created by program ’snmpi -p’

ccitt

0

iso

1

internet

1.3.6.1

directory

1.3.6.1.1

mgmt

1.3.6.1.2

experimental

1.3.6.1.3

private

1.3.6.1.4

enterprises

1.3.6.1.4.1

dec

1.3.6.1.4.1.36

ema

1.3.6.1.4.1.36.2

sysobjectids

1.3.6.1.4.1.36.2.15

decosf

1.3.6.1.4.1.36.2.15.2

chess

1.3.6.1.4.1.36.2.15.2.99

chessProductID

1.3.6.1.4.1.36.2.15.2.99.1

ObjectID

read-only

chessMaxGames

1.3.6.1.4.1.36.2.15.2.99.2

INTEGER

read-only

chessNumGames

1.3.6.1.4.1.36.2.15.2.99.3

INTEGER

read-only

gameTable

1.3.6.1.4.1.36.2.15.2.99.4

gameEntry

1.3.6.1.4.1.36.2.15.2.99.4.1

indexes: gameIndex

gameIndex

1.3.6.1.4.1.36.2.15.2.99.4.1.1
INTEGER

read-write

gameDescr

1.3.6.1.4.1.36.2.15.2.99.4.1.2
DisplayString

read-write

range: 0 to 255

gameNumMoves

1.3.6.1.4.1.36.2.15.2.99.4.1.3
INTEGER

read-write

gameStatus

1.3.6.1.4.1.36.2.15.2.99.4.1.4
INTEGER

read-write

3–6 Creating a Subagent Using the eSNMP API