Package uk.co.westhawk.snmp.stack
Class TrapPduv2
java.lang.Object
java.util.Observable
uk.co.westhawk.snmp.stack.Pdu
uk.co.westhawk.snmp.stack.TrapPduv2
- Direct Known Subclasses:
OneTrapPduv2
,PassiveTrapPduv2
This class represents the ASN SNMP v2c (and higher) Trap PDU object.
This PDU is not supported in SNMPv1.
See SNMPv2-PDU;
The variable bindings list contains the following pairs of object
names and values:
- sysUpTime.0 (SNMPv2-MIB)
- snmpTrapOID.0: part of the trap group in the SNMPv2 MIB (SNMPv2-MIB)
- If the OBJECTS clause is present in the corresponding invocation of the macro NOTIFICATION-TYPE, then each corresponding variable and its value are copied to the variable-bindings field.
- Additional variables may be included at the option of the agent.
For SNMPv3: The sender of a trap PDU acts as the authoritative engine.
- Version:
- $Revision: 3.11 $ $Date: 2006/03/23 14:54:10 $
- Author:
- Birgit Arkesteijn
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class uk.co.westhawk.snmp.stack.Pdu
addOid, addOid, addOid, addOid, addOid, getContext, getErrorIndex, getErrorStatus, getErrorStatusString, getMsgType, getReqId, getRequestVarbinds, getResponseVarbinds, getRetryIntervals, isTimedOut, notifyObservers, send, send, setRetryIntervals, waitForSelf
Methods inherited from class java.util.Observable
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers
-
Constructor Details
-
TrapPduv2
Constructor.- Parameters:
con
- The context (v2c or v3) of the PDU- Throws:
IllegalArgumentException
- if the context version is SNMPv1
-
-
Method Details