ADSM-L

Re: Script to cancel a process

2006-10-24 13:41:15
Subject: Re: Script to cancel a process
From: Timothy Hughes <Timothy.Hughes AT OIT.STATE.NJ DOT US>
To: ADSM-L AT VM.MARIST DOT EDU
Date: Tue, 24 Oct 2006 13:40:35 -0400
William

Thanks,  Can a similar script be implemented into an automated  TSM
server script using
the admin schedule? I am still a newbie at scripting and have not gotten
into Aix scripts.

Tim


William Sherrill wrote:

Tim,

Here is a simple shell script that we run around 7:30 to make sure none of
those processes are running. It is a script that someone came up with on
their own and seems to work real well.

#!/bin/ksh
# Cancel selected proc
cat /u/adsmadm/adsm/.passwd | read tsmpw
dsmadmc -id=admin -pass="$tsmpw" -out=/tmp/adsm.$$.out5 "q pr"
cat /tmp/adsm.$$.out5 | grep "Backup Storage Pool" > /tmp/adsm.$$.out3A
if [ -s /tmp/adsm.$$.out3A ]
then
while read jproc3 jrest
do
echo "$jproc3" | sed 's/,//' | read jproc3A
dsmadmc -id=admin -pass=sysops -out=/tmp/adsm.$$.out4 "can pr "$jproc3A""
sleep 1
done < /tmp/adsm.$$.out3A
fi
rm /tmp/adsm.$$.ou*
# end of script

Bill Sherrill



<Prev in Thread] Current Thread [Next in Thread>