Veritas-bu

[Veritas-bu] How to filter media via their expiration date ?

2002-05-10 11:58:28
Subject: [Veritas-bu] How to filter media via their expiration date ?
From: Mark.Donaldson AT experianems DOT com (Donaldson, Mark)
Date: Fri, 10 May 2002 09:58:28 -0600
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C1F83B.86724840
Content-Type: text/plain

If you mean "expired" in the sense of "empty of images and now reusable"
it's this:

/usr/openv/volmgr/bin/vmquery -a -w | awk 'NR>3 && $3!~/CLN/ &&
$20=="00/00/0000" {print $1}'

If you mean "expired" in the media-manager sense:

This is expired due to media counts exceeding the preset limit:
vmquery -a -w | awk 'NR>3 && $16>0 && $15>=$16 {print$1}' 

The expiration due to tape age is pretty hard.  I'll post it if I get it
worked out...

-Mark




-----Original Message-----
From: laila aloui [mailto:aloui_laila AT yahoo DOT com]
Sent: Friday, May 10, 2002 3:10 AM
To: Donaldson, Mark; veritas-bu AT mailman.eng.auburn DOT edu
Subject: RE: [Veritas-bu] How to filter media via their expiration date
?



 What i want is : how can i have all media id of tapes
that are expired.


--- "Donaldson, Mark" <Mark.Donaldson AT experianems DOT com>
wrote:
> Can you supply a little more detail? Filter expired
> media from what output
> or report?
> 
> -Mark
> 
> -----Original Message-----
> From: laila aloui [mailto:aloui_laila AT yahoo DOT com]
> Sent: Thursday, May 09, 2002 11:33 AM
> To: veritas-bu AT mailman.eng.auburn DOT edu
> Subject: [Veritas-bu] How to filter media via their
> expiration date ?
> 
> 
> 
> HI,
> 
> is there a command line to filter media id which are
> expierd?
> 
> thanks in advance
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Shopping - Mother's Day is May 12th!
> http://shopping.yahoo.com
> _______________________________________________
> Veritas-bu maillist  - 
> Veritas-bu AT mailman.eng.auburn DOT edu
>
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Mother's Day is May 12th!
http://shopping.yahoo.com

------_=_NextPart_001_01C1F83B.86724840
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3DUS-ASCII">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2653.12">
<TITLE>RE: [Veritas-bu] How to filter media via their expiration date =
?</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>If you mean &quot;expired&quot; in the sense of =
&quot;empty of images and now reusable&quot; it's this:</FONT>
</P>

<P><FONT SIZE=3D2>/usr/openv/volmgr/bin/vmquery -a -w | awk 'NR&gt;3 =
&amp;&amp; $3!~/CLN/ &amp;&amp; $20=3D=3D&quot;00/00/0000&quot; {print =
$1}'</FONT>
</P>

<P><FONT SIZE=3D2>If you mean &quot;expired&quot; in the media-manager =
sense:</FONT>
</P>

<P><FONT SIZE=3D2>This is expired due to media counts exceeding the =
preset limit:</FONT>
<BR><FONT SIZE=3D2>vmquery -a -w | awk 'NR&gt;3 &amp;&amp; $16&gt;0 =
&amp;&amp; $15&gt;=3D$16 {print$1}' </FONT>
</P>

<P><FONT SIZE=3D2>The expiration due to tape age is pretty hard.&nbsp; =
I'll post it if I get it worked out...</FONT>
</P>

<P><FONT SIZE=3D2>-Mark</FONT>
</P>
<BR>
<BR>
<BR>

<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: laila aloui [<A =
HREF=3D"mailto:aloui_laila AT yahoo DOT com">mailto:aloui_laila AT yahoo DOT 
com</A>]<=
/FONT>
<BR><FONT SIZE=3D2>Sent: Friday, May 10, 2002 3:10 AM</FONT>
<BR><FONT SIZE=3D2>To: Donaldson, Mark; =
veritas-bu AT mailman.eng.auburn DOT edu</FONT>
<BR><FONT SIZE=3D2>Subject: RE: [Veritas-bu] How to filter media via =
their expiration date</FONT>
<BR><FONT SIZE=3D2>?</FONT>
</P>
<BR>
<BR>

<P><FONT SIZE=3D2>&nbsp;What i want is : how can i have all media id of =
tapes</FONT>
<BR><FONT SIZE=3D2>that are expired.</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>--- &quot;Donaldson, Mark&quot; =
&lt;Mark.Donaldson AT experianems DOT com&gt;</FONT>
<BR><FONT SIZE=3D2>wrote:</FONT>
<BR><FONT SIZE=3D2>&gt; Can you supply a little more detail? Filter =
expired</FONT>
<BR><FONT SIZE=3D2>&gt; media from what output</FONT>
<BR><FONT SIZE=3D2>&gt; or report?</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; -Mark</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; -----Original Message-----</FONT>
<BR><FONT SIZE=3D2>&gt; From: laila aloui [<A =
HREF=3D"mailto:aloui_laila AT yahoo DOT com">mailto:aloui_laila AT yahoo DOT 
com</A>]<=
/FONT>
<BR><FONT SIZE=3D2>&gt; Sent: Thursday, May 09, 2002 11:33 AM</FONT>
<BR><FONT SIZE=3D2>&gt; To: veritas-bu AT mailman.eng.auburn DOT edu</FONT>
<BR><FONT SIZE=3D2>&gt; Subject: [Veritas-bu] How to filter media via =
their</FONT>
<BR><FONT SIZE=3D2>&gt; expiration date ?</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; HI,</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; is there a command line to filter media id =
which are</FONT>
<BR><FONT SIZE=3D2>&gt; expierd?</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; thanks in advance</FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
<BR><FONT SIZE=3D2>&gt; =
__________________________________________________</FONT>
<BR><FONT SIZE=3D2>&gt; Do You Yahoo!?</FONT>
<BR><FONT SIZE=3D2>&gt; Yahoo! Shopping - Mother's Day is May =
12th!</FONT>
<BR><FONT SIZE=3D2>&gt; <A HREF=3D"http://shopping.yahoo.com"; =
TARGET=3D"_blank">http://shopping.yahoo.com</A></FONT>
<BR><FONT SIZE=3D2>&gt; =
_______________________________________________</FONT>
<BR><FONT SIZE=3D2>&gt; Veritas-bu maillist&nbsp; - </FONT>
<BR><FONT SIZE=3D2>&gt; Veritas-bu AT mailman.eng.auburn DOT edu</FONT>
<BR><FONT SIZE=3D2>&gt;</FONT>
<BR><FONT SIZE=3D2><A =
HREF=3D"http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu"; =
TARGET=3D"_blank">http://mailman.eng.auburn.edu/mailman/listinfo/veritas=
-bu</A></FONT>
<BR><FONT SIZE=3D2>&gt; </FONT>
</P>
<BR>

<P><FONT =
SIZE=3D2>__________________________________________________</FONT>
<BR><FONT SIZE=3D2>Do You Yahoo!?</FONT>
<BR><FONT SIZE=3D2>Yahoo! Shopping - Mother's Day is May 12th!</FONT>
<BR><FONT SIZE=3D2><A HREF=3D"http://shopping.yahoo.com"; =
TARGET=3D"_blank">http://shopping.yahoo.com</A></FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C1F83B.86724840--