Veritas-bu

[Veritas-bu] Finding tapes written to....

2001-04-17 09:42:51
Subject: [Veritas-bu] Finding tapes written to....
From: paul.weaver AT stratech DOT com (Weaver, Paul)
Date: Tue, 17 Apr 2001 09:42:51 -0400
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_01C0C744.4C5EF910
Content-Type: text/plain;
        charset="iso-8859-1"

Jeff,
    We use another method for determining which tapes have been written to;
the bpimagelist -media -L command.

/usr/openv/netbackup/bin/admincmd/bpimagelist -media -L -d 04/16/01 18:00:00
| grep "^Media" | awk '{ print $3 }' -

will show you the tapes written to since April 16, 2001 at 6pm.  This
command also has other useful info like how much data was written to each
tape during that time period.

We use this command, at one site, since all tapes written to there,
eventually/weekly, get taken offsite.

Paul Weaver

-----Original Message-----
From: Jeff Kennedy [mailto:jlkennedy AT amcc DOT com]
Sent: Monday, April 16, 2001 6:18 PM
To: Veritas-bu List
Subject: [Veritas-bu] Finding tapes written to....


I am trying to figure out the best way to get my offsite backups
automated.  Meaning, automate the deciphering of what, when, and where
and then ejecting them.

Here's what I'm thinking so far......

Use vmquery on my pool (Offsite, original huh?) and redirect the output
to a file.  Use sed on the file to put it in delimited format and grep
for any mount in the last week.  Take the first field of that line
(media id) and cat it to another file which is the input for tpeject.

Am I re-inventing the wheel?  I looked at the eject_offsite_tape script
but it assumed way more than I am trying to do.  Is the above the
easiest method or is there another Veritas command that actually does
what I'm attempting without the acrobatics (wouldn't be the first
time..)?

Thanks.
-- 
=====================
Jeff Kennedy
Unix Administrator
AMCC
jlkennedy AT amcc DOT com
_______________________________________________
Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu

------_=_NextPart_001_01C0C744.4C5EF910
Content-Type: text/html;
        charset="iso-8859-1"
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=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2653.12">
<TITLE>RE: [Veritas-bu] Finding tapes written to....</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>Jeff,</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp; We use another method for =
determining which tapes have been written to; the bpimagelist -media -L =
command.</FONT>
</P>

<P><FONT SIZE=3D2>/usr/openv/netbackup/bin/admincmd/bpimagelist -media =
-L -d 04/16/01 18:00:00 | grep &quot;^Media&quot; | awk '{ print $3 }' =
-</FONT>
</P>

<P><FONT SIZE=3D2>will show you the tapes written to since April 16, =
2001 at 6pm.&nbsp; This command also has other useful info like how =
much data was written to each tape during that time period.</FONT></P>

<P><FONT SIZE=3D2>We use this command, at one site, since all tapes =
written to there, eventually/weekly, get taken offsite.</FONT>
</P>

<P><FONT SIZE=3D2>Paul Weaver</FONT>
</P>

<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: Jeff Kennedy [<A =
HREF=3D"mailto:jlkennedy AT amcc DOT com">mailto:jlkennedy AT amcc DOT 
com</A>]</FONT>=

<BR><FONT SIZE=3D2>Sent: Monday, April 16, 2001 6:18 PM</FONT>
<BR><FONT SIZE=3D2>To: Veritas-bu List</FONT>
<BR><FONT SIZE=3D2>Subject: [Veritas-bu] Finding tapes written =
to....</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>I am trying to figure out the best way to get my =
offsite backups</FONT>
<BR><FONT SIZE=3D2>automated.&nbsp; Meaning, automate the deciphering =
of what, when, and where</FONT>
<BR><FONT SIZE=3D2>and then ejecting them.</FONT>
</P>

<P><FONT SIZE=3D2>Here's what I'm thinking so far......</FONT>
</P>

<P><FONT SIZE=3D2>Use vmquery on my pool (Offsite, original huh?) and =
redirect the output</FONT>
<BR><FONT SIZE=3D2>to a file.&nbsp; Use sed on the file to put it in =
delimited format and grep</FONT>
<BR><FONT SIZE=3D2>for any mount in the last week.&nbsp; Take the first =
field of that line</FONT>
<BR><FONT SIZE=3D2>(media id) and cat it to another file which is the =
input for tpeject.</FONT>
</P>

<P><FONT SIZE=3D2>Am I re-inventing the wheel?&nbsp; I looked at the =
eject_offsite_tape script</FONT>
<BR><FONT SIZE=3D2>but it assumed way more than I am trying to =
do.&nbsp; Is the above the</FONT>
<BR><FONT SIZE=3D2>easiest method or is there another Veritas command =
that actually does</FONT>
<BR><FONT SIZE=3D2>what I'm attempting without the acrobatics (wouldn't =
be the first</FONT>
<BR><FONT SIZE=3D2>time..)?</FONT>
</P>

<P><FONT SIZE=3D2>Thanks.</FONT>
<BR><FONT SIZE=3D2>-- </FONT>
<BR><FONT =
SIZE=3D2>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
</FONT>
<BR><FONT SIZE=3D2>Jeff Kennedy</FONT>
<BR><FONT SIZE=3D2>Unix Administrator</FONT>
<BR><FONT SIZE=3D2>AMCC</FONT>
<BR><FONT SIZE=3D2>jlkennedy AT amcc DOT com</FONT>
<BR><FONT =
SIZE=3D2>_______________________________________________</FONT>
<BR><FONT SIZE=3D2>Veritas-bu maillist&nbsp; -&nbsp; =
Veritas-bu AT mailman.eng.auburn DOT edu</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>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C0C744.4C5EF910--

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