echo "Pinging $TESTSERVER..."
for i in $(seq 1 60) ; do
sleep 10
- echo "."
+ echo -n "$(date +%H:%M:%S): "
if $(ping -c 1 $TESTSERVER >/dev/null) ; then
- echo "$TESTSERVER pings again, so we assume it's booting now."
+ echo
+ echo "$(date +%H:%M:%S): ICMP echo reply from $TESTSERVER, so let's assume it's booting now."
break
fi
+ echo "no ICMP echo reply received."
done
if ! $(ping -c 1 $TESTSERVER >/dev/null) ; then
figlet "Failure:"
echo -n "ping $TESTSERVER ok..."
# check ssh FIXME
if $(nc -z $TESTSERVER 22 ) ; then
- echo "ok, sshd is running."
+ echo "ok, sshd is running at $(date +%H:%M:%S)"
break
else
- echo "but sshd is not running."
+ echo "but sshd is not running at date $(+%H:%M:%S)"
fi
fi
done