Sha256: 83e5d029ceeae195dbba77570cc49919c179b1c70268df558204f935994aefa2

Contents?: true

Size: 200 Bytes

Versions: 17

Compression:

Stored size: 200 Bytes

Contents

require 'snmp'

host = ARGV[0] || 'localhost'

manager = SNMP::Manager.new(:Host => host, :Port => 161)
response = manager.get(["sysDescr.0", "sysName.0"])
response.each_varbind { |vb| puts vb.to_s }

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
snmp-1.3.2 examples/get.rb
snmp-1.3.1 examples/get.rb
snmp-1.3.0 examples/get.rb
snmp-1.2.0 examples/get.rb
snmp-1.1.1 examples/get.rb
snmp-1.1.0 examples/get.rb
snmp-1.0.4 examples/get.rb
snmp-1.0.3 examples/get.rb
snmp-0.5.0 examples/get.rb
snmp-1.0.1 examples/get.rb
snmp-0.4.1 examples/get.rb
snmp-0.4.0 examples/get.rb
snmp-1.0.0 examples/get.rb
snmp-1.0.2 examples/get.rb
snmp-0.6.0 examples/get.rb
snmp-0.6.1 examples/get.rb
snmp-0.5.1 examples/get.rb