ADSM-L

Re: Adding a short delay in a server command script

2005-11-17 11:51:52
Subject: Re: Adding a short delay in a server command script
From: "Prather, Wanda" <Wanda.Prather AT JHUAPL DOT EDU>
To: ADSM-L AT VM.MARIST DOT EDU
Date: Thu, 17 Nov 2005 11:51:38 -0500
1) You can have your script do a DEFINE SCHEDULE TYPE=ADMIN
STARTTIME=NOW+00:05  that only runs once and does the second UPDATE.

2) If you are planning to upgrade to TSM 5.3 any time soon, TSM 5.3 has
a RECLAIM command, where you can just start reclaim and don't have to
play with toggling the thresholds.

Wanda Prather
"I/O, I/O, It's all about I/O"  -(me)


-----Original Message-----
From: ADSM: Dist Stor Manager [mailto:ADSM-L AT VM.MARIST DOT EDU] On Behalf Of
Ritter, John M
Sent: Thursday, November 17, 2005 11:21 AM
To: ADSM-L AT VM.MARIST DOT EDU
Subject: Adding a short delay in a server command script


I have a short server command script that changes the reclamation
setting and then immediately resets it back, in order to start a
reclamation process for any tapes that are over the threshold.  
 
When I run the two commands manually, there is enough time between them
to allow a reclamation process to kick off.
 
When I run them as part of a script, they run so quickly that there is
no time for a reclamation process to start before it is reset back to
100.
 
Here are the two lines in the script:
 
update stg tapearchivepool01 recl=87
update stg tapearchivepool01 recl=100

What I need is the equivalent of the sleep command, so that I can delay
a few seconds between the two update commands, something similar to:
 
update stg tapearchivepool01 recl=87
sleep 10
update stg tapearchivepool01 recl=100

Any suggestions?  I want to just have one script do the kickoff as well
as resetting the recl back to 100.  I need to run this at certain times
of the day that I have available drives,   so I thought a server command
script would be appropriate.  If anybody has alternate approaches, I
would also be interested.  The wait=yes option doesn't work for the
update stg command, unfortunately.
 
Thanks in advance for your help.
 
 
John M. Ritter
Systems Software Specialist
Vanderbilt University Medical Center
Nashville, TN  37232
Email:  john.ritter AT vanderbilt DOT edu