|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SnmpV3AdaptorServerMBean
Exposes the remote management interface of the SnmpV3AdaptorServer
MBean.
Method Summary | |
---|---|
SnmpMibHandler |
addMib(SnmpMibAgent mib,
String contextName)
Adds a new contextualized MIB in the SNMP MIB handler. |
SnmpMibHandler |
addMib(SnmpMibAgent mib,
String contextName,
SnmpOid[] oids)
Adds a new contextualized MIB in the SNMP MIB handler. |
boolean |
disableCommunityStringAtContext()
Deactivate the community string to context translation. |
boolean |
enableCommunityStringAtContext()
Activate the community string to context translation. |
int[] |
getAccessControlModelIds()
Returns an array of access control model Ids. |
String[] |
getAccessControlModelNames()
Returns an array of access control model names. |
String[] |
getContexts()
Returns an array of context names. |
SnmpEngineId |
getEngineId()
Returns the associated SnmpEngineId value. |
String[] |
getMibs(String context)
Returns the names of the MIBs registered in the passed contextName. |
int[] |
getMsgProcessingModelIds()
Returns an array of message processing model Ids. |
String[] |
getMsgProcessingModelNames()
Returns an array of message processing model names. |
int[] |
getSecurityModelIds()
Returns an array of security model Ids. |
String[] |
getSecurityModelNames()
Returns an array of security model names. |
Long |
getSnmpInvalidMsgs()
Returns snmpInvalidMsgs as defined in rfc 2572 SNMP-MPD-MIB. |
Long |
getSnmpUnknownContexts()
Returns snmpUnknownContexts as defined in rfc 2573 SNMP-TARGET-MIB. |
Long |
getSnmpUnknownSecurityModels()
Returns snmpUnknownSecurityModels as defined in rfc 2572 SNMP-MPD-MIB. |
String[] |
getUsmSecurityAlgorithms()
Returns an array of User based Security Model supported algorithms. |
boolean |
isCommunityStringAtContextEnabled()
The community to context translation activation status. |
boolean |
removeMib(SnmpMibAgent mib,
String contextName)
Removes a contextualized MIB from the SNMP protocol adaptor. |
SnmpV3InformRequest |
snmpV3UsmInformRequest(SnmpUsmPeer informPeer,
SnmpInformHandler cb,
SnmpOid trapOid,
SnmpVarBindList list)
Sends an inform request using SNMP V3 inform request format. |
void |
snmpV3UsmTrap(InetAddress addr,
String principal,
int securityLevel,
String contextName,
SnmpOid trapOid,
SnmpVarBindList list)
Sends a trap to the specified address using Usm as security model. |
void |
snmpV3UsmTrap(InetAddress addr,
String principal,
int securityLevel,
String contextName,
SnmpOid trapOid,
SnmpVarBindList list,
SnmpTimeticks time)
Sends a trap to the specified address using Usm as security model. |
void |
snmpV3UsmTrap(SnmpUsmPeer peer,
SnmpOid trapOid,
SnmpVarBindList list,
SnmpTimeticks time)
Sends a trap to the specified SnmpUsmPeer using Usm as security model. |
void |
snmpV3UsmTrap(String principal,
int securityLevel,
String contextName,
SnmpOid trapOid,
SnmpVarBindList list)
Sends a trap to all IP addresses in IPAcl using Usm as security model. |
Methods inherited from interface com.sun.jdmk.comm.CommunicatorServerMBean |
---|
getHost, getPort, getState, getStateString, isActive, setPort, start, stop, waitState |
Method Detail |
---|
SnmpEngineId getEngineId()
SnmpEngineId
value.
int[] getSecurityModelIds()
String[] getSecurityModelNames()
int[] getMsgProcessingModelIds()
String[] getMsgProcessingModelNames()
int[] getAccessControlModelIds()
String[] getAccessControlModelNames()
String[] getUsmSecurityAlgorithms()
String[] getContexts()
String[] getMibs(String context)
context
- The context name.
SnmpMibHandler addMib(SnmpMibAgent mib, String contextName) throws IllegalArgumentException
SnmpMibAgent.setSnmpAdaptor(SnmpMibHandler, String)
and SnmpMibAgent.setSnmpAdaptorName(ObjectName, String)
and should not be called directly from remote.
addMib
in interface SnmpAdaptorServerMBean
mib
- The MIB to add.contextName
- The MIB context name. If null or
contextName.length == 0, will be registered in the default context.
IllegalArgumentException
- If the parameter is null.SnmpMibHandler addMib(SnmpMibAgent mib, String contextName, SnmpOid[] oids) throws IllegalArgumentException
SnmpMibAgent.setSnmpAdaptor(SnmpMibHandler, String, SnmpOid[])
and SnmpMibAgent.setSnmpAdaptorName(ObjectName, String, SnmpOid[])
and should not be called directly from remote.
mib
- The MIB to add.contextName
- The MIB context. If null or
contextName.length == 0, will be registered in the default context.oids
- The set of OIDs this agent implements.
If null or oids.length == 0, this is equivalent to calling
addMib(SnmpMibAgent mib, String contextName)
IllegalArgumentException
- If the parameter is null.boolean removeMib(SnmpMibAgent mib, String contextName)
SnmpMibAgent.setSnmpAdaptor(SnmpMibHandler, String)
and SnmpMibAgent.setSnmpAdaptorName(ObjectName, String)
and should not be called directly from remote.
mib
- The MIB to be removed.contextName
- The context name used at registration time.
If null or contextName.length == 0, will be removed from
the default context.
If null is passed, will be registered in the default context.
true
if the specified mib
was a MIB included in the SNMP MIB handler,
false
otherwise.SnmpV3InformRequest snmpV3UsmInformRequest(SnmpUsmPeer informPeer, SnmpInformHandler cb, SnmpOid trapOid, SnmpVarBindList list) throws IllegalStateException, IOException, SnmpStatusException
InetAddress
destination.
The inform is sent in an SNMP V3 message.
Engine Id of the inform receiver will be discovered using Snmp V3 engine Id discovery.
sysUpTime.0
with its current value
snmpTrapOid.0
with the value specified by trapOid
all the (oid,values)
from the specified varBindList
informPeer
- The peer to which the inform is sent.cb
- The callback that is invoked when a request is complete.trapOid
- The OId identifying the trap.list
- A list of SnmpVarBind
instances or null.
IllegalStateException
- This method has been invoked while the SNMP adaptor server was not active.
IOException
- An I/O error occurred while sending the inform request.
SnmpStatusException
- If the inform request exceeds the limit defined by bufferSize
.void snmpV3UsmTrap(String principal, int securityLevel, String contextName, SnmpOid trapOid, SnmpVarBindList list) throws IOException, SnmpStatusException
principal
- The user name to use.securityLevel
- The V3 message flags.contextName
- The V3 context name. The contextEngineId
is the local engine Id.trapOid
- The OId identifying the trap.list
- A list of SnmpVarBind
instances or null.
IOException
- An I/O error occurred while sending the trap.
SnmpStatusException
- If the trap exceeds the limit defined by bufferSize
.void snmpV3UsmTrap(InetAddress addr, String principal, int securityLevel, String contextName, SnmpOid trapOid, SnmpVarBindList list) throws IOException, SnmpStatusException
addr
- The trap address destination.principal
- The user name to use.securityLevel
- The V3 message flags.contextName
- The V3 context name. The contextEngineId
is the local engine Id.trapOid
- The OId identifying the trap.list
- A list of SnmpVarBind
instances or null.
IOException
- An I/O error occurred while sending the trap.
SnmpStatusException
- If the trap exceeds the limit defined by bufferSize
.void snmpV3UsmTrap(InetAddress addr, String principal, int securityLevel, String contextName, SnmpOid trapOid, SnmpVarBindList list, SnmpTimeticks time) throws IOException, SnmpStatusException
addr
- The trap address destination.principal
- The user name to use.securityLevel
- The V3 message flags.contextName
- The V3 context name. The contextEngineId
is the local engine Id.trapOid
- The OID identifying the trap.list
- A list of SnmpVarBind
instances or null.time
- The time stamp (overwrite the current time).
IOException
- An I/O error occurred while sending the trap.
SnmpStatusException
- If the trap exceeds the limit defined by bufferSize
.void snmpV3UsmTrap(SnmpUsmPeer peer, SnmpOid trapOid, SnmpVarBindList list, SnmpTimeticks time) throws IOException, SnmpStatusException, IllegalArgumentException
SnmpUsmPeer
using Usm as security model.
Security parameters and context name used are the one located in SnmpUsmPeer. Be sure to update them.
NO Usm discovery is needed when sending trap.
peer
- The trap destination.trapOid
- The OID identifying the trap.list
- A list of SnmpVarBind
instances or null.time
- The time stamp (overwrite the current time).
IOException
- An I/O error occurred while sending the trap.
SnmpStatusException
- If the trap exceeds the limit defined by bufferSize
.
IllegalArgumentException
- If no SnmpUsmParameters
are set.boolean enableCommunityStringAtContext()
boolean disableCommunityStringAtContext()
boolean isCommunityStringAtContextEnabled()
Long getSnmpUnknownSecurityModels()
snmpUnknownSecurityModels
as defined in rfc 2572 SNMP-MPD-MIB.
Long getSnmpInvalidMsgs()
snmpInvalidMsgs
as defined in rfc 2572 SNMP-MPD-MIB.
Long getSnmpUnknownContexts()
snmpUnknownContexts
as defined in rfc 2573 SNMP-TARGET-MIB.
|
Open Source build 02 opendmk-1.0-b02 2007.10.01_19:17:46_MEST |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |