Thanks Bent.... I'll give that a try.
-----Original Message-----
From: ADSM: Dist Stor Manager [mailto:ADSM-L AT VM.MARIST DOT EDU] On Behalf Of
Bent Christensen
Sent: Thursday, June 19, 2014 9:23 AM
To: ADSM-L AT VM.MARIST DOT EDU
Subject: Re: [ADSM-L] Cancelling REPLICATION Processes via script.
Back in the day we used to do something like this to be able to bail out of
long-running house-keeping scripts:
repl node node1,node2,node3 wait=yes
select * from scripts where name='CANCEL_REPLI'
if(rc_ok) goto cancel
repl node node4,node5,node6 wait=yes
select * from scripts where name='CANCEL_REPLI'
if(rc_ok) goto cancel
cancel:
cancel replication
del script CANCEL_REPLI
Then it was just a matter of defining a script "CANCEL_REPLI" ...
- Bent
-----Original Message-----
From: ADSM: Dist Stor Manager [mailto:ADSM-L AT VM.MARIST DOT EDU] On Behalf Of
Vandeventer, Harold [BS]
Sent: Thursday, June 19, 2014 3:22 PM
To: ADSM-L AT VM.MARIST DOT EDU
Subject: [ADSM-L] Cancelling REPLICATION Processes via script.
I have an admin script that issues several node replicate commands, with
WAIT=YES on each to control bandwidth/processor burden.
If I issue CANCEL REPLICATION, only the currently running process is cancelled.
The next REPLICATE NODE (pending via the script) then starts.
Is there a way to cancel all of those pending processes?
I tried a DELETE <schedule_name> TYPE=A (it did delete the schedule), followed
by CANCEL PRO (on the currently running process), but the next REPLICATION
immediately started.
The only solution coming to mind is to write a script that would repeatedly
issue "Q REPLICATION *" with a CANCEL REPLICATION issued if one is active.
Then exiting when none are found.
Any of you TSM wizards have a solution you're willing to share? ... thanks.
------------------------------------------------------------
Harold Vandeventer
Systems Programmer
State of Kansas - Office of Information Technology Services STE 751-S
910 SW Jackson
(785) 296-0631
[Confidentiality notice:]
***********************************************************************
This e-mail message, including attachments, if any, is intended for the person
or entity to which it is addressed and may contain confidential or privileged
information. Any unauthorized review, use, or disclosure is prohibited. If
you are not the intended recipient, please contact the sender and destroy the
original message, including all copies, Thank you.
***********************************************************************
|