Run SNMP4J-AgentX Master Agent
The following command line starts the SNMP4J-AgentX master agent for testing. The option -X binds the AgentX listen port to the local loop address on port 705.
Note: On UNIX systems, you will have to run the agent with root privileges in order to be able to bind ports below 1024.
Run NET-SNMP Subagent
When the master agent is running, you can start the NET-SNMP subagent:
The option --X lets the NET-SNMP agent run as an AgentX sub-agent that connects to the port 705 on the local host.
Both agents can be stopped and restarted individually, because the subagent will try to reconnect periodically if it loses connection to the master agent.