SNMP Manager Programmer's Guide
Using the MIB Compiler
SNMP Manager Programmer’s Guide–134249
3-6
@ automated-response-file-name
identifies an input file containing MIB compiler invocation specifications.
Specifications in an automated response file can be written one to a line, or can be
separated by spaces on a line. Precede comment lines with a semicolon (;), two
hyphens (--), or a pound sign (#). Here is an example of an automated response file:
; This is an example automated response file.
; It demonstrates how to exclude MIB modules
; when generating -numbers output
# When this file is specifed in the MIB compiler
# invocation line, the MIB compiler
# generates -numbers output in a files named numfile
# for the Host Resources Subagent's hrDevice group
-exclude RFC1213-MIB.system
-exclude RFC1213-MIB.interfaces
-exclude RFC1213-MIB.at
-exclude RFC1213-MIB.ip
-exclude RFC1213-MIB.icmp
-exclude RFC1213-MIB.tcp
-exclude RFC1213-MIB.udp
-exclude RFC1213-MIB.egp
-exclude RFC1213-MIB.transmission
-exclude RFC1213-MIB.snmp
-exclude HOST-RESOURCES-MIB.hrSystem
-exclude HOST-RESOURCES-MIB.hrStorage
-exclude HOST-RESOURCES-MIB.hrSWRun
-exclude HOST-RESOURCES-MIB.hrSWRunPerf
-exclude HOST-RESOURCES-MIB.hrSWInstalled
-numbers
#use two MIB definition files
rfc1213
rfc1514a
-o numfile
-- End of example automated control file
If this automated response file is named myfile, you specify it as follows when
invoking the MIB compiler:
mibcomp @myfile
MIB-file-name
identifies a file containing ASN.1 MIB object definitions. The MIB compiler has
built-in knowledge of the definitions in the following MIB modules: RFC1155-
SMI, RFC-1212, RFC-1215, SNMPv2-SMI, SNMPv2-TC, SNMPv2-CONF, and
SNMPv2-TM. If any of your input files import definitions from other MIB
modules, be sure to name the file providing the definitions before naming files in
which the imported definitions are used:
mibcomp rfc1213 rfc1514a