Class TestMasterAgent

java.lang.Object
org.snmp4j.agent.agentx.master.test.TestMasterAgent

public class TestMasterAgent extends Object
Sample master agent with programmatically applied security configuration. To create your own master agent, create a similar class and implement your own MIB initialization code either programmatically or by using a MOInputFactory which uses a PropertyMOInput to read configuration from a properties file (see the TestSubagentConfig.properties file of the
invalid reference
org.snmp4j.agent.example
package.
Version:
3.0.0
Author:
Frank Fock
  • Field Details

    • logger

      public static org.snmp4j.log.LogAdapter logger
    • address

      protected String address
    • agent

      protected AgentXMasterAgent agent
    • server

      protected org.snmp4j.agent.MOServer server
  • Constructor Details

  • Method Details

    • addListenAddresses

      protected void addListenAddresses(org.snmp4j.MessageDispatcher md, List<Object> addresses)
    • addNotificationTargets

      protected void addNotificationTargets(org.snmp4j.agent.mo.snmp.SnmpTargetMIB targetMIB, org.snmp4j.agent.mo.snmp.SnmpNotificationMIB notificationMIB)
    • addViews

      protected void addViews(org.snmp4j.agent.mo.snmp.VacmMIB vacm)
    • addCommunities

      protected void addCommunities(org.snmp4j.agent.mo.snmp.SnmpCommunityMIB communityMIB)
    • addUsmUser

      protected void addUsmUser(org.snmp4j.security.USM usm)
    • main

      public static void main(String[] args)