Example to provide RMI access to existing SNMP Agent through JMX-SNMP Proxy

Contents:

Introduction

This is a simple Multi-Protocol Agent example to give RMI access to an existing SNMP v2 agent instrumented for a RFC1213-MIB(System, ifTable only).
__________________________________________________________________________________________________________________________

Overview

For example to give HTTP, RMI, CORBA access to an existing SNMP v1 agent, look at this example for doing that. This is done with Snmp Proxy concept.

Note : To run this example, please make sure that the native agent (supporting system group and ifTable) is running on port 161 (if not change the port and host name in the configuration file "JMXSNMPProxyMBeansConf.xml" present in the "conf" directory).
__________________________________________________________________________________________________________________________

Getting Started :

Source files

The code is generated for RFC1213-MIB ( system group & ifTable ) using JMXCompiler with options "Generate JMX - SNMP proxy".  The following are the source files,
 


Compilation

Go to WebNMS/JavaAgent/examples/jmx/jmxproxy/ directory in the command prompt and type,

compile.bat  [Windows] (or)
sh compile.sh [Linux/Solaris]

This compiles the source files and puts it in the respective directory.

Running the Agent

To start the agent go to WebNMS/JavaAgent/examples/jmx/jmxproxy/ directory in the command prompt and type
run.bat or run.sh

By default

Testing
     
  1. Use MBean browser to access the data through RMI ( start MBean browser using MBeanBrowser.bat/MBeanBrowser.sh )

  2.  
  3. Use MibBrowser to access the data through SNMP ( The data can be accessed at port 161 & 8001) where access at 161 is direct while the access at 8001 is through Multi-Protocol SNMP adaptor.


__________________________________________________________________________________________________________________________

Copyright (c) 2009  ZOHO Corp. All Rights Reserved.