ADSM-L

Re: Cancel All Processes

2003-03-25 17:11:46
Subject: Re: Cancel All Processes
From: Todd Lundstedt <Todd_Lundstedt AT VIA-CHRISTI DOT ORG>
To: ADSM-L AT VM.MARIST DOT EDU
Date: Tue, 25 Mar 2003 16:10:48 -0600
I have a script that cancels any migration, reclamation, move, and backup
stgpool processes.  I modified it slightly here, but it should work to
cancel any process running in TSM.  However, remember that the process will
not necessarily cancel immediately.  It has to finish what it is doing at
that time before canceling, for instance a 150GB file that just started
reclaiming will take approximately 3 hours to reclaim (on my system).  A
cancel process will not actually cancel that process until that file is
finished moving.
Anyway.. here is the slightly modified script.

PROCESSES=somepath/procs

dsmadmc -id=someTSMid -pass=TSMidpasswd q pro | awk '{ print $1 }' >
$PROCESSES

for ProcNo in `cat $PROCESSES`
do
  dsmadmc -id=someTSMid -pass=TSMidpasswd cancel pro $ProcNo
done

I haven't tested this, but it should work, maybe with some slight
modification to the 'awk' parameters.



|--------+------------------------>
|        |          "Dearman,     |
|        |          Richard"      |
|        |          <[email protected]|
|        |          DU>           |
|        |          Sent by:      |
|        |          "ADSM: Dist   |
|        |          Stor Manager" |
|        |          <ADSM-L AT VM DOT MAR|
|        |          IST.EDU>      |
|        |                        |
|        |                        |
|        |          03/25/2003    |
|        |          03:57 PM      |
|        |          Please respond|
|        |          to "ADSM: Dist|
|        |          Stor Manager" |
|        |                        |
|--------+------------------------>
  
>----------------------------------------------------------------------------------------------------------------------------|
  |                                                                             
                                               |
  |      To:     ADSM-L AT VM.MARIST DOT EDU                                    
                                                      |
  |      cc:                                                                    
                                               |
  |      Fax to:                                                                
                                               |
  |      Subject:     Cancel All Processes                                      
                                               |
  
>----------------------------------------------------------------------------------------------------------------------------|




Does anyone have a script to cancel all process?  For example you can
"cancel sess all" to cancel all sessions but there is no "cancel proc all"
command.  So there must be a scripting way of doing this.



THanks

***************************EMAIL DISCLAIMER*************************** This
email and any files transmitted with it may be confidential and are
intended
solely for the use of th individual or entity to whom they are addressed.
If you are not the intended recipient or the individual responsible for
delivering the e-mail to the intended recipient, any disclosure, copying,
distribution or any action taken or omitted to be taken in reliance on it,
is strictly prohibited.  If you have received this e-mail in error, please
delete it and notify the sender or contact Health Information Management
312.996.3941.

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