class SNMP::Session

Defined in:

snmp/session.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(community : String = "public") #

[View source]

Instance Method Detail

def community : String #

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

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

[View source]
def get(oid, request_id = rand(2147483647)) #

[View source]
def get_next(oid, request_id = rand(2147483647)) #

[View source]
def must_revalidate? #

Maintain compatibility with V3 session


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

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

[View source]
def reboot #

[View source]
def set(oid, value, request_id = rand(2147483647)) #

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


[View source]
def update_time #

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

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

[View source]