Java Dynamic Management Kit 4.0 Tools Reference

mibgen Options

In order to invoke the java.com.sun.jdmk.tools.MibGen class you need to invoke java.com.sun.jdmk.tools.MibGen <options> <mib files>. The following options include:


mibgen<options><classes>

where <options> include:

-n

Parses the MIB files without generating code.

-d<dir>

Generates code in the specified target directory.

-tp pkgName

Generates code within the specified Java package.

-desc

Includes the "DESCRIPTION" clause of OBJECT-TYPE as comment in generated code.

-mo

Only generated code for the metadata definitions file for the MIB variables (SnmpOidTable file);.

-mc

Specify to not use the default MIB-CORE definitions file provided with JDMK;In this case, the user must specify the MIB-CORE definitions file as one of the <mib files>.

-a

Generate code for all the MIB files.

-p<prefix>

Use the specified prefix for naming generated classes.

-help

Print this help message.