Veritas-bu

[Veritas-bu] command-line way to get vol_id from filespec and date range?

2006-03-30 11:25:32
Subject: [Veritas-bu] command-line way to get vol_id from filespec and date range?
From: Mark.Donaldson AT cexp DOT com (Mark.Donaldson AT cexp DOT com)
Date: Thu, 30 Mar 2006 09:25:32 -0700
This is a multi-part message in MIME format.

------_=_NextPart_001_01C65416.90F3E3D6
Content-Type: text/plain;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

As far as I know, there's no good way to do this without mining the =
database files directly.
=20
"bpimagelist -media" will give you most of this, it'll tell you what =
tapes were used for a policy, client, time-range, etc.  Long listing of =
simply "bpimagelist" will do the same if you parse the FRAG lines for =
tape info (note: an image can span tapes so fragments for an image can =
be on more than one tape.  Fragments themselves don't seem to span =
tapes).
=20
Once you add "file-spec" to the "what tape is my backup on", things get =
messy fast.
=20
-M

-----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 Rob Haig
Sent: Wednesday, March 29, 2006 8:29 AM
To: Veritas-bu AT mailman.eng.auburn DOT edu
Subject: [Veritas-bu] command-line way to get vol_id from filespec and =
date range?




I'm trying to determine through a command-line interface what piece of =
media a file is on given a hostname, file-spec, and date range.

=20

I suspect I'll have to start with a backup_id and get the media_id from =
that with bpimmedia or something like that.  I'm not shy of scripting, =
and given a backup_id (hostname_timestamp) I can derive the piece(s) of =
media it is on.  I just don't know how to go from the date-range and =
filespec to the backup_id.

=20

thx

=20

=20

=20

=20



Confidentiality Notice: This electronic communication contained in this =
e-mail from Rob Haig (including any attachments) may contain privileged =
and/or confidential information. This communication is intended only for =
the use of indicated e-mail addressees. Please be advised that any =
disclosure, dissemination, distribution, copying, or other use of this =
communication or any attached document other than for the purpose =
intended by the sender is strictly prohibited. If you have received this =
communication in error, please notify the sender immediately by reply =
e-mail and promptly destroy all electronic and printed copies of this =
communication and any attached document. Thank you in advance for your =
cooperation.



------_=_NextPart_001_01C65416.90F3E3D6
Content-Type: text/html;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">


<META content=3D"MSHTML 6.00.2800.1515" name=3DGENERATOR>
<STYLE>@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in =
1.25in; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
        COLOR: windowtext; FONT-FAMILY: Arial
}
DIV.Section1 {
        page: Section1
}
</STYLE>
</HEAD>
<BODY lang=3DEN-US vLink=3Dpurple link=3Dblue>
<DIV><SPAN class=3D997551516-30032006><FONT face=3DArial color=3D#0000ff =
size=3D2>As far=20
as I know, there's no good way to do this without mining the database =
files=20
directly.</FONT></SPAN></DIV>
<DIV><SPAN class=3D997551516-30032006><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D997551516-30032006><FONT face=3DArial color=3D#0000ff =

size=3D2>"bpimagelist -media" will give you most of this, it'll tell you =
what=20
tapes were used for a policy, client, time-range, etc.&nbsp; Long =
listing of=20
simply "bpimagelist" will do the same if you parse the FRAG lines for =
tape info=20
(note: an image can span tapes so fragments for an image can be on more =
than one=20
tape.&nbsp; Fragments themselves don't seem to span =
tapes).</FONT></SPAN></DIV>
<DIV><SPAN class=3D997551516-30032006><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D997551516-30032006><FONT face=3DArial color=3D#0000ff =
size=3D2>Once=20
you add "file-spec" to the "what tape is my backup on", things get messy =

fast.</FONT></SPAN></DIV>
<DIV><SPAN class=3D997551516-30032006><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D997551516-30032006><FONT face=3DArial color=3D#0000ff =

size=3D2>-M</FONT></SPAN></DIV>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
  <DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT =
face=3DTahoma=20
  size=3D2>-----Original Message-----<BR><B>From:</B>=20
  veritas-bu-admin AT mailman.eng.auburn DOT edu=20
  [mailto:veritas-bu-admin AT mailman.eng.auburn DOT edu]<B>On Behalf Of =
</B>Rob=20
  Haig<BR><B>Sent:</B> Wednesday, March 29, 2006 8:29 AM<BR><B>To:</B>=20
  Veritas-bu AT mailman.eng.auburn DOT edu<BR><B>Subject:</B> [Veritas-bu] =
command-line=20
  way to get vol_id from filespec and date =
range?<BR><BR></FONT></DIV><FONT=20
  color=3Dblack>
  <DIV class=3DSection1>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">I&#8217;m trying to =
determine through a=20
  command-line interface what piece of media a file is on given a =
hostname,=20
  file-spec, and date range.</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">I suspect I&#8217;ll =
have to start with=20
  a backup_id and get the media_id from that with bpimmedia or something =
like=20
  that.&nbsp; I&#8217;m not shy of scripting, and given a backup_id=20
  (hostname_timestamp) I can derive the piece(s) of media it is on. =
&nbsp;I just=20
  don&#8217;t know how to go from the date-range and filespec to the=20
  backup_id.</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">thx</SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>
  <P class=3DMsoNormal style=3D"TEXT-ALIGN: center" align=3Dcenter><FONT =
face=3DArial=20
  size=3D2><SPAN=20
  style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial"></SPAN></FONT>&nbsp;</P></DIV><BR><BR><FONT=20
  size=3D2>
  <P><FONT size=3D1><U>Confidentiality Notice:</U> This electronic =
communication=20
  contained in this e-mail from Rob Haig (including any attachments) may =
contain=20
  privileged and/or confidential information. This communication is =
intended=20
  only for the use of indicated e-mail addressees. Please be advised =
that any=20
  disclosure, dissemination, distribution, copying, or other use of this =

  communication or any attached document other than for the purpose =
intended by=20
  the sender is strictly prohibited. If you have received this =
communication in=20
  error, please notify the sender immediately by reply e-mail and =
promptly=20
  destroy all electronic and printed copies of this communication and =
any=20
  attached document. Thank you in advance for your=20
cooperation.<BR></FONT></P></BLOCKQUOTE></FONT></FONT></BODY></HTML>

------_=_NextPart_001_01C65416.90F3E3D6--

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