Home > Workload Solutions > SAP > Guides > Dell Validated Design for High Availability for SAP with SUSE Pacemaker Clusters > Configuration script
Run the script as any user to create the final configuration files.
Note: Using root is the easiest because the root user is required to load the configuration files into the system with crm.
#!/bin/bash
#
#
CONFIGFILES="crm_ascs.txt crm_col.txt crm_ers.txt"
read -p "Enter SID of the netweaver: " SID
read -p "Instance Number ASCS: " ASCS_INST
read -p "full filesystem device path for ASCS: " ASCS_FS
ASCS_FS=`echo $ASCS_FS |sed -e 's/\//\\\\\//g' `
read -p "cluster IP of ASCS instance: " ASCS_IP
read -p "cluster Hostname of ASCS instance: " ASCS_HOST
read -p "Instance Number ERS: " ERS_INST
read -p "full filesystem device path for ERS: " ERS_FS
ERS_FS=`echo $ERS_FS |sed -e 's/\//\\\\\//g' `
read -p "cluster IP of ERS instance: " ERS_IP
read -p "cluster Hostname of ERS instance: " ERS_HOST
cp crm_ascs-template crm_ascs.txt
cp crm_col-template crm_col.txt
cp crm_ers-template crm_ers.txt
for FILE in $CONFIGFILES ; do
sed -i "s/SID/$SID/g" $FILE
sed -i "s/ASCS_INST/ASCS${ASCS_INST}/g" $FILE
sed -i "s/ASCS_FS/${ASCS_FS}/g" $FILE
sed -i "s/ASCS_IP/${ASCS_IP}/g" $FILE
sed -i "s/ASCS_HOST/${ASCS_HOST}/g" $FILE
sed -i "s/ERS_INST/ERS${ERS_INST}/g" $FILE
sed -i "s/ERS_FS/${ERS_FS}/g" $FILE
sed -i "s/ERS_IP/${ERS_IP}/g" $FILE
sed -i "s/ERS_HOST/${ERS_HOST}/g" $FILE
done