|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jdmk.comm.CommunicatorServer
com.sun.management.comm.CommunicatorServer
com.sun.management.comm.SnmpAdaptorServer
com.sun.management.comm.SnmpV3AdaptorServer
public class SnmpV3AdaptorServer
Implements an adaptor on top of the SNMP V3 protocol.
This adaptor deals with SNMP V1 and V2c protocols too (thanks to
the SnmpAdaptorServer
inheritence).
SnmpV3AdaptorServer
can be seen as an SNMP V3 engine.
The engine is constructed at SnmpV3AdaptorServer
construction time. This engine contains :
usmHMACMD5AuthProtocol
and usmHMACSHAAuthProtocol
authentication algorithms. IP Acl is configured as with SnmpAdaptorServer
.
To configure user Acl, see JdmkUserAcl
.
Field Summary |
---|
Fields inherited from class com.sun.jdmk.comm.CommunicatorServer |
---|
HTML_TYPE, HTTP_TYPE, HTTPS_TYPE, OFFLINE, ONLINE, RMI_TYPE, SNMP_TYPE, STARTING, STOPPING |
Constructor Summary | |
---|---|
SnmpV3AdaptorServer()
Initializes this SNMP protocol adaptor using the default port (161). |
|
SnmpV3AdaptorServer(boolean useAcl,
int port,
InetAddress addr)
Initializes this SNMP protocol adaptor using the specified port and the specified InetAddress . |
|
SnmpV3AdaptorServer(InetAddress addr)
Initializes this SNMP protocol adaptor using the default port (161) and the specified InetAddress . |
|
SnmpV3AdaptorServer(InetAddressAcl acl)
Initializes this SNMP protocol adaptor using the default port (161) and the specified IP address based ACL implementation. |
|
SnmpV3AdaptorServer(InetAddressAcl acl,
InetAddress addr)
Initializes this SNMP protocol adaptor using the specified IP address based ACL implementation and the specified InetAddress . |
|
SnmpV3AdaptorServer(InetAddressAcl acl,
int port)
Initializes this SNMP protocol adaptor using the specified port and the specified IP address based ACL implementation. |
|
SnmpV3AdaptorServer(InetAddressAcl acl,
int port,
InetAddress addr)
Initializes this SNMP protocol adaptor using the specified port, the specified address based ACL implementation and the specified InetAddress . |
|
SnmpV3AdaptorServer(int port)
Initializes this SNMP protocol adaptor using the specified port. |
|
SnmpV3AdaptorServer(int port,
InetAddress addr)
Initializes this SNMP protocol adaptor using the specified port and the specified InetAddress . |
|
SnmpV3AdaptorServer(SnmpEngineParameters parameters,
SnmpEngineFactory factory,
boolean useAcl,
int port,
InetAddress addr)
Initializes this SNMP protocol adaptor with a specified factory, engine parameters, port and the specified InetAddress . |
|
SnmpV3AdaptorServer(SnmpEngineParameters parameters,
SnmpEngineFactory factory,
InetAddressAcl ipacl,
int port,
InetAddress addr)
Initializes this SNMP protocol adaptor with a specified factory, engine parameters, an ACL implementation, a port, and the specified InetAddress . |
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. |
void |
addRequestForwarder(SnmpRequestForwarder forwarder,
SnmpEngineId contextEngineId)
Adds a new MIB forwarder attached to a passed engine Id. |
protected ObjectName |
createUsmMibObjectName(SnmpEngine engine)
This method is called by the adaptor. |
boolean |
disableCommunityStringAtContext()
Deactivate the community string to context translation. |
boolean |
disableSnmpV1V2SetRequest()
Disable SNMP V1 and V2 set requests. |
boolean |
enableCommunityStringAtContext()
Activate the community string to context translation. |
boolean |
enableSnmpV1V2SetRequest()
Enable SNMP V1 and V2 set requests. |
int[] |
getAccessControlModelIds()
Returns an array of access control model Ids. |
String[] |
getAccessControlModelNames()
Returns an array of access control model names. |
String[] |
getContexts()
Returns the list of contexts in which some MIBs have been registered. |
SnmpEngine |
getEngine()
Returns the associated SnmpEngine value. |
SnmpEngineId |
getEngineId()
Returns the associated SnmpEngineId value. |
String[] |
getMibs()
Returns the names of the MIBs available in this SNMP protocol adaptor. |
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 |
getSnmpUnknownPDUHandlers()
Returns snmpUnknownPDUHandlers as defined in RFC 2572
SNMP-MPD-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 |
isSnmpV1V2SetRequestAuthorized()
The SNMP V1 and V2 set requests authorization status. |
void |
registerUsmMib()
In order to register the USM mib in the SnmpV3AdaptorServer . |
void |
registerUsmMib(MBeanServer server,
ObjectName obj)
In order to register the USM mib in the MBeanServer . |
boolean |
removeMib(SnmpMibAgent mib,
String contextName)
Removes a contextualized MIB from the SNMP protocol adaptor. |
boolean |
removeMib(SnmpMibAgent mib,
String contextName,
SnmpOid[] oids)
Removes the specified MIB from the SNMP protocol adaptor. |
boolean |
removeRequestForwarder(SnmpEngineId engineId)
Removes a request forwarder. |
SnmpV3InformRequest |
snmpV3InformRequest(InetAddress addr,
SnmpInformHandler cb,
SnmpScopedPduRequest pdu,
SnmpOid trapOid,
SnmpVarBindList varBindList)
You shouldn't use this method directly. |
void |
snmpV3Trap(InetAddress addr,
SnmpScopedPduRequest pdu)
You shouldn't call this method directly. |
void |
snmpV3Trap(SnmpScopedPduRequest pdu)
You shouldn't call this method directly. |
void |
snmpV3Trap(SnmpUsmPeer peer,
SnmpScopedPduRequest pdu)
You shouldn't call this method directly. |
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 InetAddressAcl
using Usm as security model. |
Methods inherited from class com.sun.management.comm.CommunicatorServer |
---|
addNotificationListener, getMBeanServer, getNotificationInfo, getState, getStateString, isActive, removeNotificationListener, run, setMBeanServer, start, waitState |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.sun.jdmk.comm.CommunicatorServerMBean |
---|
getHost, getPort, getState, getStateString, isActive, setPort, start, stop, waitState |
Constructor Detail |
---|
public SnmpV3AdaptorServer() throws IllegalArgumentException
JdmkAcl
default
implementation of the InetAddressAcl
interface.
The SNMP engine is instantiated at the same time.
WARNING : The engine id is computed as follows:
In some cases the adaptor will fail during creation :
IllegalArgumentException
- If one of the
specified configuration files doesn't exist or is incorrect.public SnmpV3AdaptorServer(int port) throws IllegalArgumentException
JdmkAcl
default
implementation of the InetAddressAcl
interface.
WARNING : The engine id is computed as follows:
In some cases the adaptor will fail during creation :
port
- The port number for sending SNMP responses.
IllegalArgumentException
- If one of the specified
configuration files doesn't exist or is incorrect.public SnmpV3AdaptorServer(InetAddressAcl acl) throws IllegalArgumentException
WARNING : The engine id is computed as follows:
In some cases the adaptor will fail during creation :
acl
- The InetAddressAcl
implementation.
IllegalArgumentException
- If one of the
specified configuration files doesn't exist or is incorrect.public SnmpV3AdaptorServer(InetAddress addr) throws IllegalArgumentException
InetAddress
.
Use the JdmkAcl
default
implementation of the InetAddressAcl
interface.
WARNING : The engine id is computed as follows:
In some cases the adaptor will fail during creation :
addr
- The IP address to bind.
IllegalArgumentException
- If one of the specified
configuration files doesn't exist or is incorrect.public SnmpV3AdaptorServer(InetAddressAcl acl, int port) throws IllegalArgumentException
WARNING : The engine id is computed as follows:
In some cases the adaptor will fail during creation :
acl
- The InetAddressAcl
implementation.port
- The port number for sending SNMP responses.
IllegalArgumentException
- If one of the
specified configuration files doesn't exist or is incorrect.public SnmpV3AdaptorServer(int port, InetAddress addr) throws IllegalArgumentException
InetAddress
.
Use the JdmkAcl
default
implementation of the InetAddressAcl
interface.
WARNING : The engine id is computed as follows:
In some cases the adaptor will fail during creation :
port
- The port number for sending SNMP responses.addr
- The IP address to bind.
IllegalArgumentException
- If one of the
specified configuration files doesn't exist or is incorrect.public SnmpV3AdaptorServer(InetAddressAcl acl, InetAddress addr) throws IllegalArgumentException
InetAddress
.
WARNING : The engine id is computed as follows:
In some cases the adaptor will fail during creation :
acl
- The InetAddressAcl
implementation.addr
- The IP address to bind.
IllegalArgumentException
- If one of the
specified configuration files doesn't exist or is incorrect.public SnmpV3AdaptorServer(InetAddressAcl acl, int port, InetAddress addr) throws IllegalArgumentException
InetAddress
.
WARNING : The engine id is computed as follows:
In some cases the adaptor will fail during creation :
acl
- The InetAddressAcl
implementation.port
- The port number for sending SNMP responses.addr
- The IP address to bind.
IllegalArgumentException
- If one of the specified
configuration files doesn't exist or is incorrect.public SnmpV3AdaptorServer(boolean useAcl, int port, InetAddress addr) throws IllegalArgumentException
InetAddress
.
This constructor allows you to initialize an SNMP adaptor without
using the ACL mechanism (by setting the useAcl
parameter
to false).
java.security.acl
package like pJava.
WARNING : The engine id is computed as follows:
In some cases the adaptor will fail during creation :
useAcl
- Specifies if this new SNMP adaptor uses the ACL mechanism.
If the specified parameter is set to true
, this
constructor is equivalent to
SnmpV3AdaptorServer(int port, InetAddress addr)
.port
- The port number for sending SNMP responses.addr
- The IP address to bind.
IllegalArgumentException
- If one of the specified
configuration files doesn't exist or is incorrect.public SnmpV3AdaptorServer(SnmpEngineParameters parameters, SnmpEngineFactory factory, InetAddressAcl ipacl, int port, InetAddress addr) throws IllegalArgumentException
InetAddress
.
WARNING : The engine id is computed as follows:
In some cases the adaptor will fail during creation :
parameters
- The engine parameters to use.factory
- The factory to use in order to create the engine.ipacl
- The InetAddressAcl
implementation.port
- The port number for sending SNMP responses.addr
- The IP address to bind.
IllegalArgumentException
- If one of the specified
configuration files doesn't exist or is incorrect.public SnmpV3AdaptorServer(SnmpEngineParameters parameters, SnmpEngineFactory factory, boolean useAcl, int port, InetAddress addr) throws IllegalArgumentException
InetAddress
.
This constructor allows you to initialize an SNMP adaptor without
using the ACL mechanism (by setting the useAcl
parameter
to false).
java.security.acl
package like pJava.
WARNING : The engine id is computed as follows:
In some cases the adaptor will fail during creation :
parameters
- The engine parameters to use.factory
- The factory to use in order to create the engine.useAcl
- If set to false, no ACL is used.port
- The port number for sending SNMP responses.addr
- The IP address to bind.
IllegalArgumentException
- If one of the specified
configuration files doesn't exist or is incorrect.Method Detail |
---|
public Long getSnmpUnknownSecurityModels()
snmpUnknownSecurityModels
as defined in
RFC 2572 SNMP-MPD-MIB.
getSnmpUnknownSecurityModels
in interface SnmpV3AdaptorServerMBean
public Long getSnmpInvalidMsgs()
snmpInvalidMsgs
as defined in RFC 2572
SNMP-MPD-MIB.
getSnmpInvalidMsgs
in interface SnmpV3AdaptorServerMBean
public Long getSnmpUnknownContexts()
snmpUnknownContexts
as defined in RFC 2573
SNMP-TARGET-MIB.
getSnmpUnknownContexts
in interface SnmpV3AdaptorServerMBean
public Long getSnmpUnknownPDUHandlers()
snmpUnknownPDUHandlers
as defined in RFC 2572
SNMP-MPD-MIB.
public SnmpEngine getEngine()
SnmpEngine
value.
public SnmpEngineId getEngineId()
SnmpEngineId
value.
getEngineId
in interface SnmpV3AdaptorServerMBean
public SnmpMibHandler addMib(SnmpMibAgent mib, String contextName) throws IllegalArgumentException
addMib
in interface SnmpAdaptorServerMBean
addMib
in interface SnmpV3AdaptorServerMBean
addMib
in interface SnmpMibHandler
addMib
in class SnmpAdaptorServer
mib
- The MIB to add.contextName
- The MIB context. If null or contextName.length == 0,
will be registered in the default context.
IllegalArgumentException
- If the parameter is null.public boolean enableCommunityStringAtContext()
enableCommunityStringAtContext
in interface SnmpV3AdaptorServerMBean
public boolean disableCommunityStringAtContext()
disableCommunityStringAtContext
in interface SnmpV3AdaptorServerMBean
public boolean isCommunityStringAtContextEnabled()
isCommunityStringAtContextEnabled
in interface SnmpV3AdaptorServerMBean
public boolean enableSnmpV1V2SetRequest()
public boolean disableSnmpV1V2SetRequest()
public boolean isSnmpV1V2SetRequestAuthorized()
public void addRequestForwarder(SnmpRequestForwarder forwarder, SnmpEngineId contextEngineId)
forwarder
- The forwarder to add.contextEngineId
- The context engine Id this forwarder forwards to.
IllegalArgumentException
- If one of the parameters is null.public boolean removeRequestForwarder(SnmpEngineId engineId)
engineId
- The context engine id.
IllegalArgumentException
- if engineId is null.public SnmpMibHandler addMib(SnmpMibAgent mib, String contextName, SnmpOid[] oids) throws IllegalArgumentException
addMib
in interface SnmpV3AdaptorServerMBean
addMib
in interface SnmpMibHandler
addMib
in class SnmpAdaptorServer
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.public boolean removeMib(SnmpMibAgent mib, String contextName)
removeMib
in interface SnmpV3AdaptorServerMBean
removeMib
in interface SnmpMibHandler
removeMib
in class SnmpAdaptorServer
mib
- The MIB to be removed.contextName
- The MIB context.
If null or contextName.length == 0, will be removed from
the default context.
true
if the specified mib
was a MIB included in the SNMP MIB handler,
false
otherwise.public boolean removeMib(SnmpMibAgent mib, String contextName, SnmpOid[] oids)
removeMib
in interface SnmpMibHandler
removeMib
in class SnmpAdaptorServer
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.oids
- The oid the MIB was previously registered for.
If null or oids.length == 0, this is equivalent to calling
removeMib(SnmpMibAgent mib, String contextName)
true
if the specified mib
was a MIB included in the SNMP MIB handler,
false
otherwise.public void registerUsmMib(MBeanServer server, ObjectName obj) throws InstanceAlreadyExistsException, MBeanRegistrationException, NotCompliantMBeanException
MBeanServer
.
server
- The MBeanServer in which to register the mib.obj
- The object name to use. If no object name is provided,
the following concatenation is used:
SnmpEngineId.toString() + "/SNMP_USER_BASED_SM_MIB:name=Usm-MIB-RFC2574"
InstanceAlreadyExistsException
MBeanRegistrationException
NotCompliantMBeanException
public void registerUsmMib() throws IllegalAccessException
SnmpV3AdaptorServer
.
The MIB is registered under no scope.
IllegalAccessException
public int[] getSecurityModelIds()
getSecurityModelIds
in interface SnmpV3AdaptorServerMBean
public String[] getSecurityModelNames()
getSecurityModelNames
in interface SnmpV3AdaptorServerMBean
public int[] getMsgProcessingModelIds()
getMsgProcessingModelIds
in interface SnmpV3AdaptorServerMBean
public String[] getMsgProcessingModelNames()
getMsgProcessingModelNames
in interface SnmpV3AdaptorServerMBean
public int[] getAccessControlModelIds()
getAccessControlModelIds
in interface SnmpV3AdaptorServerMBean
public String[] getAccessControlModelNames()
getAccessControlModelNames
in interface SnmpV3AdaptorServerMBean
public String[] getUsmSecurityAlgorithms()
getUsmSecurityAlgorithms
in interface SnmpV3AdaptorServerMBean
public String[] getMibs()
getMibs
in interface SnmpAdaptorServerMBean
getMibs
in class SnmpAdaptorServer
public String[] getMibs(String context)
getMibs
in interface SnmpV3AdaptorServerMBean
context
- The context name.
public String[] getContexts()
getContexts
in interface SnmpV3AdaptorServerMBean
public void snmpV3Trap(SnmpUsmPeer peer, SnmpScopedPduRequest pdu) throws IOException, SnmpStatusException
peer
- The peer to which the trap will be sent.pdu
- The trap pdu.
IOException
- An I/O error occurred while sending the trap.
SnmpStatusException
- If the trap exceeds the limit defined
by bufferSize
or if a security error occurred
when sending the trap.
See SnmpDefinitions
for error
status.public void snmpV3Trap(InetAddress addr, SnmpScopedPduRequest pdu) throws IOException, SnmpStatusException
addr
- The trap address destination.pdu
- The trap pdu.
IOException
- An I/O error occurred while sending the trap.
SnmpStatusException
- If the trap exceeds the limit defined
by bufferSize
or if a security error occurred when
sending the trap. Have a look to
SnmpDefinitions
for error status.public void snmpV3Trap(SnmpScopedPduRequest pdu) throws IOException, SnmpStatusException
InetAddressAcl
.
pdu
- The trap pdu.
IOException
- An I/O error occurred while sending the trap.
SnmpStatusException
- If the trap exceeds the limit defined
by bufferSize
or if a security error occurred when
sending the trap. Have a look to
SnmpDefinitions
for error status.public void snmpV3UsmTrap(String principal, int securityLevel, String contextName, SnmpOid trapOid, SnmpVarBindList list) throws IOException, SnmpStatusException
InetAddressAcl
using Usm as security model. Traps are time stamped with the current time.
snmpV3UsmTrap
in interface SnmpV3AdaptorServerMBean
principal
- The user name to use.securityLevel
- The V3 security level.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
or if a security error occurred when
sending the trap. Have a look to
SnmpDefinitions
for error status.public void snmpV3UsmTrap(InetAddress addr, String principal, int securityLevel, String contextName, SnmpOid trapOid, SnmpVarBindList list) throws IOException, SnmpStatusException
snmpV3UsmTrap
in interface SnmpV3AdaptorServerMBean
addr
- The trap address destination.principal
- The user name to use.securityLevel
- The V3 security level.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
or if a security error occurred when
sending the trap. Have a look to
SnmpDefinitions
for error status.public void snmpV3UsmTrap(InetAddress addr, String principal, int securityLevel, String contextName, SnmpOid trapOid, SnmpVarBindList list, SnmpTimeticks time) throws IOException, SnmpStatusException
snmpV3UsmTrap
in interface SnmpV3AdaptorServerMBean
addr
- The trap address destination.principal
- The user name to use.securityLevel
- The V3 security level.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
or if a security error occurred when
sending the trap. Have a look to
SnmpDefinitions
for error status.public 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.
snmpV3UsmTrap
in interface SnmpV3AdaptorServerMBean
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.public 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 valuesnmpTrapOid.0
with the value specified by
trapOid
all the (oid,values)
from the specified
varBindList
snmpV3UsmInformRequest
in interface SnmpV3AdaptorServerMBean
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 or if the provided peer is
not usable with informs (no engine id discovery done).
IOException
- An I/O error occurred while sending the inform
request.
SnmpStatusException
- If the inform request exceeds the
limit defined by bufferSize
.public SnmpV3InformRequest snmpV3InformRequest(InetAddress addr, SnmpInformHandler cb, SnmpScopedPduRequest pdu, SnmpOid trapOid, SnmpVarBindList varBindList) throws IllegalStateException, IOException, SnmpStatusException
InetAddress
destination.
The inform is sent in a SNMP V3 message.
sysUpTime.0
with its current valuesnmpTrapOid.0
with the value specified by
trapOid
all the (oid,values)
from the specified
varBindList
addr
- The InetAddress
destination for this
inform request.pdu
- The scoped Pdu used when sending the inform.cb
- The callback that is invoked when a request is complete.trapOid
- The OID identifying the trap.varBindList
- 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
.protected ObjectName createUsmMibObjectName(SnmpEngine engine) throws MalformedObjectNameException
engine
- The SNMP engine.
MalformedObjectNameException
|
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 |