Java Dynamic Management Kit 4.1 Tools Reference

Classes Representing SNMP Groups

For each SNMP group defined in the MIB, mibgen generates:

Skeletal MBeans Representing Groups

The mibgen compiler generates an MBean for each group defined in the MIB. These skeletal MBeans need to be completed by adding implementation-specific code (access methods). The generated code is initialized with default values for the different MIB variables. If the MIB specifies a default value for an SNMP variable, this value will be used to initialize the corresponding variable in the MBean skeleton. Therefore, if you compile the generated code directly, you will obtain a running agent. In this case, values returned by the agent when querying the MIBs will be default values or meaningless values, if no default value has been provided in the MIB file for the variable.

MBeans generated from groups are named using the group names specified in the MIB definition.

Metadata Files

As well as generating skeletal MBeans to represent each group, mibgen generates a metadata file. The metadata file contains Java source code that provides the SNMP view of the MBean. Metadata files do not need to be modified. For metadata files, the Meta suffix is added.