ADSM-L

Re: Adding a short delay in a server command script

2005-11-21 10:28:44
Subject: Re: Adding a short delay in a server command script
From: Remco Post <r.post AT SARA DOT NL>
To: ADSM-L AT VM.MARIST DOT EDU
Date: Mon, 21 Nov 2005 16:28:33 +0100
Prather, Wanda wrote:
> Ooh, that's really sneaky!  I like it!
>
>
>
> -----Original Message-----
> From: ADSM: Dist Stor Manager [mailto:ADSM-L AT VM.MARIST DOT EDU] On Behalf 
> Of
> John Monahan
> Sent: Thursday, November 17, 2005 6:36 PM
> To: ADSM-L AT VM.MARIST DOT EDU
> Subject: Re: Adding a short delay in a server command script
>
>
> Another option is to create another script which calls the sleep command
> on
> your TSM server with an immediate action.  You need to be in prompted
> schedule mode to use this method.  Here is how I do it:
>
> DEFINE SCRIPT  SLEEP DESC="Enter number of seconds to wait as a
> variable"
> UPDATE SCRIPT  SLEEP "define clientaction TSMSERVERNAME action=command
> -"
> UPDATE SCRIPT  SLEEP "objects='sleep ""$1""' wait=yes"
>
> Then in your other scripts where you need a pause you can have a line
> like
> so:
> RUN SLEEP 30
>
>

of course, after you upgraded to tsm server 5.3 you could just do
'reclaim stg tapearchivepool01 th=97'. Still maybe a sleep in a
serverscript would be usefull in other applications.


>
> ______________________________
> John Monahan
> Senior Consultant Enterprise Solutions
> Computech Resources, Inc.
> Office: 952-833-0930 ext 109
> Cell: 952-221-6938
> http://www.computechresources.com
>
>
>
>
>              "Ritter, John M"
>              <john.ritter@VAND
>              ERBILT.EDU>
> To
>              Sent by: "ADSM:           ADSM-L AT VM.MARIST DOT EDU
>              Dist Stor
> cc
>              Manager"
>              <[email protected]
> Subject
>              .EDU>                     Adding a short delay in a server
>                                        command script
>
>              11/17/2005 10:21
>              AM
>
>
>              Please respond to
>              "ADSM: Dist Stor
>                  Manager"
>              <[email protected]
>                    .EDU>
>
>
>
>
>
>
> 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


--
Met vriendelijke groeten,

Remco Post

SARA - Reken- en Netwerkdiensten                      http://www.sara.nl
High Performance Computing  Tel. +31 20 592 3000    Fax. +31 20 668 3167

"I really didn't foresee the Internet. But then, neither did the
computer industry. Not that that tells us very much of course - the
computer industry didn't even foresee that the century was going to
end." -- Douglas Adams

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