Re: Find out the mac address
- From: "Aaron Turner" <synfinatic@xxxxxxxxx>
- Date: Thu, 1 Nov 2007 01:44:04 +0900
On Oct 31, 2007 3:02 AM, K. R. <mcse@xxxxxxxxxx> 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 <IP>' 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
.
- References:
- Find out the mac address
- From: K. R.
- Find out the mac address
- Prev by Date: Dinner / drink recommendations for Charlotte?
- Next by Date: Re: Dinner / drink recommendations for Charlotte?
- Previous by thread: Re: Find out the mac address
- Next by thread: Can we define data types explicitly?
- Index(es):
Relevant Pages
|