COUNT=3
cat /work/tools/staging/conf/ping_check_list.conf | while read line
do
arr=(${line//;/ })
for x in ${arr[@]}; do
timing=`date +%Y/%m/%d/%H:%M:%S`
ping -c $COUNT $x > /dev/null
if [ $? -eq 0 ];then
echo -e "\033[32m $x Ping is OK.\033[0m"
else
echo -e "\033[31m $x Ping is Failed.\033[0m"
fi
done
done