Veritas-bu

[Veritas-bu] Win21k script to stop AV service during backup & restart when fin ished

2006-01-13 12:25:02
Subject: [Veritas-bu] Win21k script to stop AV service during backup & restart when fin ished
From: manuel.j.desousa AT jpmchase DOT com (manuel.j.desousa AT jpmchase DOT com)
Date: Fri, 13 Jan 2006 17:25:02 +0000
This is a multipart message in MIME format.
--=_alternative 005F7B3A802570F5_=
Content-Type: text/plain; charset="us-ascii"

Guys,

I have edited the bpstart_notify and bpend_notify to allow for multiple 
streams on windoze clnts...

In the bpstart_notify batch file, add th efollowing just after the main 
comments:
BPSTART_NOTIFY - Windows client
================================
@REM Added checks to allow for Application/database shuutdowen batch files 
to be 
@REM inserted for multiple streams.

@REM JDS
@echo %STREAM_NUMBER% > C:\Temp\bpstart.%1.%2.%3.%STREAM_NUMBER%.lck

@REM Insert appl/DB shutdown batch files in the line below between the () 
brackets.
if %STREAM_NUMBER%==1 (echo STARTED DB >> 
C:\Temp\bpstart.%1.%2.%3.%STREAM_NUMBER%.lck)
if %ERRORLEVEL% GTR 1 goto :FAIL

@REM JDS

then in the bpend_notify (same location)

@REM Added checks for streams to allow for DB or other apps to be 
restarted
@REM after a backup if multiple streams enabled. 
@REM See entries commented between "@REM JDS"

@REM JDS
if exist C:\Temp\bpstart.%1.%2.%3.%STREAM_NUMBER%.lck (del 
C:\Temp\bpstart.%1.%2.%3.%STREAM_NUMBER%.lck)

@REM Check if this is the last stream...
if exist C:\Temp\bpstart.%1.%2.%3.*.lck (goto :EOF) else (goto :COMPLETE)

@REM Insert the post-backup batch file here
:COMPLETE
@REM JDS

Insert the startup script directly below the :COMPLETE line

Cheers,


JdS







"Jim Peppas" <perf AT peppas DOT gr>
Sent by: veritas-bu-admin AT mailman.eng.auburn DOT edu
13/01/2006 14:18

 
        To:     "'WEAVER, Simon'" <simon.weaver AT astrium.eads DOT net>, 
"'Paul Keating'" 
<pkeating AT bank-banque-canada DOT ca>, <veritas-bu AT mailman.eng.auburn DOT 
edu>
        cc: 
        Subject:        RE: [Veritas-bu] Win21k script to stop AV service 
during backup & restart 
when fin ished


You could disable "Allow multiple data streams" if your time window allows 
it. This will cause only one stream to appear instead of many, and the 
notify scripts will work OK
 
Jim

From: veritas-bu-admin AT mailman.eng.auburn DOT edu 
[mailto:veritas-bu-admin AT mailman.eng.auburn DOT edu] On Behalf Of WEAVER, 
Simon
Sent: Wednesday, January 11, 2006 9:13 AM
To: 'Paul Keating'; veritas-bu AT mailman.eng.auburn DOT edu
Subject: RE: [Veritas-bu] Win21k script to stop AV service during backup & 
restart 
when fin ished

Hi All
Ok I got the script to work, which is great - only one problem I see - the 
client has multiple paritions and is being backed up using ALL LOCAL 
DRIVES - although the services stop fine, it appears that as soon as one 
of the stream finishes, the services are bought back up, therefore when it 
comes to backing up the partition where Trend lives, the files are being 
skipped!
 
I could use a sleep command to delay things, but is there a command to add 
to tell NBU to use the script when the final stream ends?
 
