Here's how i wait on a  process to finish, i check every 10 minutes. i like to backup 
the DB first thing just incase............

/*DAILY*/
/*backup db*/
delete schedule chkproc type=admin
q process
if(rc_notfound) goto cont
def schedule chkproc cmd="run daily" active=yes startd=today startt=now+00:10 exp=today
exit
cont:
backup db dev=bakdrive type=full wait=yes
def schedule chkproc cmd="run Script1" active=yes startd=today startt=now+00:10 
exp=today
exit
/* End of DAILY*/

/*SCRIPT1*/
/*Expire data bkup stg backup\archive pools*/
delete schedule chkproc type=admin
q process
if(rc_notfound) goto cont
def schedule chkproc cmd="run script1" active=yes startd=today startt=now+00:10 
exp=today
exit
cont:
def schedule chkproc cmd="run backupstg" active=yes startd=today startt=now+00:10 
exp=today
expire inventory
exit
/*End of SCRIPT1*/

/*Backupstg*/
delete schedule chkproc type=admin
q process
if(rc_notfound) goto cont
def schedule chkproc cmd="run backupstg" active=yes startd=today startt=now+00:10 
exp=today
exit
cont:
backup stg backuppool copypool
/*End of Backupstg*/


-----Original Message-----
From: Jason Liang [mailto:[EMAIL PROTECTED]] 
Sent: Friday, March 22, 2002 8:07 AM
To: [EMAIL PROTECTED] 
Subject: TSM server automation.

Hi *SMers,

My environment:  TSM 4.2.1.11  IBM LTO 3584 with 8 drives and 10 I/O
stations.

I want to implement such TSM server automation:

1. If there is no migration running, then "backup stg tapepool copypool";
2. When backup stg finishes, "backup db dev=lto type=full"
3. When backup db finished, change the volumes of copypool to offsite, and
then checkout these volumes and the DB volumes; Notify tape operators;
    If the numbers of volumes  exceed 10, then checkout the first 10
volumes, wait for the I/O stations becomes empty and then
   checkout the others;

Any help will be appreciated.

Jason Liang

Reply via email to