That’s cool and that’s
exactly what you get from the /usr/openv/netbackup/bin/goodies/available_media
script…PLUS the output from that script tells you about whether the tape
is in the library or not which is what Jonathan wanted to know in the first
place. For that you will need to add the
following:
/usr/openv/netbackup/bin/admincmd/bpmedialist
-mlist -l | awk ' { if ( int($15/8)%2 ) {print $1} }' | xargs -i
/usr/openv/volmgr/bin/vmquery -m {} -l | grep TLD | awk '{print
$1}'
You can replace “TLD”
with whichever library type you might have.
--stuart
liddle
From:
veritas-bu-bounces AT mailman.eng.auburn DOT edu
[mailto:veritas-bu-bounces AT mailman.eng.auburn DOT edu] On Behalf Of
Mark.Donaldson AT cexp DOT com
Sent: Friday, September 21, 2007 9:05
AM
To: JMARTI05 AT intersil DOT com;
veritas-bu AT mailman.eng.auburn DOT edu
Subject: Re: [Veritas-bu] "Full"
Media
Full media, it's a bit
in the status byte.
/usr/openv/netbackup/bin/admincmd/bpmedialist
-mlist -l | \
awk ' { if ( int($15/8)%2 ) {print $1}
}'
From:
veritas-bu-bounces AT mailman.eng.auburn DOT edu
[mailto:veritas-bu-bounces AT mailman.eng.auburn DOT edu] On Behalf Of Martin, Jonathan
Sent: Thursday, September 20, 2007 7:40
AM
To:
veritas-bu AT mailman.eng.auburn DOT edu
Subject: [Veritas-bu] "Full"
Media
Is there a "media full"
flag I can parse via the command line? I'm working on a script for a
remote site who only wants to remove "full" media from the box. I can
guestimate based on how much data is on the media but when NBU gets to the end
of a media, does it flag it anywhere?