Setting up HP SIM 5.x on an HP-UX Serviceguard Cluster (448492-002, January 2009)

ps -ef |grep -v grep | grep -q mxdtf
if [[ $? -ne 0 ]]
then
# mxdtf is not running
echo $(date) mxdtf is not running, exiting monitor
exit 3
fi
sleep $MONITOR_INTERVAL
done
;;
*)
# display usage and exit
echo " Usage: hahpsim.sh < start | stop | monitor >"
exit 1
;;
esac