(SIGAR-199) arp Ruby example

This commit is contained in:
Doug MacEachern committed 2010-01-18 19:09:12 -08:00
1 parent 6847888168
commit 9777e53988
1 file changed
+8
+8
View File
@@ -0,0 +1,8 @@
require 'sigar'
Sigar.new.arp_list.each do |arp|
host = "?" #XXX
puts host + " " +
"(" + arp.address + ")" + " at " + arp.hwaddr + " " +
"[" + arp.type + "]" + " on " + arp.ifname
end