ADSM-L

Re: script to see if TSM Server is down

2002-03-15 11:57:41
Subject: Re: script to see if TSM Server is down
From: Andy Carlson <andyc AT ANDYC.CARENET DOT ORG>
Date: Fri, 15 Mar 2002 10:52:29 -0600
Here is what I do (crude, but it works).  I do this from a box that TSM
is not running on, in case not only TSM crashes, but the whole box
crashes:

#!/usr/bin/ksh

ADMIN=userid
ADMINPASS=passwrd
ADSMPATH=/usr/bin

$ADSMPATH/dsmadmc -id=$ADMIN -password=$ADMINPASS q proc > /tmp/proc.out
temp=`grep -c AIX /tmp/proc.out`

if  [ "$temp" = "0" ]; then
        /usr/bin/mailx user@email < /usr/local/adsmdown
fi


Andy Carlson                             |\      _,,,---,,_
andyc AT andyc.carenet DOT org            ZZZzz /,`.-'`'    -.  ;-;;,_
BJC Health System                       |,4-  ) )-,_. ,\ (  `'-'
St. Louis, Missouri                    '---''(_/--'  `-'\_)
Cat Pics: http://andyc.dyndns.org/animal.html

On Fri, 15 Mar 2002, Marc Levitan wrote:

> 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
>