Veritas-bu

Re: [Veritas-bu] "Full" Media

2007-09-26 15:50:51
Subject: Re: [Veritas-bu] "Full" Media
From: <Mark.Donaldson AT cexp DOT com>
To: <liddles AT amgen DOT com>, <JMARTI05 AT intersil DOT com>, <veritas-bu AT mailman.eng.auburn DOT edu>
Date: Wed, 26 Sep 2007 13:18:34 -0600
I'd do one tweak to this, you can't depend on TLD library type or this being a unique string for the vmquery output.  Better to look at field 8 of the vmquery output, the robot number"
 
Change...
 
grep TLD | awk '{print $1}'
 
..to..
 
awk '$8!="-" {print $1}'
 
...and it'll be more accurate.


From: Liddle, Stuart [mailto:liddles AT amgen DOT com]
Sent: Saturday, September 22, 2007 1:49 PM
To: Donaldson, Mark - Broomfield, CO; JMARTI05 AT intersil DOT com; veritas-bu AT mailman.eng.auburn DOT edu
Subject: RE: Re: [Veritas-bu] "Full" Media

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?

 

Thanks,

 

-Jonathan

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