public class WaarpSnmpAgent
extends BaseAgent
Constructor and Description |
---|
WaarpSnmpAgent(File configurationFile,
WaarpInterfaceMonitor monitor,
WaarpInterfaceMib mib) |
Modifier and Type | Method and Description |
---|---|
protected void |
addCommunities(SnmpCommunityMIB communityMIB)
The table of community strings configured in the SNMP engine's Local
Configuration Datastore (LCD).
|
protected void |
addNotificationTargets(SnmpTargetMIB targetMIB,
SnmpNotificationMIB notificationMIB)
Adds initial notification targets and filters.
|
protected void |
addUsmUser(USM usm)
Adds all the necessary initial users to the USM.
|
protected void |
addViews(VacmMIB vacm)
Minimal View based Access Control
http://www.faqs.org/rfcs/rfc2575.html
|
WaarpInterfaceMib |
getMib() |
WaarpInterfaceMonitor |
getMonitor() |
int |
getTrapLevel() |
long |
getUptime() |
long |
getUptimeSystemTime() |
protected void |
initTransportMappings() |
protected void |
registerManagedObjects()
Register additional managed objects at the agent's server.
|
protected void |
sendColdStartNotification() |
protected void |
sendShutdownNotification()
Send a Notification just before Shutdown the SNMP service.
|
void |
setTrapLevel(int trapLevel) |
void |
start()
Start method invokes some initialization methods needed to start the
agent
|
void |
stop() |
void |
unregisterManagedObject(MOGroup moGroup) |
protected void |
unregisterManagedObjects()
Unregister the basic MIB modules from the agent's MOServer.
|
public WaarpSnmpAgent(File configurationFile, WaarpInterfaceMonitor monitor, WaarpInterfaceMib mib) throws IllegalArgumentException
configurationFile
- XML formatmonitor
- the associated monitormib
- the associated MIBIllegalArgumentException
public WaarpInterfaceMonitor getMonitor()
public WaarpInterfaceMib getMib()
public long getUptime()
public long getUptimeSystemTime()
protected void registerManagedObjects()
protected void unregisterManagedObjects()
public void unregisterManagedObject(MOGroup moGroup)
moGroup
- protected void addUsmUser(USM usm)
protected void addNotificationTargets(SnmpTargetMIB targetMIB, SnmpNotificationMIB notificationMIB)
protected void addViews(VacmMIB vacm)
http://www.faqs.org/rfcs/rfc2575.html
protected void addCommunities(SnmpCommunityMIB communityMIB)
We only configure one, "public".
protected void initTransportMappings() throws IOException
IOException
public void start() throws IOException
IOException
protected void sendColdStartNotification()
protected void sendShutdownNotification()
public void stop()
public int getTrapLevel()
public void setTrapLevel(int trapLevel)
trapLevel
- the trapLevel to setCopyright © 2009–2020 Waarp. All rights reserved.