1 MIBCOMP SYNTAX $ MIBCOMP MIB-source-file "subtree" [/PREFIX=prefix-name] [/PRINT_TREE] [/SNMPV2] 2 Description The MIBCOMP command is used to compile SNMP subagent source files in ASN.1 format. The compilation process produces two template C programming modules that are used in building the executable subagent code. When you run the compiler, specify all the ASN.1 source files for a given subagent. Whenever any of these source files are updated, you must repeat the compilation process. 2 Parameters Parameter 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. 2 Qualifiers Qualifier Definition /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 SNMPv2 parsing rules. 2 Examples An example of processing the Chess example files using the /PRINT_TREE qualifier follows: $ 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 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