How to automate the reinstallation of enforce after disk failure

book

Article ID: 185057

calendar_today

Updated On:

Products

Data Loss Prevention Enforce

Issue/Introduction

When there is a system failure on the enforce server, the re-installation process requires manually installation or running all the correct switches. 

Cause

unable to automate the installation process for enforce on windows server after system failure 

Environment

Enforce installed on WIndows 

REQUIREMENTS:

reinstallationResources.zip must be present

existing user is assumed in this script. If a user doesn't exist you must create one.

Resolution

The following script was written to complete a silent install of enforce while retaining the database. 

@echo off
setlocal
 
REM Modify the below variables for your environment.
REM ------------------------v Variables v------------------------ 
 
REM --- Oracle Variables ---
set Oracle_Host="192.168.2.101"
set Oracle_Username="protect"
set Oracle_Password="Symantec1"
set Oracle_SID="protect"
set Oracle_Port="1521"
set Oracle_Home="E:\app\client\administrator\product\12.2.0\client_1"
 
 
 
REM --- DLP Options ---
set External_Storage_Option="Database"
set FIPS="Disabled"
set Service_Username="SymantecDLP"
set Service_User_Password="Symantec1"
set Service_User_Option="ExistingUser"
set Enforce_Administrator_Password="Symantec1"
set Reinstall_Resource_file="c:\15.5_reinstall.zip"
set init_databse="Preserve"
 
REM --- DLP Required Paths ---
set Installation_Directory="E:\Program Files\Symantec\DataLossPrevention"
set Data_Directory="E:\ProgramData\Symantec\DataLossPrevention"
set JRE_Directory="E:\Program Files\Symantec\DataLossPrevention\ServerJRE\1.8.0_181"
 
REM ------------------------^ Variables ^------------------------ 
 
msiexec /i EnforceServer.msi /qn /norestart /L*v EnforceServer.log ORACLE_PASSWORD=%Oracle_Password% FIPS_OPTION=%FIPS% SERVICE_USER_PASSWORD=%Service_User_Password% INSTALLATION_DIRECTORY=%Installation_Directory% ENFORCE_ADMINISTRATOR_PASSWORD=%Enforce_Administrator_Password% ORACLE_USERNAME=%Oracle_Username% ORACLE_SID=%Oracle_SID% ORACLE_HOME=%Oracle_Home% DATA_DIRECTORY=%Data_Directory% JRE_DIRECTORY=%JRE_Directory% EXTERNAL_STORAGE_OPTION=%External_Storage_Option% ORACLE_PORT=%Oracle_Port% SERVICE_USER_OPTION=%Service_User_Option% SERVICE_USER_USERNAME=%Service_Username% ORACLE_HOST=%Oracle_Host% INITIALIZE_DATABASE_OPTION=%init_databse% REINSTALLATION_RESOURCE_FILE=%Reinstall_Resource_file%