30.9.10

The Simplest SNMP Agent Implementation Using SNMP4J Agent

If you are looking for a very simple SNMP Agent implementation using SNMP4J Agent library, here it .

http://code.google.com/p/springside-sub/source/browse/#svn/trunk/tiny-examples/simple-snmp-agent

Essential Elements

To start an SNMP Agent, I need the following essential elements:

  • Daemon information and daemon
  • Authentication

With SNMP4J, you can find the following terminologies / mappings:

Authentication Community
Network Daemon Transport

BaseAgent

SNMP4JAgentAPI-ClassOverview_1_0-BaseAgent

BaseAgent is usually the start point for programming an SNMP4J Agent. And it is a good idea to understand all properties of this class. Interestingly,

  • MIBs
  • Maanageable Object Server
  • Proxy Forwarder

MIBs

  protected SNMPv2MIB snmpv2MIB;
protected SnmpFrameworkMIB snmpFrameworkMIB;
protected SnmpTargetMIB snmpTargetMIB;
protected SnmpNotificationMIB snmpNotificationMIB;
protected SnmpProxyMIB snmpProxyMIB;
protected SnmpCommunityMIB snmpCommunityMIB;
protected Snmp4jLogMib snmp4jLogMIB;
protected Snmp4jConfigMib snmp4jConfigMIB;
protected UsmMIB usmMIB;
protected VacmMIB vacmMIB;

No comments: