Previous Topic: start.bat Script Changes for SQL Express Primary ServersNext Topic: Upgrade Arcserve Backup from r12.5, r15, and r16 to r16.5 in an NEC CLUSTERPRO Environment


stop.bat Script Changes for SQL Express Primary Servers

After installation, you need to modify the stop.bat script by adding text in two locations: after NORMAL and after FAILOVER. The following script changes apply only to SQL Express primary servers.

Copy the following script and paste it in the stop.bat file after NORMAL and after FAILOVER:


REM Set the following variable 'process' to 1 for normal 
REM operation. During upgrade / migration, modify this 
REM script to set the value to zero 
SET process=1

REM Set this flag to 1 if it's a primary server and using 
REM MS SQL Express 2008 database, otherwise set it to 0
SET PRIMARY_SQLE_FLAG=1

REM Set the ARCServe home directory here
SET ARCSERVE_HOME=s:\arcserve_home

IF %process%==0 GOTO end

REM Do normal processing here 
armsleep 2
armkill  CASJobEngine
%ARCSERVE_HOME%\babha.exe -killjob
armkill CASMgmtSvc
armkill CASTapeEngine
armkill CASDBEngine
armkill CASMessageEngine
armkill CASunivDomainSvr
armkill CASSvcControlSvr
net stop "CA ARCserve Communication Foundation"
net stop CASportmapper

if %PRIMARY_SQLE_FLAG%==0 GOTO end
net stop mssql$arcserve_db

:end
REM Exit out of the batch file