Veritas-bu

[Veritas-bu] Need some help

2003-09-21 12:10:17
Subject: [Veritas-bu] Need some help
From: drt8243 AT hotmail DOT com (David Thome)
Date: Sun, 21 Sep 2003 16:10:17 +0000
<html><div style='background-color:'><DIV>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt">Here are two short scripts I use 
to lock the vobs,&nbsp; backup the vobs, and then unlock the vobs.&nbsp; The 
problem is, all vobs are unavailable at the same time.&nbsp; I need a hand in 
changing my scripts so I can do one vob at a time.&nbsp; In other 
words.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" 
/><o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt">&nbsp;<o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt">Change the script to 
<o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt">Lock one vob, backup one vob, 
and unlock one vob,&nbsp; then go on to the next.&nbsp;&nbsp;&nbsp;&nbsp; I 
only want <STRONG>one </STRONG>vob unavailable at any given 
time.&nbsp;&nbsp;Can you help?<o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt">&nbsp;<o:p></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt">Thank you very much!!&nbsp; Here 
they are</P></DIV>
<DIV>&nbsp;</DIV>
<DIV><STRONG>Lock and backup</STRONG></DIV>
<DIV>&nbsp;</DIV>
<DIV>#!/usr/bin/ksh<BR>                         
FILE="/opt/openv/netbackup/logs/start.stop"<BR><BR>                             
echo "\n" &gt;&gt; $FILE<BR>                            /bin/echo "Beginning 
at: `date` \n" &gt;&gt; $FILE<BR><BR>                              for vob in 
`/usr/atria/bin/cleartool lsvob -s -host &lt;hostname&gt;` <BR>                 
             do<BR>                          
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo "Locking Vob $vob" &gt;&gt; 
$FILE<BR>                           &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
/usr/atria/bin/cleartool lock vob:$vob<BR>                           
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo "finished" &gt;&gt; $FILE<BR>   
                        done<BR>                                exit 0 &gt;&gt; 
$FILE&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR><BR><STRONG>Unlock Them 
(second script)</STRONG><BR><BR>&nbsp;&nbsp;&nbsp;       
FILE="/opt/openv/netbackup/logs/start.stop"<BR><BR>                             
echo "\n" &gt;&gt; $FILE<BR>                            /bin/echo "Ending at: 
`date` \n" &gt;&gt; $FILE<BR><BR>                         for vob in 
`/usr/atria/bin/cleartool lsvob -s -host &lt;hostname&gt;`<BR>                  
             do<BR>                          
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo "unLocking Vob $vob" &gt;&gt; 
$FILE<BR>                         &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
/usr/atria/bin/cleartool unlock vob:$vob<BR>                         
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo "finished" &gt;&gt; $FILE<BR>   
                        done<BR>                                exit 0 &gt;&gt; 
$FILE <BR><BR><BR><BR><BR></DIV></div><br clear=all><hr> <a 
href="http://g.msn.com/8HMBENUS/2734??PS=";>Instant message in style with MSN 
Messenger 6.0. Download it now FREE!</a> </html>

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