#!/bin/sh
# Check which daemons are up
# use -o for Oracle
# Deleted: Use -m for MSF, -g for GNS, -v for Video server, -d for demo Gns
if [ $# -eq 1 ]
then
if [ "$1" != "-o" ]
then
echo ""
echo "Illegal option -- "$1
echo "Usage: psdm or psdm -o (include Oracle)"
echo " ==== ======="
echo ""
exit 1
fi
fi
PROCF=/tmp/procfil$$
ps -ef >$PROCF
echo " Active Globecom processes"
echo "================================================================================================"
grep Npdd $PROCF
grep Lsm $PROCF
grep http $PROCF
grep java $PROCF
grep startTrap $PROCF
grep startIsAli $PROCF
grep startWeb $PROCF
grep sdud $PROCF
grep sdad $PROCF
grep rmserver $PROCF
if [ "$1" = "-o" ] ; then ## Oracle Database
grep ora $PROCF
fi
exit 0
## The options below are deleted - all processes are shown above.
#if [ "$1" = "-m" ] ; then ## MSF
# grep startWeb $PROCF
# grep sdud $PROCF
#fi
#if [ "$1" = "-g" ] ; then ## GNS
# grep sdad $PROCF
#fi
#if [ "$1" = "-v" ] ; then ## Video
# grep rmserver $PROCF
#fi
#if [ "$1" = "-d" ] ; then ## Video
# grep sdud $PROCF
# grep sdad $PROCF
#fi