| 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, snmpMpdMib, 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, getSnmpMpdMib, 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, updateSessionprotected String address
protected File snapshot
protected List<StaticMOGroup> groups
public SnapshotAgent(File bootCounterFile, File configFile, File snapshot) throws IOException
IOExceptionprotected void addCommunities(SnmpCommunityMIB communityMIB)
addCommunities in class BaseAgentcommunityMIB - the SnmpCommunityMIB holding coexistence
configuration for community based security models.protected void addNotificationTargets(SnmpTargetMIB targetMIB, SnmpNotificationMIB notificationMIB)
addNotificationTargets in class BaseAgenttargetMIB - 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 BaseAgentusm - the USM instance used by this agent.protected void addViews(VacmMIB vacm)
protected void registerManagedObjects()
registerManagedObjects in class BaseAgentprotected void unregisterManagedObjects()
unregisterManagedObjects in class BaseAgentprotected void initTransportMappings()
throws IOException
BaseAgentinitTransportMappings in class BaseAgentIOException - 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 © 2020 SNMP4J.org. All rights reserved.