SNMP4J-Agent Notes
From OpenNMS
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.









New Pages