Subject: RE: Script Question


This is a sequence dependent DR Admin script that checks every 6 minutes to
see if
the diskpool to tapepool migration has completed and then continues on.

Admin Tasks for Disaster Recovery.
           Sequence dependent

rs6000:/scripts/admin_dr
#!/bin/ksh
dsmadmc -id=xxx-pass=xxx backup stg diskpool copypool maxpr=4 wait=yes >
/dev/null
dsmadmc -id=xxx -pass=xxx upd stg diskpool hi=0 lo=0 migpr=4 > /dev/null
/scripts/mig_rng           #see script mig_rng below
dsmadmc -id=xxx -pass=xxx upd stg diskpool hi=90 lo=70 > /dev/null
dsmadmc -id=xx -pass=xxx backup stg tapepool copypool maxpr=2 wait=yes >
/dev/null
dsmadmc -id=xxx -pass=xxx backup db t=f devc=3590_class wait=yes > /dev/null
dsmadmc -id=xxx -pass=xxx move drmedia * wherestate=mountable
tostate=courier
                                                       remove=yes
dbbackup=yes wait=yes > /dev/null
dsmadmc -id=xxx -pass=xxx prepare wait=yes > /dev/null


rs6000:/scripts/ mig_rng
#!/usr/bin/perl
$done=0;
while ($done  == 0) {
     sleep 360;           #wait 6 minutes
     system (`dsmadmc -id=xxx -pass=xxx q pr > tmpfile`); #query process
     system (`cat tmpfile | grep Migration > outfile`);   # check for
Migration process
          if (-z "outfile") {           #if migration is not finished, wait
again
               $done=1;                 #if migration is finished, exit the
loop
                }
}
exit


Frank McClean
[EMAIL PROTECTED]

-----Original Message-----
From: Robert Ouzen [mailto:[EMAIL PROTECTED]]
Sent: Sunday, June 03, 2001 12:05 AM
To: [EMAIL PROTECTED]
Subject: Script Question


I run a Tivoli backup server version 3.7.4.0 on an AIX-RS/6000.
My question is anyone create a script or a macro doing like:

Migration from diskpool to tapepool checking the %Utilized = 0 ( or checking
the query process with no migration) then doing another command as Expire
inventory then checking the process and when finish doing like a backup db.

T.I.A Robert

Reply via email to