Methods Summary |
---|
public com.sun.jmx.snmp.agent.SnmpMibHandler | addMib(com.sun.jmx.snmp.agent.SnmpMibAgent mib)Adds a new MIB in the SNMP MIB handler.
This method is called automatically by {@link com.sun.jmx.snmp.agent.SnmpMibAgent#setSnmpAdaptor(SnmpMibHandler)}
and {@link com.sun.jmx.snmp.agent.SnmpMibAgent#setSnmpAdaptorName(ObjectName)}
and should not be called directly.
|
public com.sun.jmx.snmp.agent.SnmpMibHandler | addMib(com.sun.jmx.snmp.agent.SnmpMibAgent mib, com.sun.jmx.snmp.SnmpOid[] oids)Adds a new MIB in the SNMP MIB handler.
|
public int | getActiveClientCount()Gets the number of managers currently being processed by this
SNMP protocol adaptor.
|
public boolean | getAuthRespEnabled()Returns true if this SNMP protocol adaptor sends a response in case
of authentication failure.
When this feature is enabled, the SNMP protocol adaptor sends a response with noSuchName
or readOnly when the authentication failed. If the flag is disabled, the
SNMP protocol adaptor trashes the PDU silently.
The default behavior is to send responses.
|
public boolean | getAuthTrapEnabled()Returns true if authentication traps are enabled.
When this feature is enabled, the SNMP protocol adaptor sends
an authenticationFailure trap each time an authentication fails.
The default behaviour is to send authentication traps.
|
public java.lang.Integer | getBufferSize()Returns the buffer size of this SNMP protocol adaptor.
By default, buffer size 1024 is used.
|
public java.lang.String | getEnterpriseOid()Returns the enterprise OID. It is used by {@link #snmpV1Trap snmpV1Trap} to fill
the 'enterprise' field of the trap request.
|
public com.sun.jmx.snmp.InetAddressAcl | getInetAddressAcl()Returns the Ip address based ACL used by this SNMP protocol adaptor.
|
public int | getInformPort()Returns the port used by this SNMP protocol adaptor for sending inform requests.
By default, port 162 is used.
|
public int | getMaxActiveClientCount()Gets the maximum number of managers that this SNMP protocol adaptor can
process concurrently.
|
public int | getMaxTries()Gets the number of times to try sending an inform request before giving up.
|
public java.lang.String[] | getMibs()Returns the names of the MIBs available in this SNMP protocol adaptor.
|
public com.sun.jmx.snmp.SnmpPduFactory | getPduFactory()Returns the message factory of this SNMP protocol adaptor.
|
public java.lang.String | getProtocol()Returns the protocol of this SNMP protocol adaptor.
|
public int | getServedClientCount()Gets the number of managers that have been processed by this SNMP protocol adaptor
since its creation.
|
public java.lang.Long | getSnmpInASNParseErrs()Returns the snmpInASNParseErrs value defined in MIB-II.
|
public java.lang.Long | getSnmpInBadCommunityNames()Returns the snmpInBadCommunityNames value defined in MIB-II.
|
public java.lang.Long | getSnmpInBadCommunityUses()Returns the snmpInBadCommunityUses value defined in MIB-II.
|
public java.lang.Long | getSnmpInBadVersions()Returns the snmpInBadVersions value defined in MIB-II.
|
public java.lang.Long | getSnmpInGetNexts()Returns the snmpInGetNexts value defined in MIB-II.
|
public java.lang.Long | getSnmpInGetRequests()Returns the snmpInGetRequests value defined in MIB-II.
|
public java.lang.Long | getSnmpInPkts()Returns the snmpInPkts value defined in MIB-II.
|
public java.lang.Long | getSnmpInSetRequests()Returns the snmpInSetRequests value defined in MIB-II.
|
public java.lang.Long | getSnmpInTotalReqVars()Returns the snmpInTotalReqVars value defined in MIB-II.
|
public java.lang.Long | getSnmpInTotalSetVars()Returns the snmpInTotalSetVars value defined in MIB-II.
|
public java.lang.Long | getSnmpOutBadValues()Returns the snmpOutBadValues value defined in MIB-II.
|
public java.lang.Long | getSnmpOutGenErrs()Returns the snmpOutGenErrs value defined in MIB-II.
|
public java.lang.Long | getSnmpOutGetResponses()Returns the snmpOutGetResponses value defined in MIB-II.
|
public java.lang.Long | getSnmpOutNoSuchNames()Returns the snmpOutNoSuchNames value defined in MIB-II.
|
public java.lang.Long | getSnmpOutPkts()Returns the snmpOutPkts value defined in MIB-II.
|
public java.lang.Long | getSnmpOutTooBigs()Returns the snmpOutTooBigs value defined in MIB-II.
|
public java.lang.Long | getSnmpOutTraps()Returns the snmpOutTraps value defined in MIB-II.
|
public java.lang.Long | getSnmpProxyDrops()Returns the snmpProxyDrops value defined in rfc 1907 NMPv2-MIB .
|
public java.lang.Long | getSnmpSilentDrops()Returns the snmpSilentDrops value defined in rfc 1907 NMPv2-MIB .
|
public int | getTimeout()Gets the timeout to wait for an inform response from the manager.
|
public java.lang.Integer | getTrapPort()Returns the port used by this SNMP protocol adaptor for sending traps.
By default, port 162 is used.
|
public com.sun.jmx.snmp.agent.SnmpUserDataFactory | getUserDataFactory()Get the user-data factory associated with this SNMP protocol adaptor.
|
public boolean | removeMib(com.sun.jmx.snmp.agent.SnmpMibAgent mib)Removes the specified MIB from the SNMP protocol adaptor.
This method is called automatically by {@link com.sun.jmx.snmp.agent.SnmpMibAgent#setSnmpAdaptor(SnmpMibHandler)}
and {@link com.sun.jmx.snmp.agent.SnmpMibAgent#setSnmpAdaptorName(ObjectName)}
and should not be called directly.
|
public void | setAuthRespEnabled(boolean enabled)Sets the flag indicating if responses need to be sent in case of authentication failure.
|
public void | setAuthTrapEnabled(boolean enabled)Sets the flag indicating if traps need to be sent in case of authentication failure.
|
public void | setBufferSize(java.lang.Integer s)Sets the buffer size of this SNMP protocol adaptor.
|
public void | setEnterpriseOid(java.lang.String oid)Sets the enterprise OID.
|
public void | setInformPort(int port)Sets the port used by this SNMP protocol adaptor for sending inform requests.
|
public void | setMaxActiveClientCount(int c)Sets the maximum number of managers this SNMP protocol adaptor can
process concurrently.
|
public void | setMaxTries(int newMaxTries)Changes the maximun number of times to try sending an inform request before giving up.
|
public void | setPduFactory(com.sun.jmx.snmp.SnmpPduFactory factory)Sets the message factory of this SNMP protocol adaptor.
|
public void | setTimeout(int newTimeout)Changes the timeout to wait for an inform response from the manager.
|
public void | setTrapPort(java.lang.Integer port)Sets the port used by this SNMP protocol adaptor for sending traps.
|
public void | setUserDataFactory(com.sun.jmx.snmp.agent.SnmpUserDataFactory factory)Set the user-data factory of this SNMP protocol adaptor.
|
public java.util.Vector | snmpInformRequest(SnmpInformHandler cb, com.sun.jmx.snmp.SnmpOid trapOid, com.sun.jmx.snmp.SnmpVarBindList varBindList)Sends an inform using SNMP V2 inform request format.
The inform request is sent to each destination defined in the ACL file (if available).
If no ACL file or no destinations are available, the inform request is sent to the local host.
The variable list included in the outgoing inform request is composed of the following items:
sysUpTime.0 with its current value
snmpTrapOid.0 with the value specified by trapOid
all the (oid,values) from the specified varBindList
To send an inform request, the SNMP adaptor server must be active.
|
public SnmpInformRequest | snmpInformRequest(java.net.InetAddress address, java.lang.String cs, SnmpInformHandler cb, com.sun.jmx.snmp.SnmpOid trapOid, com.sun.jmx.snmp.SnmpVarBindList varBindList)Sends an inform using SNMP V2 inform request format.
The inform is sent to the specified InetAddress destination
using the specified community string.
The variable list included in the outgoing inform request is composed of the following items:
sysUpTime.0 with its current value
snmpTrapOid.0 with the value specified by trapOid
all the (oid,values) from the specified varBindList
To send an inform request, the SNMP adaptor server must be active.
|
public SnmpInformRequest | snmpInformRequest(com.sun.jmx.snmp.SnmpPeer peer, SnmpInformHandler cb, com.sun.jmx.snmp.SnmpOid trapOid, com.sun.jmx.snmp.SnmpVarBindList varBindList)Sends an inform using SNMP V2 inform request format.
The inform is sent to the specified SnmpPeer destination.
The community string used is the one located in the SnmpPeer parameters (SnmpParameters.getInformCommunity() ).
The variable list included in the outgoing inform is composed of the following items:
sysUpTime.0 with its current value
snmpTrapOid.0 with the value specified by trapOid
all the (oid,values) from the specified varBindList
To send an inform request, the SNMP adaptor server must be active.
|
public void | snmpPduTrap(java.net.InetAddress address, com.sun.jmx.snmp.SnmpPduPacket pdu)Send the specified trap PDU to the passed InetAddress .
|
public void | snmpPduTrap(com.sun.jmx.snmp.SnmpPeer peer, com.sun.jmx.snmp.SnmpPduPacket pdu)Send the specified trap PDU to the passed SnmpPeer .
|
public void | snmpV1Trap(int generic, int specific, com.sun.jmx.snmp.SnmpVarBindList varBindList)Sends a trap using SNMP V1 trap format.
The trap is sent to each destination defined in the ACL file (if available).
If no ACL file or no destinations are available, the trap is sent to the local host.
|
public void | snmpV1Trap(java.net.InetAddress address, java.lang.String cs, int generic, int specific, com.sun.jmx.snmp.SnmpVarBindList varBindList)Sends a trap using SNMP V1 trap format.
The trap is sent to the specified InetAddress destination
using the specified community string (and the ACL file is not used).
|
public void | snmpV1Trap(com.sun.jmx.snmp.SnmpPeer peer, com.sun.jmx.snmp.SnmpIpAddress agentAddr, com.sun.jmx.snmp.SnmpOid enterpOid, int generic, int specific, com.sun.jmx.snmp.SnmpVarBindList varBindList, com.sun.jmx.snmp.SnmpTimeticks time)Sends a trap using SNMP V1 trap format.
The trap is sent to the specified SnmpPeer destination.
The community string used is the one located in the SnmpPeer parameters (SnmpParameters.getRdCommunity() ).
|
public void | snmpV2Trap(com.sun.jmx.snmp.SnmpPeer peer, com.sun.jmx.snmp.SnmpOid trapOid, com.sun.jmx.snmp.SnmpVarBindList varBindList, com.sun.jmx.snmp.SnmpTimeticks time)Sends a trap using SNMP V2 trap format.
The trap is sent to the specified SnmpPeer destination.
The community string used is the one located in the SnmpPeer parameters (SnmpParameters.getRdCommunity() ).
The variable list included in the outgoing trap is composed of the following items:
sysUpTime.0 with the value specified by time
snmpTrapOid.0 with the value specified by trapOid
all the (oid,values) from the specified varBindList
|
public void | snmpV2Trap(com.sun.jmx.snmp.SnmpOid trapOid, com.sun.jmx.snmp.SnmpVarBindList varBindList)Sends a trap using SNMP V2 trap format.
The trap is sent to each destination defined in the ACL file (if available).
If no ACL file or no destinations are available, the trap is sent to the local host.
The variable list included in the outgoing trap is composed of the following items:
sysUpTime.0 with its current value
snmpTrapOid.0 with the value specified by trapOid
all the (oid,values) from the specified varBindList
|
public void | snmpV2Trap(java.net.InetAddress address, java.lang.String cs, com.sun.jmx.snmp.SnmpOid trapOid, com.sun.jmx.snmp.SnmpVarBindList varBindList)Sends a trap using SNMP V2 trap format.
The trap is sent to the specified InetAddress destination
using the specified community string (and the ACL file is not used).
The variable list included in the outgoing trap is composed of the following items:
sysUpTime.0 with its current value
snmpTrapOid.0 with the value specified by trapOid
all the (oid,values) from the specified varBindList
|