Veritas-bu

[Veritas-bu] how to get a list of tapes in the tape library

2006-04-27 06:03:17
Subject: [Veritas-bu] how to get a list of tapes in the tape library
From: dave.markham AT fjserv DOT net (Dave Markham)
Date: Thu, 27 Apr 2006 11:03:17 +0100
If you are going to use the below i suggest you do an inventory prior as
this is what netbackup thinks is in the jukebox but ops could have been
in and changed things around as they are unpredictable sorts ;)

Inventory :-

/usr/openv/volmgr/bin/vmupdate -x -rn 0 -rt tld -rh `uname -n` -vh
`uname -n` -use_barcode_rules

I have this in a script which periodically runs during the day

#!/bin/ksh
#Reloading and inventorising tapes for media manager

vmupdate -x -rn 0 -rt tld -rh `uname -n` -vh `uname -n` -use_barcode_rules
if [ $? != "0" ]
then
    echo "WARNING: Problem with loadtape script..maybe an unreadable
tape! Please check its IMPORTANT\n\n" |mailx -s "uname -n` Loadtape
script Error" netbackupadmin AT somewhere DOT com ops AT somewhere DOT com
fi




Ellwood, MW (Mike) wrote:
> If you mean within a specific robot, then what I use is  :
>  
> vmquery -rn 0   [-b]                 #  I usually pipe it into a sort
> to get it by slot number or maybe media id
>  
> (We only have one robot for each of our systems, but one could
> substitute the index number of the robot in question if you have more).
>  
> (we are running an old level of Netbackup, so ymmv).
>  
> Regards,
> Mike Ellwood
>  
>
>     -----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
>     *Dave Carlson
>     *Sent:* 27 April 2006 00:26
>     *To:* veritas-bu AT mailman.eng.auburn DOT edu
>     *Subject:* [Veritas-bu] how to get a list of tapes in the tape library
>
>     anyone know the console command for getting a list of tapes that
>     are currently in the library? thanks!
>      
>
>     *Dave Carlson*
>     Associate Systems Engineer
>
>     *atlas*^®
>     *Partner for Results**
>     **^
>     *206.816.8221 // *direct*
>     206.850.8980 // *cell
>     *dave.carlson AT AtlasSolutions DOT com
>     <mailto:dave.carlson AT AtlasSolutions DOT com>* // email
>     *_www.AtlasSolutions.com
>     
> <outbind://28/jenniferh/Local%20Settings/Temporary%20Internet%20Files/OLK3/www.AtlasSolutions.com>_
>     // *web*
>
>      
>