Package org.snmp4j.agent.mo.snmp
Class SnmpFrameworkMIB
java.lang.Object
org.snmp4j.agent.mo.snmp.SnmpFrameworkMIB
The SnmpFrameworkMIB implements the SNMP-FRAMEWORK-MIB as defined by
RFC 3411.
- Version:
- 2.3.2
- Author:
- Frank Fock
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSnmpFrameworkMIB
(org.snmp4j.security.USM usm, Collection<org.snmp4j.TransportMapping> transportMappings) SnmpFrameworkMIB
(org.snmp4j.security.USM usm, Collection<org.snmp4j.TransportMapping> transportMappings, boolean updateUsmFromMIB) -
Method Summary
Modifier and TypeMethodDescriptiongetName()
Returns the (unique) name of the module definition.getTextualConvention
(String name) Gets the textual convention for the specified name.Gets a collection ofTextualConvention
instances in thisTCModule
.org.snmp4j.security.USM
getUSM()
boolean
Indicates whether changes on thegetSnmpEngineID()
,getSnmpEngineBoots()
, andgetSnmpEngineTime()
values are propagated to the referenced USM instance.void
registerMOs
(MOServer server, org.snmp4j.smi.OctetString context) Registers the managed objects of this group with the server for the supplied context.void
unregisterMOs
(MOServer server, org.snmp4j.smi.OctetString context) Unregisters the managed objects of this group from the supplied server and from the supplied context.
-
Field Details
-
MODULE_NAME
- See Also:
-
SNMPADMINSTRING
- See Also:
-
SNMPENGINEID
- See Also:
-
-
Constructor Details
-
SnmpFrameworkMIB
public SnmpFrameworkMIB(org.snmp4j.security.USM usm, Collection<org.snmp4j.TransportMapping> transportMappings) -
SnmpFrameworkMIB
public SnmpFrameworkMIB(org.snmp4j.security.USM usm, Collection<org.snmp4j.TransportMapping> transportMappings, boolean updateUsmFromMIB)
-
-
Method Details
-
registerMOs
public void registerMOs(MOServer server, org.snmp4j.smi.OctetString context) throws DuplicateRegistrationException Description copied from interface:MOGroup
Registers the managed objects of this group with the server for the supplied context.- Specified by:
registerMOs
in interfaceMOGroup
- Parameters:
server
- theMOServer
where to register the managed objects.context
- the context to use (may benull
if no specific context is selected).- Throws:
DuplicateRegistrationException
- if a managed object's scope (i.e. lower bound) is already registered at the server.
-
unregisterMOs
Description copied from interface:MOGroup
Unregisters the managed objects of this group from the supplied server and from the supplied context.- Specified by:
unregisterMOs
in interfaceMOGroup
- Parameters:
server
- theMOServer
where to unregister the managed objects.context
- the context to use (may benull
if no specific context is selected).
-
getSnmpEngineBoots
-
getSnmpEngineID
-
getSnmpEngineMaxMessageSize
-
getSnmpEngineTime
-
getUSM
public org.snmp4j.security.USM getUSM() -
isUpdateUsmFromMIB
public boolean isUpdateUsmFromMIB()Indicates whether changes on thegetSnmpEngineID()
,getSnmpEngineBoots()
, andgetSnmpEngineTime()
values are propagated to the referenced USM instance. If true, changes of those objects will be applied to the USM.- Returns:
true
if changes are propagated.
-
getName
Description copied from interface:TCModule
Returns the (unique) name of the module definition. -
getTextualConvention
Description copied from interface:TCModule
Gets the textual convention for the specified name.- Specified by:
getTextualConvention
in interfaceTCModule
- Parameters:
name
- the object definition name of the TC MIB definition.- Returns:
- a
TextualConvention
instance.
-
getTextualConventions
Description copied from interface:TCModule
Gets a collection ofTextualConvention
instances in thisTCModule
.- Specified by:
getTextualConventions
in interfaceTCModule
- Returns:
- a Collection of
TextualConvention
instances.
-