The mibgen compiler takes as input a set of SNMP MIBs and generates standard MBeans that you can customize. MIBs can be expressed using SNMP v1 or SNMP v2 syntax.
The mibgen compiler is able to process:
Tables with cross references indexed across several MIBs.
MIBs that contain both v1 and v2 definitions.
Nested groups.
Default value variables.
The mibgen compiler also generates the Java source code required for representing a whole MIB in an SNMP agent. Table objects provide methods for adding and removing entries from the table.
When the whole MIB file is registered in the MBean server, all the associated groups are automatically instantiated and added to the MBean server. The Java Dynamic Management Kit 4.1 supports nested SNMP groups in MIB definitions, enabling you to register groups below groups in the MIBs.