Checkout all volume from tape library

depisusila

ADSM.ORG Member
Joined
Mar 28, 2004
Messages
14
Reaction score
0
Points
0
Website
Visit site
I have several checkin tape volume on a LTO3582 library, and now I would like to checkout all volume from a library.



Does someone has an experience how to checkout all volume from library with only one command ...



Not volume by volume and without use a script command to customize ?





Thx,





Depi
 
Checkout libvol <lib_name> "*"



This should checkout all volumes from the library. You may want to include "remove=yes" and "checklabel=no", so the new command would look like:



checkout libvol <lib_name> "*" remove=yes checklabel=no



-Aaron
 
Checkout libvol <lib_name> "*"



It doesn't work ...



I have try for this, but TSM couldn't recognize "*" as a wildcard, TSM always recognize "*" as a name of volume ...



any ideas ?





Depi
 
for TAPE in `dsmadmc -id=<ID> -password=<PASS> q libvol <LIBR> |grep <LIBR> |grep -v ANS |awk '{print $2}'`

do

dsmadmc -id=<ID> -password=<PASS> checkout libvol <LIBR> $TAPE \

remove=yes checklabel=no

done



<ID>=someone with rights to checkout tapes

<PASS>=the password for <ID>

<LIBR>=the library you are working with



That should work on a Unix host with korn shell. I don't know about others(windows or other shells). It will checkout EVERY tape in the library (scratch or otherwise).



-Aaron
 
Open Library

Remove Tapes

Close Library

Run "audit library"



-or-



If you are sending them offsite then use the "move drm" command with the appropriate "wherestate" and "tostate" options.
 
Back
Top