#!/bin/bash
for i in `cat /tmp/server`
do
ping -q -c 1 $i > /tmp/null
if [ $? -eq 0 ]
then
echo " $i server is up & running fine"
else
echo " $i server is down -- NEED ADMIN HELP"
fi
done
for i in `cat /tmp/server`
do
ping -q -c 1 $i > /tmp/null
if [ $? -eq 0 ]
then
echo " $i server is up & running fine"
else
echo " $i server is down -- NEED ADMIN HELP"
fi
done
No comments:
Post a Comment