com.sun.jaw.tools
Class MibGen

java.lang.Object
  |
  +--com.sun.jaw.tools.MibGen

public final class MibGen
extends java.lang.Object
implements java.lang.Runnable

The main class of the mibgen tool.

The class compiles a SNMP MIB expressed using SNMP V1 or SNMP V2 SMI and generates code for implementing the MIB as a set of Java BeansTM.

The compiler accepts SNMPv1 or SNMPv2 definitions mixted into a same MIB module. A MIB file can contain several MIB modules.

In order to invoke the class, you need to invoke:

where: In order to directly invoke the class, Java Dynamic Management provides a script called mibgen.
On Solaris the script is provided under $(PACKAGE_ROOT)/jaw/bin. If you use default install path the script is here.


Method Summary
static void main(java.lang.String[] args)
          The main method of the mibgen compiler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

main

public static void main(java.lang.String[] args)
The main method of the mibgen compiler.

This method creates an instance of MibGen and invokes the compiler.
If an error occurs, the method exits the VM with a status of 1.
If the compilation succeeds, the method exits the VM with a status of 0.

This method allows you to specify optional command-line parameters listed above.