|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.outbackinc.services.protocol.snmp.SnmpTrapEvent
The SnmpTrapEvent contains all the information from a received trap PDU. The information in the PDU is decoded and available from the trap event through accessor functions.
NOTE: As of jSNMP v3.0, traps are based upon the SNMPV2 trap specification ( RFC 1905 - Protocol Operations for Version 2 of the Simple Network Management Protocol). That is, all traps are specified by an enterprise OID and trap code. The generic SNMPV1 traps, coldStart, warmStart, linkDown, linkUp, authenticationFailure, and egpNeighborLoss, are converted to traps with an enterprise OID of 1.3.6.1.6.3.1.1.5 and corresponding trap codes of 1, 2, 3, 4, 5, and 6 (see RFC 2576 - Coexistence between Version 1, Version 2, and Version 3 of the Internet-standard Network Management Framework). The SNMPv1 deprecated getGenericTrapType and getSpecificTrapType methods have been superceeded by the getTrapType method, but will work as before.
SnmpAuthoritativeSession
,
SnmpConstants
, Serialized FormConstructor Summary | |
SnmpTrapEvent(java.net.InetAddress cAgentInetAddress,
int iPort,
java.lang.String szEnterpriseOID,
java.lang.Integer igrGenericType,
java.lang.Integer igrSpecificType,
java.lang.Integer igrTimeStamp,
java.util.Vector cVarBindsVector)
Deprecated. as of jSNMP v3.0 |
Method Summary | |
java.net.InetAddress |
getAgentAddress()
Deprecated. as of jSNMP v3.0 by getAgentIPAddress() |
java.lang.String |
getAgentIPAddress()
Gets the IP Address of the agent which generated this trap. |
java.lang.String |
getEnterpriseOID()
Gets the enterprise OID |
java.lang.Integer |
getGenericTrapType()
Deprecated. as of jSNMP v3.0 getTrapType() and getEnterpriseOID() |
int |
getNumberOfVarBinds()
Obtains the number of VarBinds in this trap |
int |
getPort()
Gets the port on which this trap was received |
java.lang.String |
getSendersIPAddress()
Gets the IP Address of the sender of this trap's datagram packet. |
SnmpAuthoritativeSession |
getSession()
Gets the session of the agent which generated this trap. |
java.lang.Integer |
getSpecificTrapType()
Deprecated. as of jSNMP v3.0 getTrapType() and getEnterpriseOID() |
java.lang.Long |
getTimeStamp()
Gets the time elapsed between the last (re)initialization of the network entity and the generation of the trap. |
java.lang.Integer |
getTrapType()
Gets the type of trap. |
byte |
getType()
Gets the trap/inform type (SnmpConstants.SNMP_TRAP, SnmpConstants.SNMP_TRAPV2, or SnmpConstants.SNMP_INFORM) |
SnmpVarBind |
getVarBind(int index)
Gets the OIDs from each VarBind |
boolean |
isGeneric()
Determines if the Trap is generic. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SnmpTrapEvent(java.net.InetAddress cAgentInetAddress, int iPort, java.lang.String szEnterpriseOID, java.lang.Integer igrGenericType, java.lang.Integer igrSpecificType, java.lang.Integer igrTimeStamp, java.util.Vector cVarBindsVector)
cAgentInetAddress
- Address of the host running the agent.iPort
- Port the trap was received onszEnterpriseOID
- OID from trapigrGenericType
- The generic trap type. Indicates event that triggered trap.igrSpecificType
- An enterprise-specific trap typeigrTimeStamp
- When the trap occured.cVarBindsVector
- VarBinds related to the trap.Method Detail |
public byte getType()
SnmpConstants
public int getPort()
public java.lang.String getEnterpriseOID()
public java.net.InetAddress getAgentAddress()
public java.lang.String getAgentIPAddress()
public java.lang.String getSendersIPAddress()
public SnmpAuthoritativeSession getSession()
public boolean isGeneric()
public java.lang.Integer getGenericTrapType()
public java.lang.Integer getSpecificTrapType()
public java.lang.Integer getTrapType()
"Generic" Traps
0 - coldStart
1 - warmStart
2 - linkDown
3 - linkUp
4 - authenticationFailure
5 - egpNeighborLoss
isGeneric()
public java.lang.Long getTimeStamp()
public int getNumberOfVarBinds()
public SnmpVarBind getVarBind(int index)
index
- 0-based index of the VarBind in the list
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Home Services Products Purchase Contact Us About Us Legal Ceramics
Copyright © 2003-2008 jSNMP Enterprises All rights reserved.