Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

A snapshot file can be created with SNMP4J-CLT, SNMP4J, and MIB Explorer Pro. The following examples illustrate the commands necessary to save a snapshot file with SNMP4J-CLT from an agent that listens on the localhost interface on port 161:

Code Block

java -jar SNMP4J-CLT.jar -v 2c -c public create-snapshot /tmp/mibdump.sf 127.0.0.1/161 1.3.6

...

_Note: To use a snapshot file stored by MIB Explorer Pro with SNMP4J-Agent, you need to convert it into the SNMP4J snapshot format first. For MIB Explorer 2.x snapshot files download the converter from httphttps://wwwagentpp.com/tools/mibexplorer.com/SnapshotConverter.jar and run it with:

Code Block

java -jar SnapshotConv.jar [-h] <mibexplorer-snaphost-file> <snmp4j-snapshot-file> 

...

The following command line starts an agent listening on all interfaces on port 4700 which is provides the MIB variables collected in the file /tmp/mibdump.sf:

Code Block

java -cp SNMP4J-agent.jar;SNMP4J.jar org.snmp4j.agent.test.SnapshotAgent /tmp/mibdump.sf 0.0.0.0/4700

This agent can be then browsed using SNMP4J-CLT with:

Code Block

java -jar SNMP4J-CLT.jar -v 2c -c public walk 127.0.0.1/4700 1.3.6