Sha256: 940f470c47a52c1b4a76ab2cb8bf4307524a05dc793d0f5a633111d956c4d800
Contents?: true
Size: 491 Bytes
Versions: 1
Compression:
Stored size: 491 Bytes
Contents
require 'snmpjr/wrappers/smi' require 'snmpjr/wrappers/snmp4j' class Snmpjr class PduV2C module Constants GET = -96 end def initialize @pdu = Snmpjr::Wrappers::PDU.new end def create oids oids.map {|oid| oid = Snmpjr::Wrappers::SMI::OID.new oid variable_binding = Snmpjr::Wrappers::SMI::VariableBinding.new oid @pdu.add variable_binding } @pdu.type = Snmpjr::PduV2C::Constants::GET @pdu end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
snmpjr-0.3.0-java | lib/snmpjr/pdu_v2c.rb |