Re: How to check Websphere Application Server status UP/DOWN in AIX



You need to determine the process you are checking

ps -ef > /tmp/ps.pre

stop websphere

ps -ef > /tmp/ps.post

diff /tmp/ps.pre /tmp/ps.post

from here, run a check for for each process

for e in proc1 proc2 proc2
do
ps -ef | grep $e
if [ $? -ne 0 ]
then
<command to restart the service>
else
<echo $e found , all OK>
fi

very harsh and not something i would use to get a definitive answer of
whether a service is available

I would look at the snmp mib and use snmpget for the specific oid's
that identify whether the application server is up and running

hope this gives you some sort of start

Steve

.