Sha256: fbdb908f608a8f88ac696d4bac1703b05453afd13637453c467e40f027ce3168
Contents?: true
Size: 301 Bytes
Versions: 7
Compression:
Stored size: 301 Bytes
Contents
require 'snmp' host = ARGV[0] || 'localhost' SNMP::Manager.open(:Host => "localhost") do |manager| manager.walk("ifTable") { |vb| puts vb } end SNMP::Manager.open(:Host => host) do |manager| manager.walk(["ifIndex", "ifDescr"]) do |ifIndex, ifDescr| puts "#{ifIndex} #{ifDescr}" end end
Version data entries
7 entries across 7 versions & 1 rubygems