|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.outbackinc.services.protocol.snmp.mib.jMIBC
Mib compiler for jSNMP com.outbackinc.services.protocol.snmp.mib package.
SnmpMIBService
,
SnmpMIBDictionary
Method Summary | |
static java.io.InputStream |
loadMib(java.lang.String szMibFilename)
Load a mib file. |
static void |
main(java.lang.String[] szArgs)
Convert through a command line interface MIB file(s) to jMIB format suitable for jSNMP to load using the com.outbackinc.services.protocol.snmp.mib package. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static java.io.InputStream loadMib(java.lang.String szMibFilename) throws ParsingException
szMibFilename
- name of the MIB file to loadParsingException
- if a a parsing error occurs in a MIB filepublic static void main(java.lang.String[] szArgs) throws ParsingException
java -jar jMIBC.jar [-b{name=value}]* [-i{mibfile}]* [-o{outputfile}] [-d] [-v] [-mosy] [-smi{name}]* {mibfile}*The MIB compiler will look for the files referenced in the IMPORT statement in the MIB file in the directory where the input file exists. In the following example, the current directory is the directory that is searched to resolve names:
java -jar jMIBC.jar BRIDGE-MIB.my -o BRIDGE-MIB.jmibThe following example illustrates compiling the SNMPv1 MIB file BRIDGE-MIB.my into the dictionary file BRIDGE-MIB.jmib by including all dependent MIBs via the -i option:
java -jar jMIBC.jar -iRFC1155-SMI.my -iRFC1213-MIB.my BRIDGE-MIB.my -o BRIDGE-MIB.jmib
szArgs
- compiler arguments
Argument | Description | Example | Occurrence |
---|---|---|---|
-b{name=value} | Predefines an OID. This allows the user to define an OID without includeinf all dependent MIB files. | -bmib-2=mgmt.1 | Zero or more times. |
-d | Allow duplicate definitions of identifiers ot types without printing an error. | -d | Zero or one time. |
-mosy | Create output in MOSY format. | -mosy | Zero or one time. Default is jmib format. |
-i{mibfile} | Include a MIB file for definition but do not include the contents (OIDs) of the file in the output. | -iSNMPv2-CONF.my | Zero or more times. If no -i options are specified, the compiler will try to "find" the files specified in the IMPORT statments. |
-smi{name} | Automatically defines a type. | -smiDisplayString | Zero or more times. |
-o{outputfile} | The file name where the output will be written | -v | Zero or one time. If not specified, the output will be written to standard output. |
{mibfile} | A list of one or more MIB files that will be compiled. | BRIDGE-MIB.my | One or more times. |
ParsingException
- if a a parsing error occurs in a MIB file
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Home Services Products Purchase Contact Us About Us Legal Ceramics
Copyright © 2003-2008 jSNMP Enterprises All rights reserved.