class SNMP::V3::Session

Defined in:

snmp/v3/session.cr

Constant Summary

TIMELINESS_THRESHOLD = 140_i64

Timeliness is part of SNMP V3 Security The topic is described very nice here https://www.snmpsharpnet.com/?page_id=28 https://www.ietf.org/rfc/rfc2574.txt 1.4.1 Timeliness The probe is outdated after 150 seconds which results in a PDU Error, therefore it should expire before that and be renewed The 150 Seconds is specified in https://www.ietf.org/rfc/rfc2574.txt 2.2.3

Constructors

Instance Method Summary

Constructor Detail

def self.new(security : V3::Security) #

[View source]
def self.new(username, auth_password = "", priv_password = "", engine_id : String = "", auth_protocol = Security::AuthProtocol::MD5, priv_protocol = Security::PrivacyProtocol::DES) #

[View source]

Instance Method Detail

def engine_boots : Int32 #

[View source]
def engine_id : String #

[View source]
def engine_time : Int32 #

[View source]
def engine_validation_probe : V3::Message #

[View source]
def get(oid, request_id = rand(2147483647), message_id = rand(2147483647), security_model = @security.security_model) #

[View source]
def get_next(oid, request_id = rand(2147483647), message_id = rand(2147483647), security_model = @security.security_model) #

[View source]
def must_revalidate? #

[View source]
def parse(message : ASN1::BER, security = @security) : V3::Message #

[View source]
def prepare(message : V3::Message) : ASN1::BER #

[View source]
def reboot #

Note:: only used when being queried


[View source]
def security : V3::Security #

[View source]
def session_created : Int64 #

[View source]
def set(oid, value, request_id = rand(2147483647), message_id = rand(2147483647), security_model = @security.security_model) #

TODO : requires better support for SNMP values such as Counter32, Counter64, Gauge32, OID, Timeticks etc


[View source]
def timeliness : Int64 #

[View source]
def update_time #

[View source]
def validate(message : ASN1::BER) #

[View source]
def validate(message : V3::Message) #

[View source]