Ping a list of many hosts
December 21st, 2006
Powered by Max Banner Ads
cat config |grep title |awk -F- ‘{print $4}’|grep -o ‘[0-9][0-9]*.[0-9][0-9]*.[0-9][0-9]*.[0-9]*’ |xargs -n 1 -P 254 ping -c1 -w1
cat config |grep title |awk -F- ‘{print $4}’|grep -o ‘[0-9][0-9]*.[0-9][0-9]*.[0-9][0-9]*.[0-9]*’ |xargs -n 1 -P 254 ping -c1 -w1