In regard to: Re: [Networker] Automated Tape Loading/Unloading, Darren...:
What I would like is the ability to unload a batch of tapes from
the library that is greater than the capacity of my load port.
I have (withdraw only, not deposit). I've recently received permission to
share all my NetWorker-related scripts under a GPL license, but I haven't
had time to package them up or even clean up some of the scary areas in
the code. :-|
my $num_slots_in_loadport = 14;
if ($volumes_moved_to_loadport == $num_slots_in_loadport) {
print "$0: Exiting, we've filled the loadport\n";
exit(0);
}
It looks to me that this doesn't unload more tapes than the capacity of
the load port.
That's correct -- it exits when the cap is full. I would just keep
running it with the same file, until all tapes listed in that file have
been withdrawn.
I've never written a script to do just that, but I would imagine you'd
run something like the above to fill the CAP, then run sjirdtag or
similar in a loop to see when the port has been emptied. Once you see
it empty, continue withdrawing volumes.
That would be a big improvement, but even doing something like:
for i in 1 2 3 4
do
./nsr_batch_withdraw.pl --file file_with_tape_names
sleep 60
done
from the shell prompt has been enough to meet my needs.
Tim
--
Tim Mooney mooney AT dogbert.cc.ndsu.NoDak DOT edu
Information Technology Services (701) 231-1076 (Voice)
Room 242-J6, IACC Building (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164
--
Note: To sign off this list, send a "signoff networker" command via email
to listserv AT listmail.temple DOT edu or visit the list's Web site at
http://listmail.temple.edu/archives/networker.html where you can
also view and post messages to the list. Questions regarding this list
should be sent to stan AT temple DOT edu
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
|