Sha256: 02cb1baa68034908efa236dddc05000803057e7c69d3f16168c42cd7446f0521
Contents?: true
Size: 457 Bytes
Versions: 1
Compression:
Stored size: 457 Bytes
Contents
require 'snmpjr/wrappers/smi' class Snmpjr class Target def create options = {} target = Snmpjr::Wrappers::CommunityTarget.new target.community = Snmpjr::Wrappers::SMI::OctetString.new(options.fetch(:community)) target.address = Snmpjr::Wrappers::SMI::GenericAddress.parse("udp:#{options.fetch(:host)}/#{options.fetch(:port)}") target.version = 1 target.timeout = options.fetch(:timeout) target end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
snmpjr-0.1.5-java | lib/snmpjr/target.rb |