Public feed
#602810
#!/bin/ksh
rm -rf /tmp/cdxalias.sh
echo ' '
echo "CorDaptix instances at (`uname -n`)"
echo '----------------------------------------------------'
for i in `cut -f 3 -d ':' /etc/cistab`
do
DIR=$i
ENV=`basename $DIR`
if [ -f $DIR/etc/PWDFILE.txt ]
then
VERS=`cat $DIR/etc/PWDFILE.txt | cut -f 4 -d ';'`
fi
if [ ! -f $DIR/etc/CMVERSION.txt ]
then
LOCA='****'
else
LOCA=`cat $DIR/etc/CMVERSION.txt`
fi
ps -ef | grep 'startWebLogic' | grep ${ENV} | grep -v grep > /dev/null
RC=$?
if [ $RC -eq 0 ]
then
PORT=`grep WLPORT $DIR/etc/ENVIRON.INI | cut -f 2 -d '='`
echo "$ENV ($VERS) ($LOCA) is running on port($PORT)"
else
echo "$ENV ($VERS) ($LOCA) is inactive"
fi
echo "alias ${ENV}='`echo ${DIR}`/bin/splenviron.sh -e ${ENV}'" \
>> /tmp/cdxalias.sh
done
echo ' '
chmod 777 /tmp/cdxalias.sh
. /tmp/cdxalias.sh