Sha256: 0489e36a79bfb4ff7a724fa0cdbca7596f2f4fe74e97f3fac90a971c19d55f8e
Contents?: true
Size: 453 Bytes
Versions: 5
Compression:
Stored size: 453 Bytes
Contents
require 'snmpjr/wrappers/smi' require 'snmpjr/wrappers/snmp4j' class Snmpjr class Pdu module Constants GET = -96 end def create oids pdu = Snmpjr::Wrappers::PDU.new 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::Pdu::Constants::GET pdu end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
snmpjr-0.2.2-java | lib/snmpjr/pdu.rb |
snmpjr-0.2.1-java | lib/snmpjr/pdu.rb |
snmpjr-0.2.0-java | lib/snmpjr/pdu.rb |
snmpjr-0.1.7-java | lib/snmpjr/pdu.rb |
snmpjr-0.1.5-java | lib/snmpjr/pdu.rb |