I wrote this one for the scheduler but you can modify the grep for the server process...
#!/bin/ksh #check to make sure TSM scheduler running cd /usr/local/bin SCHED=$(ps -aef | grep -v grep | grep -v tsmsched.scr | grep sched) echo "${SCHED}" | while read -r SCHEDULER_RUNNING do case "${SCHEDULER_RUNNING}" in "") echo "TSM Scheduler not running at `date`" >> /tmp/tsmscheduler.log echo "The TSM Scheduler was restarted at `date`" >> /tmp/tsmscheduler.log telinit a echo "TSM Scheduler was restarted at `date`" | mail -s "TSM Scheduler quit!" "[EMAIL PROTECTED]" "[EMAIL PROTECTED] m" "[EMAIL PROTECTED]" ;; *) ;; esac done George Lesho System/Storage Admin AFC Enterprises Marc Levitan <marc.levitan@ To: [EMAIL PROTECTED] PFPC.COM> cc: (bcc: George Lesho/Partners/AFC) Sent by: Subject: script to see if TSM Server is down "ADSM: Dist Stor Manager" <[EMAIL PROTECTED] IST.EDU> 03/15/02 10:02 AM Please respond to "ADSM: Dist Stor Manager" Hi All - Does anyone have a script that will send out an email alert if the TSM server goes down. I am running AIX 4.3.0 TSM 3.7.4 Thanks! Marc Levitan Storage Manager PFPC Global Fund Services