Modifier and Type | Field and Description |
---|---|
protected String |
address |
protected List<StaticMOGroup> |
groups |
protected File |
snapshot |
agent, agentState, bootCounterFile, configFileURI, defaultContext, defaultPersistenceProvider, defaultProxyForwarder, dispatcher, mpv3, notificationOriginator, server, session, snmp4jConfigMIB, snmp4jLogMIB, snmpCommunityMIB, snmpFrameworkMIB, snmpNotificationMIB, snmpProxyMIB, snmpTargetMIB, snmpv2MIB, STATE_CREATED, STATE_INIT_FINISHED, STATE_INIT_STARTED, STATE_RUNNING, STATE_STOPPED, sysDescr, sysOID, sysServices, transportMappings, usm, usmMIB, vacmMIB
Constructor and Description |
---|
SnapshotAgent(File bootCounterFile,
File configFile,
File snapshot) |
Modifier and Type | Method and Description |
---|---|
protected void |
addCommunities(SnmpCommunityMIB communityMIB)
Adds community to security name mappings needed for SNMPv1 and SNMPv2c.
|
protected void |
addNotificationTargets(SnmpTargetMIB targetMIB,
SnmpNotificationMIB notificationMIB)
Adds initial notification targets and filters.
|
protected void |
addUsmUser(org.snmp4j.security.USM usm)
Adds all the necessary initial users to the USM.
|
protected void |
addViews(VacmMIB vacm)
Adds initial VACM configuration.
|
protected void |
initTransportMappings()
Initializes the transport mappings (ports) to be used by the agent.
|
static void |
main(String[] args) |
protected void |
registerManagedObjects()
Register additional managed objects at the agent's server.
|
protected void |
unregisterManagedObjects()
Unregister additional managed objects from the agent's server.
|
addShutdownHook, finishInit, getAgent, getAgentState, getBootCounterFile, getConfigFile, getContext, getDefaultContext, getDefaultProxyForwarder, getEngineBoots, getMPv3, getNotificationOriginator, getServer, getSession, getSnmp4jConfigMIB, getSnmp4jLogMIB, getSnmpCommunityMIB, getSnmpFrameworkMIB, getSnmpNotificationMIB, getSnmpProxyMIB, getSnmpTargetMIB, getSnmpv2MIB, getSysDescr, getSysOID, getSysServices, getUsm, getUsmMIB, getVacmMIB, init, initConfigMIB, initMessageDispatcher, initSnmpSession, loadConfig, registerSnmpMIBs, run, saveConfig, sendColdStartNotification, setAgent, setBootCounterFile, setConfigFile, setDefaultContext, setDefaultProxyForwarder, setSysDescr, setSysOID, setSysServices, setupDefaultProxyForwarder, stop, unregisterSnmpMIBs, updateEngineBoots, updateSession
protected String address
protected File snapshot
protected List<StaticMOGroup> groups
public SnapshotAgent(File bootCounterFile, File configFile, File snapshot) throws IOException
IOException
protected void addCommunities(SnmpCommunityMIB communityMIB)
addCommunities
in class BaseAgent
communityMIB
- the SnmpCommunityMIB holding coexistence
configuration for community based security models.protected void addNotificationTargets(SnmpTargetMIB targetMIB, SnmpNotificationMIB notificationMIB)
addNotificationTargets
in class BaseAgent
targetMIB
- the SnmpTargetMIB holding the target configuration.notificationMIB
- the SnmpNotificationMIB holding the notification
(filter) configuration.protected void addUsmUser(org.snmp4j.security.USM usm)
addUsmUser
in class BaseAgent
usm
- the USM instance used by this agent.protected void addViews(VacmMIB vacm)
protected void registerManagedObjects()
registerManagedObjects
in class BaseAgent
protected void unregisterManagedObjects()
unregisterManagedObjects
in class BaseAgent
protected void initTransportMappings() throws IOException
BaseAgent
initTransportMappings
in class BaseAgent
IOException
- if an IO exception occurs while initializing the default transport mapping on all local IP addresses on
port 161.public static void main(String[] args)
Copyright © 2016 SNMP4J.org. All rights reserved.