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:[EMAIL PROTECTED]
icq#16849755       iax:[EMAIL PROTECTED]
+972-50-7952406           
[EMAIL PROTECTED]  http://www.xorcom.com
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to