Class: SNMP::SNMPv1_Trap

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

The PDU class for traps in SNMPv1.

### Methods

decode each_varbind encode generic_trap generic_trap= new

### 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

decode(pdu_data)
new(enterprise, agent_addr, generic_trap, specific_trap, timestamp, varbind_list)

### Public Instance methods

each_varbind(&block)
encode()
generic_trap()
generic_trap=(trap)

[Validate]