As the previous reply showed, DRM will do the moves, but it will take the
FILLING tapes as well as the FULL ones.  (Most people assume that the day
you send your stuff to the vault, you should be sending ALL the data,
whether the tapes are full or not.)

If you really want to send only the FULL tapes, you will have to do the MOVE
DRMEDIA one volume at a time.
This query will get only the FULL tapes still in your storage pool.

select 'MOVE DRMEDIA' , volume_name, 'WHEREST=MOUNTABLE', ' TOSTATE=VAULT'
from volumes where stgpool_name='yourcopypoolname' and access='READWRITE'
and status='FILLING' > c:\anyfilenameyouwant

In this query, the first 3 values in single quotes are just parroted back as
text, so it will put commands into the output file that look like this:


Unnamed[1]        VOLUME_NAME            Unnamed[3]            Unnamed[4]

-------------     ------------------     -----------------
--------------
move drmedia      VVVVV1        WHEREST=MOUNTABLE      TOSTATE=VAULT
move drmedia      VVVVV2        WHEREST=MOUNTABLE      TOSTATE=VAULT


You can edit out the header lines, then execute the MOVE DRMEDIA commands as
a macro.

If you want to automate the whole process, you will need to do a little more
scripting to clean up the header garbage before running the script as a
macro.  On an AIX host, it's easy to do with the shell scripting langauge
that's already there.  On a Windows host, I dunno - you will need a
scripting engine, like REXX or perl, to do the same thing.







-----Original Message-----
From: Scott G Davis [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 16, 2001 9:19 PM
To: [EMAIL PROTECTED]
Subject: Automating Drmedia moves


Does anybody know how to automate the drmedia moves?  For instance, I
have 10 volumes that are mountable and 8 are full and 2 are filling.
How do I move the 8 to vault and leave the other two?  I figure I need a
script, but I don't know how to write it.  I am running TSM 4.1.4 on
W2K.  Can anyone help?

Reply via email to