Class TestMasterAgent
java.lang.Object
org.snmp4j.agent.agentx.master.test.TestMasterAgent
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
package.
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
- Version:
- 3.0.0
- Author:
- Frank Fock
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addCommunities
(org.snmp4j.agent.mo.snmp.SnmpCommunityMIB communityMIB) protected void
addListenAddresses
(org.snmp4j.MessageDispatcher md, List<Object> addresses) protected void
addNotificationTargets
(org.snmp4j.agent.mo.snmp.SnmpTargetMIB targetMIB, org.snmp4j.agent.mo.snmp.SnmpNotificationMIB notificationMIB) protected void
addUsmUser
(org.snmp4j.security.USM usm) protected void
addViews
(org.snmp4j.agent.mo.snmp.VacmMIB vacm) static void
-
Field Details
-
logger
public static org.snmp4j.log.LogAdapter logger -
address
-
agent
-
server
protected org.snmp4j.agent.MOServer server
-
-
Constructor Details
-
TestMasterAgent
-
-
Method Details
-
addListenAddresses
-
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
-