Search code examples
snmpsnmp4j

SNMP4J: Which SNMP4J Jar should be used to write a SNMP agent?


I am new to SNMP agent implementation. A confusion regarding the usage of SNMP4J API is, which SNMP4J Api should be used to create the agent? Should it be SNMP4J or SNMP4J-Agent?


Solution

  • An agent is some kind of server: it mainly replies to requests (it may occasionally also send traps to managers).

    A manager is a some kind of client: it mainly send requests to agents (it may occasionally also receive traps from managers).

    • SNMP4J is the library for managers to send requests to remote agents.
    • SNMP4J-Agent is the library for agents to reply to requests.

    So, to write a SNMP agent, you need to use SNMP4J-Agent jar file.