Java Dynamic Management Kit 3.2 Programming Guide

Abstract:

This book explains how to develop dynamically extensible, smart agents using the JavaTM Dynamic ManagementTM Kit. Such agents are applicable to network management, system management, application management, and service management. This book is aimed at agent developers, who are likely to be experienced system programmers, with an understanding of network management concepts. Familiarity with Java programming and the JavaBeansTM component model is assumed.

Table of Contents
Preface
Who Should Use This Book
Related Documentation
How This Book Is Organized
Ordering Sun Documents
Accessing Sun Documentation Online
What Typographic Changes Mean
Prompts in Command Examples
I. Getting Started
1. Introduction to the Java Dynamic Management Kit
Overview
Key Concepts
Benefits of the Java Dynamic Management Kit
Product Components
Overview of the Development Process
2. Tutorial Example
Developing an M-Bean
Developing an Agent
Generating a C-Bean
Developing a Manager
Further Examples
II. Using Java Dynamic Management Kit Core Technology
3. Design Patterns for Developing M-Beans
Introduction
Properties
Event Sources
Initializing and Deleting an M-Bean
Actions
4. Operations on M-Beans
Object Name
Registering an M-Bean
Deleting M-Beans
Framework Events
Retrieving M-Beans
Getting and Setting Properties
Invoking M-Bean Actions
5. Adaptors
Supplied Adaptors
Adding an Adaptor to an Agent
Access to an Adaptor
Operation of the Adaptors
Access Control
Implementing an Adaptor
6. C-Beans
Interface and Stub of a C-Bean
Overview of the mogen Compiler
Command for Starting mogen
Output of the mogen Compiler
Using the Generated Code
7. Adaptor Clients
Overview
Supported Protocols
Initializing an Adaptor Client
Operations on an Agent
Advanced Configuration
III. Problem Solving
8. Tools for Browsing M-Beans
Tools Provided
The M-Bean Browser Web Page
The job Tool
Information for Instantiating an M-Bean
9. Troubleshooting
Printing Debug Messages
Setting the Class Path
Threads With Native Methods
Getters and Setters in a C-Bean
Missing Value Change Events
Adaptor Client Local Exceptions
IV. Using the Supplied Services
10. Base Services - Customizing the Framework
Initializing the Framework
Repository Service
Activation Interface
Metadata Service
Filtering Service
Relationship Service
Thread Allocator Service
11. Security
Running an Agent
Extended Permissions
Security in Class Loading Services
Permissions File
12. Dynamic Loading Services
Class Loaders
Library Loaders
Security Manager
Code Signing
13. Class and Library Loading Service
Class and Library Server
Class and Library Loader
Using the Library Loading Service
Security Manager
Code Signing
14. M-Let, Bootstrap and Launcher Services
M-Let Service
Bootstrap Service
Using the Library Loading Service
Security Manager
Code Signing
Launcher Service
15. Event Handling, Alarm Clock, and Monitoring Services
Event Handling Service
Alarm Clock Service
Scheduler Service
Monitoring Service
Discovery Service
16. Cascading Agent Service
V. Interoperating With SNMP
17. The SNMP Toolkit
SNMP Adaptor
SNMP MIB Compiler - mibgen
SNMP Manager API
18. The mibgen Compiler
Using the mibgen Compiler
Output From the mibgen Compiler
19. Developing SNMP Agents With the Java Dynamic Management Kit
SNMP Agent Overview
Overview of the Agent Development Process
Implementing Access Methods
Loading MIBs Into an SNMP Adaptor
Advanced use of the SNMP Adaptor
20. Developing SNMP Managers With the Java Dynamic Management Kit
SNMP Manager Overview
Operation of the SNMP Manager
Loading Metadata Into the MibStore
SNMP Traps
Polling
VI. Supplementary Information
A. JAR File Structure
B. Environment Variables and System Properties
Solaris Operating Environment
Windows NT Environment
System Properties
C. Java Packages Supplied With the Java Dynamic Management Kit
Reference Packages
Implementation Packages
SNMP Packages
Tools Packages
D. Java Beans Development Kit Example
Directories and Files
Making a Manageable JavaBeans Component
Compiling the Agent
Using the Java Beans Development Kit With the Agent Example
E. The Default Base Agent
Starting and Stopping the Base Agent in the Solaris Environment
Starting and Stopping the Base Agent in the Windows NT Environment
Glossary