ADSM-L

Re: script to see if TSM Server is down

2002-03-15 11:57:50
Subject: Re: script to see if TSM Server is down
From: "Martin, Jon R." <jrmartin AT KNS DOT COM>
Date: Fri, 15 Mar 2002 11:53:26 -0500
If you have packaged IBM solution "NSM" it comes with a script named isitup.
The script does advanced checking to see if the server is up.

Otherwise, here is something simple for Unix ksh.

#########
dsmadmc -id=xxx -pass=xxx 'quit'

# Whether the server is up or down it will return you to the #prompt
# Now test the return code
if [ $? != 0 ]
then
        mail -s "TSM IS DOWN" you AT yourdomain DOT com
fi
#########

Note the id and password don't need to be the administrator id.  You could
use an id with not authority.  It isn't foolproof but it solves the problem.


Thanks,
Jon Martin