Getting Started with the Java Dynamic Management Kit 4.0

The SNMP Toolkit

The Java Dynamic Management Kit provides a toolkit for developing SNMP agents and managers. This includes:

Developing An SNMP Agent

Developing an SMNP Agent using the Java Dynamic Management Kit involves three steps:

SNMP MIB Compiler -- mibgen

The mibgen compiler takes as input a set of SNMP MIBs and generates standard MBeans that implement the MIBs. MIBs can be expressed using SNMP v1 or SNMP v2 syntax.

The mibgen compiler is able to process:

The mibgen compiler also generates the Java source code required for representing a whole MIB in an SNMP manager. 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.

SNMP Protocol Adaptor

The SNMP adaptor implements the SNMP v1 and v2 protocol stack. The protocol adaptor is able to manage an unlimited number of different Management Information Bases, commonly referred to as MIBs. By providing a unified view of all the MIBs, the SNMP adaptor solves the subagent problem that commonly occurs with SNMP. The SNMP protocol adaptor allows MIBs to be loaded or unloaded dynamically. This enables a MIB to be loaded into, updated, and unloaded from an agent while it is running.

SNMP Manager API

The SNMP manager API is a set of Java classes that simplifies the development of applications for managing SNMP agents. The agents may be developed using the Java Dynamic Management Kit, or by other means.