Managing Serviceguard Extension for SAP on Linux (IA64 Integrity and x86_64), April 2009

Replicated Enqueue Conversion: RE095
Copy SAP executables into the ERS exe directory.
This is described in detail in the SAP NetWeaver Library under:
http://help.sap.com/saphelp_nw2004s/helpdata/en/de/cf853f11ed0617e10000000a114084/content.htm
For convenience the following example script is provided which copies the required files:
##################################################################
echo "usage for ABAP ASCS - example:
echo " setup_ers_files.sh SX1 ERS12 ers12_reloc ASCS02 ascs_reloc"
echo "or"
echo "usage for JAVA SCS - example:"
echo " setup_ers_files.sh SX1 ERS13 ers13_reloc SCS03 scs_reloc"
###################################################################
# copy/create the SAP Enqueue Replication files out of an
# the SCS instance
#
# setup_ers_files.sh = program name
# SX1 = SAP SID
# ERS12 = instance name of the Enqueue Replication Service
# ASCS02 -> ERS12
# SCS03 -> ERS13
# ers12_reloc = virtual hostname for the ERS12 instance
# ers13_reloc = virtual hostname for the ERS13 instance
#
# ASCS02 - instance name of the enquue
# ascs_reloc = virtual hostname for the ASCS02 instance
# scs_reloc = virtual hostname for the SCS03 instance
#
# Arguments:
# $1=SX1
# $2=ERS12
# $3=saplx-0-35
# S = Source directory of ASCS/SCS instance
# D = Destination directory of ERS instance
###################################################################
S="/sapmnt/$1/exe/"
D="/usr/sap/$1/$2/"
ERSLST="${D}/exe/ers.lst"
echo "SAPSYSTEM=[$1]"
echo "ERS Instance=[$2]"
echo "ERS virtual IP=[$3]"
echo "Source_dir=[$S]"
echo "Dest_dir=[$D]"
echo "ers.lst=[$ERSLST]"
echo "mkdir -p ${D}"
mkdir -p ${D}
cd ${D}
echo "mkdir data log exe work profile"
mkdir data log exe work profile
echo "mkdir -p ${D}/exe/servicehttp/sapmc"
mkdir -p ${D}/exe/servicehttp/sapmc
cp /dev/null ${ERSLST}
###################################################################
SAP Preparation 61