SNMP4J-Agent Notes

From OpenNMS

(Redirected from SNMP4J)

Contents

What it is

The makers of the SNMP4J SNMP client / manager library, to which OpenNMS is moving from JoeSNMP, now have a library providing agent entity functionality.

Why it is relevant

As part of Dev-Jam 2006, we will implement an MockSNMPAgent to complement the existing MockNetwork framework, forming a complete operational test harness. The mock agent will play back MIB dumps taken ahead of time.

Usage Notes

OpenNMS 1.3.2 and Later

SNMP4J is enabled by default on 1.3.2 and Later

Enabling on 1.3.x previous to 1.3.2

Place this in opennms.conf (create it if you need to)

ADDITIONAL_MANAGER_OPTIONS="-Dorg.opennms.snmp.strategyClass=org.opennms.netmgt.snmp.snmp4j.Snmp4JStrategy"

Official Documentation

JavaDoc is here: SNMP4J-Agent JavaDoc

Bringing up a very basic mock agent

Copy over the org.snmp4j.agent.test.TestAgent class for use as a starting point. You'll want to change the default transport address (TestAgent sets it in main()) to use high port, e.g. 1161, or you will get bind exceptions.

Common problems with SNMP4J-Agent

Personal tools
DevJam 2008 Sponsors
DevJam 2008 Sponsor: Google
DevJam 2008 Sponsor: Netregistry
DevJam 2008 Sponsor: Papa John's
NewEdge Networks
OpenNMS takes home the gold award!
Join the Free Software Foundation
Support This Project Commercial OpenNMS Support OpenNMS Italia Get OpenNMS at SourceForge.net. Fast, secure and Free Open Source software downloads Our Network Simulator Our Java Profiler