class

SNMP::PDU

Inherits Reference / Object

Constructors

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

Instance methods

error_index
Source
error_index=(error_index : Int32)
Source
error_status
Source
error_status=(error_status : ErrorStatus)
Source
max_repetitions
Source
max_repetitions=(max_repetitions : Int32)
Source
new_request_id
Source
non_repeaters

GetBulk (RFC 3416) overloads the error-status / error-index slots with non-repeaters / max-repetitions. These are only emitted for a GetBulk PDU.

Source
non_repeaters=(non_repeaters : Int32)

GetBulk (RFC 3416) overloads the error-status / error-index slots with non-repeaters / max-repetitions. These are only emitted for a GetBulk PDU.

Source
oid

shortcut for .varbinds[0].oid

Source
request_id
Source
request_id=(request_id : Int32)
Source
to_ber(tag_number)
Source
value

shortcut for .varbinds[0].value

Source
varbind

shortcut for .varbinds[0]

Source
varbinds
Source
varbinds=(varbinds : Array(VarBind))
Source