Remote host information
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
erm_setup.ksh
Remote Mirroring of an Oracle Database Using Data Replicator Software
B-7
ORA_DUMP=$TMP_DUMP
fi
echo "Oracle User Dump Area on $PRI_HOST =
${B2}$ORA_DUMP${EB}"
prompt_usr
STATUS=$?
done
#--------------------------
# Remote host information
#--------------------------
echo "\n\n${B1}REMOTE HOST INFORMATION:${EB}\n"
STATUS=1
while (( STATUS != 0 )); do
echo "\nEnter the common name for the REMOTE host that
will be used. [`tput sc``hostname`]`tput rc`\c"
read RMT_HOST
if [[ ! -n $RMT_HOST ]]; then
RMT_HOST=`hostname`
fi
echo "Remote host = ${B2}$RMT_HOST${EB}"
prompt_usr
STATUS=$?
done
RMT_SCRIPT_DIR=/opt/LSI_ERM
RMT_LOG_DIR=$RMT_SCRIPT_DIR/logs
mkdir -p $RMT_LOG_DIR >> erm_setup.trace 2>&1
chmod 777 $RMT_LOG_DIR >/dev/null 2>&1
#--------------------
# Test SMcli access
#--------------------
if [[ ! -x /usr/sbin/SMcli ]]; then
CLIENT=0
echo "${B1}ERROR!${EB}\n"
echo "\tUnable to execute /usr/sbin/SMcli, must have root
access to execute and"
echo "\thave SANtricity Storage Manager installed on both
hosts."
echo "\n\nPress Enter to Exit NOW!"
read BLANK
exit 2
fi
#---------------------------
# SMcli Discovered systems