Veritas-bu

[Veritas-bu] Making catalog backup config changes via command line in scripts

2003-08-01 10:54:43
Subject: [Veritas-bu] Making catalog backup config changes via command line in scripts
From: david.chapa AT adic DOT com (David Chapa)
Date: Fri, 1 Aug 2003 07:54:43 -0700
This is a multi-part message in MIME format.

------_=_NextPart_001_01C3583C.D78A5B20
Content-Type: text/plain;
        charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

USAGE: bpsyncinfo: [-paths <"path1 path2 ...">] [-v] [-M
master_server,...]
           [-server <hostname connected to device>]
           [-bw <backup when>]
           [-id1 <id> [-d1 <densitystr>]]
           [-id2 <id> [-d2 <densitystr>]]
=20
       densitystr is required if media type is tape=20
       the list of paths must be enclosed in double quotes and
blank-delimited
       backup when choices:  never, session or dbupdate
       id is either a media ID or path
=20
-----Original Message-----
From: Anthony Guzzi [mailto:avivausa AT yahoo DOT com]=20
Sent: Friday, August 01, 2003 8:41 AM
To: Veritas User List veritas-bu
Subject: [Veritas-bu] Making catalog backup config changes via command
line in scripts
=20
Hi, all.
=20
I'm trying to script my own tape duplication and vaulting routines for
NetBackup Datacenter 4.5 MP4 (running under Solaris 8).  I've been able
to work almost everything out except how to change what tapes are used
to do the catalog backup.  I can identify what tape was used to do the
most recent catalog backup as well as a replacement tape.  What I can't
figure out is how from the command line *in a non-interactive way* [read
'totally scripted'] I can change the catalog backup config and have it
stop using the tape used to do the most recent catalog backup and
starting using the tape I've selected as a replacement.  Given that NB
seems to have a lot a undocumented commands (by 'undocumented', I mean
not mentioned in the SAG nor do they have a 'man' page), I'm hoping one
of them will enable me to do what I want.  Thought?
=20
Anthony J Guzzi=20
Systems Administrator=20
Aviva Life Insurance Company=20
108 Myrtle Street  North Quincy  MA 02171=20
aguzzi AT avivausa DOT com=20
=20
=20
  _____ =20

Do you Yahoo!?
Yahoo! SiteBuilder
<http://us.rd.yahoo.com/evt=3D10469/*http:/sitebuilder.yahoo.com>  - =
Free,
easy-to-use web site design software

------_=_NextPart_001_01C3583C.D78A5B20
Content-Type: text/html;
        charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40";>

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">


<meta name=3DProgId content=3DWord.Document>
<meta name=3DGenerator content=3D"Microsoft Word 10">
<meta name=3DOriginator content=3D"Microsoft Word 10">
<link rel=3DFile-List href=3D"cid:[email protected]">
<link rel=3DEdit-Time-Data href=3D"cid:[email protected]">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:EnvelopeVis/>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;
        mso-font-charset:0;
        mso-generic-font-family:swiss;
        mso-font-pitch:variable;
        mso-font-signature:553679495 -2147483648 8 0 66047 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {mso-style-parent:"";
        margin:0in;
        margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:12.0pt;
        font-family:"Times New Roman";
        mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;
        text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;
        text-underline:single;}
p
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        mso-pagination:widow-orphan;
        font-size:12.0pt;
        font-family:"Times New Roman";
        mso-fareast-font-family:"Times New Roman";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        mso-style-noshow:yes;
        mso-ansi-font-size:10.0pt;
        mso-bidi-font-size:10.0pt;
        font-family:Arial;
        mso-ascii-font-family:Arial;
        mso-hansi-font-family:Arial;
        mso-bidi-font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;
        mso-header-margin:.5in;
        mso-footer-margin:.5in;
        mso-paper-source:0;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */=20
 table.MsoNormalTable
        {mso-style-name:"Table Normal";
        mso-tstyle-rowband-size:0;
        mso-tstyle-colband-size:0;
        mso-style-noshow:yes;
        mso-style-parent:"";
        mso-padding-alt:0in 5.4pt 0in 5.4pt;
        mso-para-margin:0in;
        mso-para-margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:10.0pt;
        font-family:"Times New Roman";}
</style>
<![endif]-->
</head>

