in reply to How to get Mac Address from IP
although you may have to adjust the regex to match the wording of your particular arp.my ($mac) = `arp -a $ip_address` =~ /at\s+(\S+)\s+/;
Abigail
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: How to get Mac Address from IP
by NetWallah (Canon) on Jan 13, 2004 at 18:02 UTC |