Class TrapPduv2

Direct Known Subclasses:
OneTrapPduv2, PassiveTrapPduv2

public class TrapPduv2 extends Pdu
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 Details

  • Method Details

    • toString

      public String toString()
      Returns the string representation of this object.
      Overrides:
      toString in class Pdu
      Returns:
      The string of the PDU