Thanks
 
 
Simon Weaver
Technical Support
Windows Domain Administrator 
EADS Astrium
Tel: 02392-708598 
Email: Simon.Weaver AT Astrium.eads DOT net 
-----Original Message-----
From: Paul Keating [mailto:pkeating AT bank-banque-canada DOT ca] 
Sent: 10 January 2006 13:37
To: veritas-bu AT mailman.eng.auburn DOT edu
Subject: RE: [Veritas-bu] Win21k script to stop AV service during backup & 
restart 
when fin ished

I've done it both ways.....called an external script and/or commands in 
the bpstart_notify.bat.
 
put some debug commands in the script, simple logging stuff, then make 
sure the commands i the script work if you run them at the CLI, then 
verify that you can run the bpstart_notify.bat from the CLI.
 
Paul
-----Original Message-----
From: WEAVER, Simon [mailto:simon.weaver AT astrium.eads DOT net] 
Sent: January 10, 2006 7:07 AM
To: 'bobbyrjw AT bellsouth DOT net'; Paul Keating; veritas-bu AT 
mailman.eng.auburn DOT edu
Subject: RE: [Veritas-bu] Win21k script to stop AV service during backup & 
restart 
when fin ished

Thanks Bob apprecaited!
Now, I am still unable to get this script to work - can anyone tell me if 
I am doing it right or wrong?
 
Am I right to place the command to stop the services in this file or 
should I be telling this file to run C:\stop.bat or something?
 
Any help really apprecaited - sysadmin guide doesnt give a clear 
definition on this, but it has to work?
This email is for the intended addressee only.
If you have received it in error then you must not use, retain, 
disseminate or otherwise deal with it.
Please notify the sender by return email.
The views of the author may not necessarily constitute the views of EADS 
Astrium Limited.
Nothing in this email shall bind EADS Astrium Limited in any contract or 
obligation.

EADS Astrium Limited, Registered in England and Wales No. 2449259
Registered Office: Gunnels Wood Road, Stevenage, Hertfordshire, SG1 2AS, 
England



--=_alternative 005F7B3A802570F5_=
Content-Type: text/html; charset="us-ascii"


