Veritas-bu

[Veritas-bu] Available Tapes

2005-09-12 17:50:58
Subject: [Veritas-bu] Available Tapes
From: Mark.Donaldson AT cexp DOT com (Mark.Donaldson AT cexp DOT com)
Date: Mon, 12 Sep 2005 15:50:58 -0600
I'd recommend using the scratch pool option.  This way unassigned media is
automatically returned to a common pool where it can then be assigned to a
needy data pool on demand.

Otherwise (assuming you have one robot):

#!/bin/ksh
PATH=$PATH:/usr/openv/volmgr/bin
echo "         Pool       \tOcc \tEmpty"
echo "====================\t====\t====="
for p in `vmquery -w -rn 0 | awk 'NR>3 {print $12}' | sort -u`
do
  vmquery -w -rn 0 | awk 'BEGIN {a=0;e=0}
                     {if ($12=="'$p'"){
                       if($20~/00\/00\/00/){e++}else{a++}}}
                     END {printf("%20s\t%4d\t%4d\n","'$p'",a,e)}'
done


Should do it, it prints three columns: poolname, # tapes assigned, # tapes
unassigned.

HTH - Mark


-----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 Pillapalem,
Smitha
Sent: Monday, September 12, 2005 11:43 AM
To: veritas-bu AT mailman.eng.auburn DOT edu
Subject: [Veritas-bu] Available Tapes


Hello,
We have Netbackup 5.1 running on Sunos , Linux and HP -UX
Is there a command or script to monitor the available unassigned media in
each volume pool so that I get notified during weekends, As we have a very
small library which can fit only 140 tapes.
Any help is greatly appreciated.
Thanks,
Smitha

_______________________________________________
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>