Networker

Re: [Networker] Automated Tape Loading/Unloading

2004-11-20 23:28:12
Subject: Re: [Networker] Automated Tape Loading/Unloading
From: Darren Dunham <ddunham AT TAOS DOT COM>
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Date: Sat, 20 Nov 2004 20:51:14 -0800
> >        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.

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.

--
Darren Dunham                                           ddunham AT taos DOT com
Senior Technical Consultant         TAOS            http://www.taos.com/
Got some Dr Pepper?                           San Francisco, CA bay area
         < This line left intentionally blank to confuse you. >

--
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
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=

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