<br><font size=2 face="sans-serif">Guys,</font>
<br>
<br><font size=2 face="sans-serif">I have edited the bpstart_notify and 
bpend_notify to allow for multiple streams on windoze clnts...</font>
<br>
<br><font size=2 face="sans-serif">In the bpstart_notify batch file, add th 
efollowing just after the main comments:</font>
<br><font size=2 face="sans-serif">BPSTART_NOTIFY - Windows client</font>
<br><font size=2 face="sans-serif">================================</font>
<br><font size=2 face="sans-serif">@REM Added checks to allow for 
Application/database shuutdowen batch files to be </font>
<br><font size=2 face="sans-serif">@REM inserted for multiple streams.</font>
<br>
<br><font size=2 face="sans-serif">@REM JDS</font>
<br><font size=2 face="sans-serif">@echo %STREAM_NUMBER% &gt; 
C:\Temp\bpstart.%1.%2.%3.%STREAM_NUMBER%.lck</font>
<br>
<br><font size=2 face="sans-serif">@REM Insert appl/DB shutdown batch files in 
the line below between the () brackets.</font>
<br><font size=2 face="sans-serif">if %STREAM_NUMBER%==1 (echo STARTED DB 
&gt;&gt; C:\Temp\bpstart.%1.%2.%3.%STREAM_NUMBER%.lck)</font>
<br><font size=2 face="sans-serif">if %ERRORLEVEL% GTR 1 goto :FAIL</font>
<br>
<br><font size=2 face="sans-serif">@REM JDS</font>
<br>
<br><font size=2 face="sans-serif">then in the bpend_notify (same 
location)</font>
<br>
<br><font size=2 face="sans-serif">@REM Added checks for streams to allow for 
DB or other apps to be restarted</font>
<br><font size=2 face="sans-serif">@REM after a backup if multiple streams 
enabled. </font>
<br><font size=2 face="sans-serif">@REM See entries commented between 
&quot;@REM JDS&quot;</font>
<br>
<br><font size=2 face="sans-serif">@REM JDS</font>
<br><font size=2 face="sans-serif">if exist 
C:\Temp\bpstart.%1.%2.%3.%STREAM_NUMBER%.lck (del 
C:\Temp\bpstart.%1.%2.%3.%STREAM_NUMBER%.lck)</font>
<br>
<br><font size=2 face="sans-serif">@REM Check if this is the last 
stream...</font>
<br><font size=2 face="sans-serif">if exist C:\Temp\bpstart.%1.%2.%3.*.lck 
(goto :EOF) else (goto :COMPLETE)</font>
<br>
<br><font size=2 face="sans-serif">@REM Insert the post-backup batch file 
here</font>
<br><font size=2 face="sans-serif">:COMPLETE</font>
<br><font size=2 face="sans-serif">@REM JDS</font>
<br>
<br><font size=2 face="sans-serif">Insert the startup script directly below the 
:COMPLETE line</font>
<br>
<br><font size=2 face="sans-serif">Cheers,</font>
<br>
<br>
<br><font size=2 face="sans-serif">JdS</font>
<br>
<br>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td>
<td><font size=1 face="sans-serif"><b>&quot;Jim Peppas&quot; &lt;perf AT peppas 
DOT gr&gt;</b></font>
<br><font size=1 face="sans-serif">Sent by: veritas-bu-admin AT 
mailman.eng.auburn DOT edu</font>
<p><font size=1 face="sans-serif">13/01/2006 14:18</font>
<br>
<td><font size=1 face="Arial">&nbsp; &nbsp; &nbsp; &nbsp; </font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; To: &nbsp; 
&nbsp; &nbsp; &nbsp;&quot;'WEAVER, Simon'&quot; &lt;simon.weaver AT 
astrium.eads DOT net&gt;, &quot;'Paul Keating'&quot; &lt;pkeating AT 
bank-banque-canada DOT ca&gt;, &lt;veritas-bu AT mailman.eng.auburn DOT 
edu&gt;</font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; cc: &nbsp; 
&nbsp; &nbsp; &nbsp;</font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; Subject: &nbsp; 
&nbsp; &nbsp; &nbsp;RE: [Veritas-bu] Win21k script to stop AV service during 
backup &amp; &nbsp; restart when fin ished</font></table>
<br>
<br>
<br><font size=2 color=blue face="Arial">You could disable &quot;Allow multiple 
data streams&quot; if your time window allows it. This will cause only one 
stream to appear instead of many, and the notify scripts will work OK</font>
<br><font size=3 face="Times New Roman">&nbsp;</font>
<br><font size=2 color=blue face="Arial">Jim</font>
<br>
<br>
<hr><font size=2 face="Tahoma"><b>From:</b> veritas-bu-admin AT 
mailman.eng.auburn DOT edu [mailto:veritas-bu-admin AT mailman.eng.auburn DOT 
edu] <b>On Behalf Of </b>WEAVER, Simon<b><br>
Sent:</b> Wednesday, January 11, 2006 9:13 AM<b><br>
To:</b> 'Paul Keating'; veritas-bu AT mailman.eng.auburn DOT edu<b><br>
Subject:</b> RE: [Veritas-bu] Win21k script to stop AV service during backup 
&amp; restart when fin ished</font><font size=3 face="Times New Roman"><br>
</font>
<br><font size=2 color=blue face="Arial">Hi All</font>
<br><font size=2 color=blue face="Arial">Ok I got the script to work, which is 
great - only one problem I see - the client has multiple paritions and is being 
backed up using ALL LOCAL DRIVES - although the services stop fine, it appears 
that as soon as one of the stream finishes, the services are bought back up, 
therefore when it comes to backing up the partition where Trend lives, the 
files are being skipped!</font>
<br><font size=3 face="Times New Roman">&nbsp;</font>
<br><font size=2 color=blue face="Arial">I could use a sleep command to delay 
things, but is there a command to add to tell NBU to use the script when the 
final stream ends?</font>
<br><font size=3 face="Times New Roman">&nbsp;</font>
<br><font size=2 color=blue face="Arial">Thanks</font>
<br><font size=3 face="Times New Roman">&nbsp;</font>
<br><font size=3 face="Times New Roman">&nbsp;</font>
<p><font size=2 color=blue face="Arial"><b>Simon Weaver<br>
Technical Support<br>
Windows Domain Administrator</b></font><font size=3 face="Arial"> </font>
<p><font size=2 face="Arial"><b><i>EADS Astrium<br>
Tel: 02392-708598</i></b></font><font size=3 face="Arial"> </font>
<p><font size=2 color=red face="Arial"><b>Email: Simon.Weaver AT Astrium.eads 
DOT net</b></font><font size=3 face="Arial"> </font>
<p><font size=2 face="Tahoma">-----Original Message-----<b><br>
From:</b> Paul Keating [mailto:pkeating AT bank-banque-canada DOT ca] <b><br>
Sent:</b> 10 January 2006 13:37<b><br>
To:</b> veritas-bu AT mailman.eng.auburn DOT edu<b><br>
Subject:</b> RE: [Veritas-bu] Win21k script to stop AV service during backup 
&amp; restart when fin ished<br>
</font>
<br><font size=2 color=#800000 face="Arial">I've done it both ways.....called 
an external script and/or commands in the bpstart_notify.bat.</font>
<br><font size=3 face="Times New Roman">&nbsp;</font>
<br><font size=2 color=#800000 face="Arial">put some debug commands in the 
script, simple logging stuff, then make sure the commands i the script work if 
you run them at the CLI, then verify that you can run the bpstart_notify.bat 
from the CLI.</font>
<br><font size=3 face="Times New Roman">&nbsp;</font>
<br><font size=2 color=#800000 face="Arial">Paul</font>
<br><font size=2 face="Tahoma">-----Original Message-----<b><br>
From:</b> WEAVER, Simon [mailto:simon.weaver AT astrium.eads DOT net] <b><br>
Sent:</b> January 10, 2006 7:07 AM<b><br>
To:</b> 'bobbyrjw AT bellsouth DOT net'; Paul Keating; veritas-bu AT 
mailman.eng.auburn DOT edu<b><br>
Subject:</b> RE: [Veritas-bu] Win21k script to stop AV service during backup 
&amp; restart when fin ished<br>
</font>
<br><font size=2 color=blue face="Arial">Thanks Bob apprecaited!</font>
<br><font size=2 color=blue face="Arial">Now, I am still unable to get this 
script to work - can anyone tell me if I am doing it right or wrong?</font>
<br><font size=3 face="Times New Roman">&nbsp;</font>
<br><font size=2 color=blue face="Arial">Am I right to place the command to 
stop the services in this file or should I be telling this file to run 
C:\stop.bat or something?</font>
<br><font size=3 face="Times New Roman">&nbsp;</font>
<br><font size=2 color=blue face="Arial">Any help really apprecaited - sysadmin 
guide doesnt give a clear definition on this, but it has to work?</font>
<table>
<tr>
<td bgcolor=white><font size=3 face="Times New Roman">This email is for the 
intended addressee only.<br>
If you have received it in error then you must not use, retain, disseminate or 
otherwise deal with it.<br>
Please notify the sender by return email.<br>
The views of the author may not necessarily constitute the views of EADS 
Astrium Limited.<br>
Nothing in this email shall bind EADS Astrium Limited in any contract or 
obligation.<br>
<br>
EADS Astrium Limited, Registered in England and Wales No. 2449259<br>
Registered Office: Gunnels Wood Road, Stevenage, Hertfordshire, SG1 2AS, 
England</font></table>
<br>
<br>
<br>
--=_alternative 005F7B3A802570F5_=--

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