Veritas-bu

[Veritas-bu] Automated checking for available media

2002-03-05 15:05:43
Subject: [Veritas-bu] Automated checking for available media
From: Shyam.Raghavan AT weac DOT com (Raghavan, Shyam)
Date: Tue, 5 Mar 2002 12:05:43 -0800
Using the available_media script output is more complicated. But , you can
get the tapes available in each pool (inside the Library) with the following
script I use.

Note: variable "POOLS" points to a file with a listing of all Pool names you
want to monitor. Beware that the  pool names are case sensitive and should
be one entry per line.

===========================================
#!/bin/sh
LOGFILE=/tmp/tape_ava.out
POOLS=/export/home/scripts/pools
PATH=$PATH:/usr/openv/netbackup/bin:/usr/openv/netbackup/bin/admincmd:/usr/o
penv/volmgr/bin
export PATH
echo "Following are the list of # of tapes available in each Pool" >$LOGFILE
for POOL in `cat $POOLS`
do
COUNT=`vmquery -bx -pn $POOL |grep TLD |awk '{ print $12 }' |grep "\---" |wc
-l`
echo "Total $COUNT Unused tapes in $POOL pool " >>$LOGFILE
done
cat $LOGFILE |mailx -s "[BACKUP] Tapes available in each Pool" root
=======================================================================

I made a lengthy script with the output from available_media script in the
beginning which  does the same thing , but with more complication. Let me
know if you want that.

Also , you may want to take a look at the Scratch Pool feature on Netbackup
Datacenter 3.4 which automatically assigns tapes from SCRATCH Pool when
other pools needs tape.

HTH,
Shyam.

-----Original Message-----
From: Craig Everett [mailto:ceverett AT virtual DOT com]
Sent: Tuesday, March 05, 2002 10:54 AM
To: Veritas Netbackup
Subject: [Veritas-bu] Automated checking for available media


Does anyone have a bourne script that uses the available_media script to
check for available tapes in each pool and then email's the admin with it's
results. This is for solaris 8 running Datacenter 3.4.

Thanks,

Craig Everett
ASG Professional Services
Systems Consultant
Office 858.277.9544
Fax 858.277.1229
ceverett AT virtual DOT com

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