[Asterisk-Users] finding mac addresses

Tzafrir Cohen tzafrir.cohen at xorcom.com
Mon Jun 19 11:36:09 MST 2006


On Mon, Jun 19, 2006 at 01:52:39PM -0400, Alexander Lopez wrote:
> If they are on the same network you can do the following:
> 
> arp -a | grep $IPADDRESS |awk '{print $4}'

grep before awk?

  arp -n | awk '/^IPADDRESS / {print $3}'


-- 
Tzafrir Cohen      sip:tzafrir at local.xorcom.com
icq#16849755       iax:tzafrir at local.xorcom.com
+972-50-7952406           
tzafrir.cohen at xorcom.com  http://www.xorcom.com



More information about the asterisk-users mailing list