Search code examples
snmpsnmp4j

SNMP4J-Agent: SampleAgent vs TestAgent


The documentation of SNMP4J-Agent tells, if you want to write your own SNMP agent you should sub-class BaseAgent.
And this is done in TestAgent class in the org.snmp4j.agent.test package.
But in org.snmp4j.agent.example there is another class SampleAgent which doesn't derive BaseAgent but, still implements an agent.

Could anyone tell me the difference between these two implementations? And also in order to write your own agent, which is the better code to learn from.


Solution

  • Finally!! found the answer in this mailing list..