[Veritas-bu] tapes ready for backup
2004-06-17 21:50:41
vmquery should be able to do this. Empty tapes, ready for reuse, will have
an "Assigned time" (field 20 in the wide output) of "00/00/0000". The
vmquery command will also accept a pool-name as a limiter in the output.
So something like:
vmquery -pn <poolname> | awk 'NR>3 && $3!~/CLN/ && $20~/00.00.00/ {print
$1}'
(the third field restriction keeps it from identifying cleaning tapes,
although the poolname would probably take care of that... the "NR" check
just skips the header on the output)
-M
-----Original Message-----
From: veritas-bu-admin AT mailman.eng.auburn DOT edu
[mailto:veritas-bu-admin AT mailman.eng.auburn DOT edu]On Behalf Of Espen
Martinsen
Sent: Thursday, June 17, 2004 3:52 AM
To: veritas-bu AT mailman.eng.auburn DOT edu
Cc: Espen Martinsen
Subject: [Veritas-bu] tapes ready for backup
hi,
How can i on a command-line
list which tapes are ready to be used for backup in
a specific pool. that is, which tape has only backups with
retension-periods that is expired?
--
Yours
--------------------------------------------------------------
Espen Martinsen Email : esm AT mnemonic DOT no
Mnemonic AS, Waldemar Thranesgt. 77 Phone : +47 2299 9710/00
Mobil : +47 915 88 485
N-0175 Oslo, NORWAY Fax : +47 2299 9701
--------------------------------------------------------------
(PADI AOW 87191) http://www.mnemonic.no/
pgp print = 99CD 4027 36F4 0A4F 68DA 2925 327A 5BCF 9C21 F277
_______________________________________________
Veritas-bu maillist - Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
|
|
|