How to Stop a Service with bpstart_notify.bat
Updated: 21 May 2010 | 3 comments
This issue has been solved. See solution.
Hi,
We are experiencing a problem with DFSR:
http://seer.entsupport.symantec.com/docs/290900.htm
I am triyng to stop the "DFS Replication" service befor the backup begin, and start it again when the backups end.
Can you help me with a simple bpstart_notify.bat and bpend files to do the job.
TNX
discussion Filed Under:
Comments
Easy one
This is really easy. My policy for this server is "Windows". I have a batch file called "bpstart_notify.Windows.bat" that contains:
net stop DFSR
Then I have another file called "bpend_notify.Windows.bat" that contains:
net start DFSR
It doesn't get much easier than that. :)
Map both Notify
Please do the changes as mention in bold & create bat file for dfc stop & start i.e net stop dfc
REM $Id: bpend_notify.bat,v 1.2 2004/12/22 11:22:41 $
D:\dfs.bat
@REM ***************************************************************************
@REM * $VRTScprght: Copyright 1993 - 2006 Symantec Corporation, All Rights Reserved $ *
@REM ***************************************************************************
@REM ecpyrght
@REM
@REM bpend_notify.bat
@REM
@REM This script is called by NetBackup when bpbkar is finished doing a
@REM backup on the client. It is also called after backing up the files
@REM for a user directed archive, but before the files are deleted.
@REM
@REM This script receives 6 parameters:
%1 = DFS1 (Server host name)
%2 = DFS_FULLbackup (policy name )
%3 = FULL_Backup (mention as when policy created)
%4 = FULL
%5 = STATUS, always 0
%6 = RESULT_FILE
how many different ways can you do it?
Amazing how we all seem to do it in so may different ways.
this is from my bpend_notify script.
@REM main script starts here
@REM This is a simple script that records what kind of backup was done along
@REM with other relevent information (Client name, policy name, etc) and
@REM appends the information to the results file
@REM --------------------------------------------------------------------
@REM ########- added the stop of DFSR so backups will work under Netbackup 6.5
@REM Known issue that 6.5 cannot backup dfs servers. as this is a san media server
@REM we added a reg key and the end and start notify scripts.
sc \\<yourservername> config DFSR start= auto
sc \\<yourservername> start DFSR
@REM end of custom section
for the bpstart
sc \\<yourservername> config DFSR start= demand
sc \\<yourservername> stop DFSR
I don't have to know how to spell....I work on Unix.
NetBackup 7.0.1 - AIX & Windows
Would you like to reply?
Login or Register to post your comment.