Veritas-bu

Re: [Veritas-bu] quick eject script

2009-12-01 18:54:54
Subject: Re: [Veritas-bu] quick eject script
From: "Donaldson, Mark" <Mark.Donaldson AT Staples DOT com>
To: "Reynolds, Susan K." <SReynolds2 AT semprautilities DOT com>, <Veritas-bu AT mailman.eng.auburn DOT edu>
Date: Tue, 1 Dec 2009 16:54:46 -0700

I think your second step is in error - a tape in a drive doesn't update the vmquery slot number.

 

I'd do something like this…

 

for tape in `vmquery -rn 0 -l | awk '$11~/Offsite/ {print $1}`

do

  eject routine (lots of lines)

done

 

 

I actually do something much like this for offsite purposes.  My eject_tapes script is 60 lines of code that looks up the library for a tape given the tape number.  If the tape is in a drive, though, it just errors .  I supposed I could query the library controls for the tape location (see if it's in a drive) but right now I just eat the error when it occurs.

 

-M

 

From: veritas-bu-bounces AT mailman.eng.auburn DOT edu [mailto:veritas-bu-bounces AT mailman.eng.auburn DOT edu] On Behalf Of Reynolds, Susan K.
Sent: Tuesday, December 01, 2009 3:22 PM
To: Veritas-bu AT mailman.eng.auburn DOT edu
Subject: [Veritas-bu] quick eject script

 

Does anyone have a quick eject script the logic of which goes something like this:

 

1.       Eject any tapes in the OFFSITE volume pool if it is in the tape library

2.       Ignore tapes in a drive (vmquery slot number =0)

3.       And email the list of tapes to me with a report title and today’s date

 

Is there anything quick and easy out there like that?

 

Appreciate your help.

_______________________________________________
Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
<Prev in Thread] Current Thread [Next in Thread>