Sha256: 1cc6c344c9935eab95d1de7e9a86b995b6260e265cd012f8090c401ea77e8242
Contents?: true
Size: 438 Bytes
Versions: 4
Compression:
Stored size: 438 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 = 5000 target end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
snmpjr-0.1.4-java | lib/snmpjr/target.rb |
snmpjr-0.1.2-java | lib/snmpjr/target.rb |
snmpjr-0.1.3-java | lib/snmpjr/target.rb |
snmpjr-0.1.0-java | lib/snmpjr/target.rb |