Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 786 → Rev 787

/scripts/alcasar-watchdog.sh
110,7 → 110,7
do
noresponse_ip=`echo $noresponse | cut -d" " -f1`
noresponse_mac=`echo $noresponse | cut -d" " -f2`
arp_reply=`/usr/sbin/arping -b -I$INTIF -s$PRIVATE_IP -c1 -w4 $noresponse_ip|grep response|cut -d" " -f2`
arp_reply=`/usr/sbin/arping -b -I$INTIF -s$PRIVATE_IP -c1 -w4 $noresponse_ip|grep "Unicast reply"|wc -l`
if [[ $(expr $arp_reply) -eq 0 ]]
then
mac_allowed=`cat $macallowed_file |grep $noresponse_mac | wc -l`