class SNMP::V3::Session
- SNMP::V3::Session
- Reference
- Object
Defined in:
snmp/v3/session.crConstant 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
- .new(security : V3::Security)
- .new(username, auth_password = "", priv_password = "", engine_id : String = "", auth_protocol = Security::AuthProtocol::MD5, priv_protocol = Security::PrivacyProtocol::DES)
Instance Method Summary
- #engine_boots : Int32
- #engine_id : String
- #engine_time : Int32
- #engine_validation_probe : V3::Message
- #get(oid, request_id = rand(2147483647), message_id = rand(2147483647), security_model = @security.security_model)
- #get_next(oid, request_id = rand(2147483647), message_id = rand(2147483647), security_model = @security.security_model)
- #must_revalidate?
- #parse(message : ASN1::BER, security = @security) : V3::Message
- #prepare(message : V3::Message) : ASN1::BER
-
#reboot
Note:: only used when being queried
- #security : V3::Security
- #session_created : Int64
-
#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
- #timeliness : Int64
- #update_time
- #validate(message : ASN1::BER)
- #validate(message : V3::Message)
Constructor Detail
def self.new(username, auth_password = "", priv_password = "", engine_id : String = "", auth_protocol = Security::AuthProtocol::MD5, priv_protocol = Security::PrivacyProtocol::DES)
#
Instance Method Detail
def get(oid, request_id = rand(2147483647), message_id = rand(2147483647), security_model = @security.security_model)
#
def get_next(oid, request_id = rand(2147483647), message_id = rand(2147483647), security_model = @security.security_model)
#
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