<body lang=3DEN-US link=3Dblue vlink=3Dblue style=3D'tab-interval:.5in'>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>USAGE: bpsyncinfo: [-paths =
&lt;&quot;path1
path2 ...&quot;&gt;] [-v] [-M =
master_server,...]<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><span =
style=3D'mso-spacerun:yes'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span><span =
style=3D'mso-spacerun:yes'>&nbsp;&nbsp;&nbsp;</span>[-server =
&lt;hostname connected
to device&gt;]<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><span =
style=3D'mso-spacerun:yes'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;
</span>[-bw &lt;backup when&gt;]<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><span =
style=3D'mso-spacerun:yes'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;
</span>[-id1 &lt;id&gt; [-d1 =
&lt;densitystr&gt;]]<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><span =
style=3D'mso-spacerun:yes'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;
</span>[-id2 &lt;id&gt; [-d2 =
&lt;densitystr&gt;]]<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><span =
style=3D'mso-spacerun:yes'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>densitystr is required if media type is tape =
<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><span =
style=3D'mso-spacerun:yes'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>the list of paths must be enclosed in double quotes and =
blank-delimited<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><span =
style=3D'mso-spacerun:yes'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>backup when choices:<span style=3D'mso-spacerun:yes'>&nbsp; =
</span>never,
session or dbupdate<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><span =
style=3D'mso-spacerun:yes'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>id is either a media ID or path<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DTahoma><span
style=3D'font-size:10.0pt;font-family:Tahoma'>-----Original =
Message-----<br>
<b><span style=3D'font-weight:bold'>From:</span></b> Anthony Guzzi
[mailto:avivausa AT yahoo DOT com] <br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> Friday, August 01, =
2003 8:41
AM<br>
<b><span style=3D'font-weight:bold'>To:</span></b> Veritas User List =
veritas-bu<br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> [Veritas-bu] =
Making
catalog backup config changes via command line in =
scripts</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 =
face=3D"Times New Roman"><span
style=3D'font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 =
face=3D"Times New Roman"><span
style=3D'font-size:12.0pt'>Hi, all.<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 =
face=3D"Times New Roman"><span
style=3D'font-size:12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 =
face=3D"Times New Roman"><span
style=3D'font-size:12.0pt'>I'm trying to script my own tape duplication =
and
vaulting routines for NetBackup Datacenter 4.5 MP4 (running under =
Solaris
8).&nbsp; I've been able to work almost everything out except how to =
change
what tapes are used to do the catalog backup.&nbsp; I can identify what =
tape
was used to do the most recent catalog backup as well as a replacement
tape.&nbsp; What I can't figure out is how from the command line *in a
non-interactive way* [read 'totally scripted'] I can change the catalog =
backup
config and have it stop using the tape used to do the most recent =
catalog
backup and starting using the tape I've selected as a replacement.&nbsp; =
Given
that NB seems to have a lot a undocumented commands (by 'undocumented', =
I mean
not mentioned in the SAG nor do they have a 'man' page), I'm hoping one =
of them
will enable me to do what I want.&nbsp; =
Thought?<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 =
face=3D"Times New Roman"><span
style=3D'font-size:12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p style=3D'margin-left:.5in'><b><font size=3D2 face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;font-weight:bold'>Anthony J =
Guzzi</span></font></b> <br>
<font size=3D2 color=3Dblack face=3DArial><span =
style=3D'font-size:10.0pt;font-family:
Arial;color:black'>Systems Administrator</span></font> <br>
<b><font size=3D2 color=3Dblack face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial;color:black;font-weight:bold'>Aviva Life Insurance =
Company</span></font></b>
<br>
<font size=3D2 color=3Dblack face=3DArial><span =
style=3D'font-size:10.0pt;font-family:
Arial;color:black'>108 Myrtle Street&nbsp; North Quincy&nbsp; MA =
02171</span></font>
<br>
<i><font size=3D2 color=3Dblack face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial;color:black;font-style:italic'>aguzzi AT avivausa DOT 
com</spa=
n></font></i>
<o:p></o:p></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 =
face=3D"Times New Roman"><span
style=3D'font-size:12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 =
face=3D"Times New Roman"><span
style=3D'font-size:12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div class=3DMsoNormal align=3Dcenter =
style=3D'margin-left:.5in;text-align:center'><font
size=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>

<hr size=3D1 width=3D"100%" align=3Dcenter>

</span></font></div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 =
face=3D"Times New Roman"><span
style=3D'font-size:12.0pt'>Do you Yahoo!?<br>
<a =
href=3D"http://us.rd.yahoo.com/evt=3D10469/*http:/sitebuilder.yahoo.com";>=
Yahoo!
SiteBuilder</a> - Free, easy-to-use web site design =
software<o:p></o:p></span></font></p>

</div>

</body>

</html>
=00
------_=_NextPart_001_01C3583C.D78A5B20--

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