Video Screencast Help
Search Video Help Close Back
to help
New in the Rewards Catalog: Vouchers for "Symantec Technical Specialist" and "Symantec Certified Specialist" exams.

How to Stop a Service with bpstart_notify.bat

Updated: 21 May 2010 | 3 comments
BernardoK's picture
-1 3 Votes
Login to vote
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

Seth Bokelman's picture
17
May
2009
1 Vote +1
Login to vote

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. :)

Shashank's picture
18
May
2009
0 Votes 0
Login to vote

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


J.Hinchcliffe's picture
19
May
2009
1 Vote +1
Login to vote

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