Sun Microsystems
Products & Services
 
Support & Training
 
 

Previous Previous     Contents     Index     Next Next
Part V

SNMP Interoperability

From the outset, the Java Dynamic Management Kit (Java DMK) was designed to be compatible with existing management standards. The Simple Network Management Protocol (SNMP) is the most widely used of these, and the Java DMK provides the tools to integrate Java technology-based solutions into the SNMP world.

Using the SNMP interoperability with Java dynamic management solutions, you can develop agents that can be accessed through SNMP and through other protocols. You can also develop managers in the Java programming language that access both SNMP agents and Java dynamic management agents.

The agent and manager tools of the Java DMK are completely independent. SNMP agents developed with this toolkit can be accessed by any SNMP manager, and the SNMP manager API lets you connect to any SNMP agent. The sample applications in this part use the toolkit on both agent and manager sides, but this is only one possible configuration.

This part contains the following chapters:

  • Chapter 16, Creating an SNMP Agent describes how to create an SNMP agent. This chapter demonstrates how the SNMP protocol adaptor makes a Java dynamic management agent also act as an SNMP agent. The MBeans generated by the mibgen tool represent SNMP MIBs that can be accessed by any SNMP manager connecting to the SNMP adaptor. This lets you implement your MIB through Java code and take advantage of the agent services. The example applications also demonstrate how traps are sent through the SNMP protocol adaptor.

  • Chapter 17, Developing an SNMP Manager shows you how to use the SNMP manager API to develop an SNMP manager in the Java programming language. An SNMP manager handles Java objects representing peers, parameters, sessions, and requests to access SNMP agents and perform management operations. Two examples demonstrate synchronous and asynchronous manager applications, and a third example shows how managers can communicate through inform requests.

  • Chapter 18, Advanced MIB Implementations shows you how to implement SNMP tables, with differing levels of complexity. Straightforward tables that implement the RowStatus convention are demonstrated. These tables are then extended to add instrumentation to the tables. Finally, how to implement virtual tables is also explained.

  • Chapter 19, Security Mechanisms in the SNMP Toolkit groups all of the information about creating secure SNMP agents and managers. User-based security model (USM) acess control lists (ACL) provide authentication and privacy to requests. Custom packet encoding between managers and agents is also possible, letting you develop any level of communication security you need.

  • Chapter 20, SNMP Master Agent describes the SNMP Master Agent and provides examples showing how to make a subagent interact with a manager via three different types of SNMP master agent.


Note - The Java packaging of the SNMP classes for Java DMK 5.1 has changed. In Java DMK 5.0, the SNMP classes were included in the SUNWjsnmp package, and they required a separate Java archive (JAR) file, jsnmpapi.jar. In Java DMK 5.1, the SNMP classes are packaged in the SUNWjdmk-runtime package, and require the same jdmkrt.jar JAR file as the rest of the current Java DMK classes. This new arrangement avoids the issue of potentially conflicting versions of the SUNWjsnmp package encountered under Java DMK 5.0.

In addition, the SNMP API delivered with Java DMK 5.0 is now deprecated. The SNMP API in Java DMK 5.1 is effectively a completely new SNMP API, that introduces a more orthodox system of Java class naming.

To use existing SNMP implementations that you created using Java DMK 5.0 alongside SNMP implementations created using Java DMK 5.1, you must translate the class names of the 5.0 implementations into the new format. How to perform this translation is explained in the Release Notes.

To continue to use SNMP implementations you created using version 5.0 of Java DMK under version 5.1, a new JAR file called legacysnmp.jar is provided. You must add this new JAR to your classpath when running your Java DMK 5.0 SNMP implementations under Java DMK 5.1.

All the examples of SNMP code given in the /examples/current/Snmp directory have already been translated to implement the new class naming system.


Previous Previous     Contents     Index     Next Next