class SNMP::Trap

Overview

https://tools.ietf.org/search/rfc3416#section-4.2.6

Direct Known Subclasses

Defined in:

snmp/trap.cr

Constructors

Instance Method Summary

Instance methods inherited from class SNMP::PDU

error_index : ErrorIndex error_index, error_index=(error_index : ErrorIndex) error_index=, error_status : ErrorStatus error_status, error_status=(error_status : ErrorStatus) error_status=, new_request_id new_request_id, oid oid, request_id : Int32 request_id, request_id=(request_id : Int32) request_id=, to_ber(tag_number) to_ber, value value, varbinds : Array(VarBind) varbinds, varbinds=(varbinds : Array(VarBind)) varbinds=

Constructor methods inherited from class SNMP::PDU

new(ber : ASN1::BER)
new(request_id : Int32 = rand(2147483647), varbinds : Array(VarBind) = [] of VarBind, error_status : SNMP::ErrorStatus = ErrorStatus::NoError, error_index : SNMP::ErrorIndex = ErrorIndex::NoError)
new(request_id : Int32 = rand(2147483647), varbind : VarBind | Nil = nil, error_status : SNMP::ErrorStatus = ErrorStatus::NoError, error_index : SNMP::ErrorIndex = ErrorIndex::NoError)
new

Constructor Detail

def self.new(ber : ASN1::BER) #

[View source]
def self.new(oid : String, time_ticks : UInt32 = 0, **args) #

[View source]

Instance Method Detail

def oid : String #
Description copied from class SNMP::PDU

shortcut for .varbinds[0].oid


[View source]
def oid=(oid : String) #

[View source]
def time_ticks : UInt32 #

[View source]
def time_ticks=(time_ticks : UInt32) #

[View source]