Class SNMP::SNMPv1_Trap
In: lib/snmp/pdu.rb
Parent: Object

The PDU class for traps in SNMPv1.

Methods

Constants

GENERIC_TRAP_NAME = { 0 => :coldStart, 1 => :warmStart, 2 => :linkDown, 3 => :linkUp, 4 => :authenticationFailure, 5 => :egpNeighborLoss, 6 => :enterpriseSpecific   Name map for all of the generic traps defined in RFC 1157.
GENERIC_TRAP_CODE = GENERIC_TRAP_NAME.invert   Code map for all of the generic traps defined in RFC 1157.

External Aliases

varbind_list -> vb_list

Attributes

agent_addr  [RW] 
enterprise  [RW] 
source_ip  [RW]  Returns the source IP address for the trap, usually derived from the source IP address of the packet that delivered the trap.
specific_trap  [RW] 
timestamp  [RW] 
varbind_list  [RW] 

Public Class methods

Public Instance methods

[Validate]