[Veritas-bu] Script writers, HELP !! Clear Case backups
2003-12-25 17:03:22
Subject: |
[Veritas-bu] Script writers, HELP !! Clear Case backups |
From: |
drt8243 AT hotmail DOT com (David Thome) |
Date: |
Thu, 25 Dec 2003 22:03:22 +0000 |
<html><div style='background-color:'><DIV class=RTE>
<P>I'm trying to finish a script that needs to lock one
VOB, backup it's associated filesystem, unlock it and then go on to
the next VOB. I don't want to lock all VOBS at once during the
backup, just one at a time.</P>
<P>I may need to use "bpstart_notify" and "bpend_notify" to accomplish
this. Not sure how best to use these to do this task.</P>
<P>The output of </P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align:
none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">#
/usr/atria/bin/cleartool lsvob<SPAN style="mso-spacerun: yes">
</SPAN>-host hostname<?xml:namespace prefix = o ns =
"urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P>
<P>is below. </P>
<P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">column one is *
</SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align:
none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">column two is
name of the vob (need to lock and unlock this)</SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align:
none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier
New'"><o:p></o:p></SPAN> </P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align:
none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">column three is
name of filesystem to backup<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align:
none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier
New'"><o:p> </o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align:
none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">I used awk
to pull these out and place in appropriate spot<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align:
none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier
New'"><o:p> </o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align:
none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">lock and unlock
the name of the vob<o:p></o:p></SPAN></P>
<P class=MsoNormal style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in;
BORDER-TOP: medium none; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in
0in 0pt; BORDER-LEFT: medium none; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext;
mso-layout-grid-align: none; mso-border-bottom-alt: double windowtext 2.25pt;
mso-padding-alt: 0in 0in 1.0pt 0in"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY:
'Courier New'">backup the filesystem name</SPAN></P>
<P class=MsoNormal style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in;
BORDER-TOP: medium none; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in
0in 0pt; BORDER-LEFT: medium none; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext;
mso-layout-grid-align: none; mso-border-bottom-alt: double windowtext 2.25pt;
mso-padding-alt: 0in 0in 1.0pt 0in"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY:
'Courier New'"></SPAN> </P>
<P class=MsoNormal style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in;
BORDER-TOP: medium none; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in
0in 0pt; BORDER-LEFT: medium none; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext;
mso-layout-grid-align: none; mso-border-bottom-alt: double windowtext 2.25pt;
mso-padding-alt: 0in 0in 1.0pt 0in"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY:
'Courier New'">I think I'm close I just need some advise on how to finish off
the job.</SPAN></P>
<P class=MsoNormal style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in;
BORDER-TOP: medium none; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in
0in 0pt; BORDER-LEFT: medium none; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext;
mso-layout-grid-align: none; mso-border-bottom-alt: double windowtext 2.25pt;
mso-padding-alt: 0in 0in 1.0pt 0in"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY:
'Courier New'"></SPAN> </P>
<P class=MsoNormal style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in;
BORDER-TOP: medium none; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in
0in 0pt; BORDER-LEFT: medium none; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext;
mso-layout-grid-align: none; mso-border-bottom-alt: double windowtext 2.25pt;
mso-padding-alt: 0in 0in 1.0pt 0in"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY:
'Courier New'">Again I only want to lock one VOB, back it up, then
unlock it and move on to the next VOB. Only locking one VOB at a
time.</SPAN></P>
<P class=MsoNormal style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in;
BORDER-TOP: medium none; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in
0in 0pt; BORDER-LEFT: medium none; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext;
mso-layout-grid-align: none; mso-border-bottom-alt: double windowtext 2.25pt;
mso-padding-alt: 0in 0in 1.0pt 0in"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY:
'Courier New'"></SPAN> </P>
<P class=MsoNormal style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in;
BORDER-TOP: medium none; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in
0in 0pt; BORDER-LEFT: medium none; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext;
mso-layout-grid-align: none; mso-border-bottom-alt: double windowtext 2.25pt;
mso-padding-alt: 0in 0in 1.0pt 0in"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY:
'Courier New'">Thank you very much in advance for any help you can
offer.</SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align:
none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier
New'"><o:p></o:p></SPAN> </P><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY:
'Courier New'"><o:p>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align:
none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">#
/usr/atria/bin/cleartool lsvob<SPAN style="mso-spacerun: yes">
</SPAN>-host hostname<o:p></o:p></SPAN></P></o:p></SPAN>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align:
none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier
New'"><o:p> </o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align:
none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">*
/vobs/air<SPAN style="mso-spacerun:
yes">
</SPAN>/vobstore/air.vbs public<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align:
none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">*
/vobs/ground<SPAN style="mso-spacerun:
yes">
</SPAN>/vobstore/ground.vbs public<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align:
none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">*
/vobs/satcomdev<SPAN style="mso-spacerun: yes">
</SPAN>/vobstore/satcomdev.vbs public<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align:
none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">*
/vobs/passdev<SPAN style="mso-spacerun:
yes"> </SPAN>/vobstore/passdev.vbs
public<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align:
none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">*
/vobs/release<SPAN style="mso-spacerun:
yes"> </SPAN>/vobstore/release.vbs
public<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align:
none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">*
/vobs/alandev<SPAN style="mso-spacerun:
yes"> </SPAN>/vobstore/alandev.vbs
public<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align:
none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">*
/vobs/redhat<SPAN style="mso-spacerun:
yes">
</SPAN>/vobstore/redhat.vbs public<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align:
none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">*
/vobs/tools<SPAN style="mso-spacerun:
yes">
</SPAN>/vobstore/tools.vbs public<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align:
none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">*
/vobs/brokerdev<SPAN style="mso-spacerun: yes">
</SPAN>/vobstore/brokerdev.vbs public<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align:
none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">*
/vobs/enduserdev<SPAN style="mso-spacerun: yes">
</SPAN>/vobstore/enduserdev.vbs public<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align:
none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">*
/vobs/cm_testing<SPAN style="mso-spacerun: yes">
</SPAN>/vobstore/cm_testing.vbs public<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align:
none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">*
/vobs/cccq_test_unix /vobstore/cccq_test_unix.vbs public<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align:
none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier
New'"><o:p> </o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align:
none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><SPAN
style="mso-spacerun: yes"> </SPAN><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align:
none"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier
New'"><o:p> </o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="BACKGROUND: red;
mso-highlight: red"><FONT face="Times New Roman" size=3>Bpstart_notify
??</FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman"
size=3>POLICY= </FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman"
size=3>>SCHED= </FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman"
size=3>>FILE=/opt/openv/netbackup/logs/start.stop </FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman"
size=3>> </FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face="Times
New Roman">>for vob in `/usr/atria/bin/cleartool lsvob<SPAN
style="mso-spacerun: yes"> </SPAN>-host<SPAN style="mso-spacerun:
yes"> </SPAN>hostname`<SPAN style="mso-spacerun: yes">
</SPAN></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman"
size=3>>do</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="mso-spacerun:
yes"><FONT face="Times New Roman" size=3></FONT></SPAN> </P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman"
size=3>> echo ?$vob? | awk ?{print $2}? > /tmp/vobname </FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman"
size=3>> echo ?Locking vob:$/tmp/vobname? >> $FILE</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman"
size=3>> /usr/atria/bin/cleartool lock vob:$/tmp/vobname<SPAN
style="mso-spacerun: yes"> </SPAN># place the vob name
here</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman"
size=3>> </FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman"
size=3>> echo ?$vob? | awk ?{print $3}? > /tmp/vobfs</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman"
size=3>> echo ?Calling backup for vob:$/tmp/vobname? >>
$FILE</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman"
size=3>> /usr/openv/netbackup/bin/bpbackup<SPAN style="mso-spacerun:
yes"> </SPAN>-iw<SPAN style="mso-spacerun: yes">
</SPAN>$/tmp/vobfs<SPAN style="mso-spacerun: yes"> </SPAN>#
(vob filesystem name here)</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New
Roman" size=3> </FONT></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="BACKGROUND: red;
mso-highlight: red"><FONT face="Times New Roman" size=3>Bpend_notify
??</FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman"
size=3>> echo "unLocking Vob $vob" >>$FILE </FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman"
size=3>> /usr/atria/bin/cleartool unlock vob:$/tmp/vobname<SPAN
style="mso-spacerun: yes"> </SPAN>#place the vob name
here</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman"
size=3>> </FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman"
size=3>> echo "finished" >> $FILE </FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman"
size=3>>done </FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman"
size=3>>exit</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New
Roman" size=3> </FONT></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New
Roman" size=3> </FONT></o:p></P>
<P><BR><BR> </P></DIV></div><br clear=all><hr> <a
href="http://g.msn.com/8HMAENUS/2749??PS=">Make your home warm and cozy this
winter with tips from MSN House & Home. </a> </html>
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Veritas-bu] Script writers, HELP !! Clear Case backups,
David Thome <=
|
|
|