This content has been marked as final. Show 5 replies
Checking the logs is fine. But I want to know if the check can be done automatically.
Going through the logs is one way. I want to know if there is any other way to do this check automatically.
Also, this is a generic question. I mean, this happens periodically with my APS. So just want to write a script to check if this happens without any manual intervention.
First the issue should be fixed.
Apart from that as you want to implemment some script to check the aps services, (mine is Solaris box too :) )
/usr/ucb/ps -auwwx | grep -v grep | egrep -c aps
If the aps is up then it return 1 else 0. Use this commnad in script and automate that to run for say every five mins or so and mail it to the admin if service is down.
Edited by: vikasnaidu on Oct 19, 2011 4:56 PM