sigar/bindings/ruby/examples/arp.rb
2010-01-18 19:09:12 -08:00

9 lines
197 B
Ruby

require 'sigar'
Sigar.new.arp_list.each do |arp|
host = "?" #XXX
puts host + " " +
"(" + arp.address + ")" + " at " + arp.hwaddr + " " +
"[" + arp.type + "]" + " on " + arp.ifname
end