The perl script I have for this runs vmcheckxxx -rt tld -rn 0 -rh $nbu_master -h $nbu_master to get the output of all tapes in the lbirary
bpimmedia -L -mediaid $media -M $nbu_master To parse the images on each tape / then sort to find the expiration of the last image and then vmquery -m $media To attach the volume pool. The generated report looks something like XX0001, OFFSITE-VAULT, 2/1/2008 XX0002, OFFSITE-DR, 3/23/2008 XX0003, OFFSITE-VAULT, 2/4/2008 XX0004, OFFSITE-VAULT, 2/9/2008 Etc... -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brooks, Jason Sent: Tuesday, July 03, 2007 9:24 AM To: [email protected] Subject: [Veritas-bu] A Better Way? I'm working on our scripting that automates some NBU functions. One thing we currently do is keep a list of exported tapes (don't use vault and do our own offsite storage). One thing I'm looking at doing is appending the Volume Pool to the tape barcode in the file. That way, we can make sure all the usual suspects are running. >From what I know and what I've found, the only way to do this is with vmquery -m MEDIAID. The output, however, is not what I'm looking for. I can work around it, but is there a terser output that anyone knows of? Or another way to get the pool for a particular tape? Thanks, Jason ------------ Jason Brooks Computer Systems Engineer IITS - Longwood University voice - (434) 395-2034 fax - (434) 395-2035 mailto:<[EMAIL PROTECTED]> _______________________________________________ Veritas-bu maillist - [email protected] http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
