How do I create an agent (or snmp simulator) using a "MIB walk"?
With SNMP4J and SNMP4J-Agent you can create a simulation agent from a real agent in two steps:
1. Create a MIB walk snapshot file
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:
With MIB Explorer Pro, you can use the MIB browser GUI to walk a subtree (or several independent subtrees, even from different agents) and combine those variables into a snapshot file. You can also compare snapshot files and view their content.
_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 https://agentpp.com/tools/mibexplorer/SnapshotConv.jar and run it with:
2. Run the SNMP4J-Agent Snapshot-Agent with the created 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:
This agent can be then browsed using SNMP4J-CLT with: