Ce petit script permet de suivre l'évolution de l'activité PowerHA à partir du fichier journal.
#!/bin/ksh
if test -f /var/hacmp/log/hacmp.out
then
tail -f /var/hacmp/log/hacmp.out
else
echo "File /var/hacmp/log/hacmp.out doesn't exist"
if test -f /tmp/hacmp.out
then
echo "Using /tmp/hacmp.out"
sleep 3
tail -f /tmp/hacmp.out
else
echo "Files /tmp/hacmp.out /var/hacmp/log/hacmp.out do not exist!"
echo "Exiting ..."
fi
fi