From: Aaron Turner Date: 2007-11-01T01:44:04+09:00 Subject: Re: Find out the mac address On Oct 31, 2007 3:02 AM, K. R. wrote: > Hi @all > > How can I find out the mac address from the default gateway with a ruby > script? > Does exist any methods to read it out? The script runs on a linux > distribution... If you know the IP address of the gateway, then parse the output of the 'arp -n ' command. It's reasonably portable and easy to parse. -- Aaron Turner http://synfin.net/ http://tcpreplay.synfin.net/ - Pcap editing & replay tools for Unix They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. -- Benjamin Franklin