Database Reference
In-Depth Information
#!/bin/sh
# ==============================================================================
# File: emcli_relocate_target_vcs.sh
# Purpose: Relocate OEM agent for monitored VCS targets
# Parameters: VCS group name required
# Note: Must be run as part of VCS startup to run after fail-over
# to the secondary host
# ==============================================================================
# Environment tests
# --------------------------------------------------------------------------------------------------
if [ ${#1} -eq 0 ]; then
echo "You must pass the VCS cluster name on the command line\n\n"
exit 1
fi
export VCSBIN=< Set to the bin directory for your VRTSvcs executables >
if [ ! -d ${VCSBIN} ]; then
echo "Could not locate the Veritas executables in ${VCSBIN}"
export VCSBIN=""
exit 1
fi
# --------------------------------------------------------------------------------------------------
# Variables section
# --------------------------------------------------------------------------------------------------
SCRIPTNAME=`basename ${0}`
LOCAL_HOST=`hostname | cut -d"." -f1`
# --------------------------------------------------------------------------------------------------
# Set the ORACLE_HOME to the agent's base directory
# EM agent installs with its own jdk, so reference it in this script
# --------------------------------------------------------------------------------------------------
export ORACLE_HOME=/u01/oracle/product/agent12c
export EMCTL_HOME=${ORACLE_HOME}/agent_inst/bin
export JAVA_HOME=${ORACLE_HOME}/core/12.1.0.3.0/jdk/bin
# --------------------------------------------------------------------------------------------------
# The settings shown assume EM CLI binaries reside in the agent O/H
# --------------------------------------------------------------------------------------------------
export EMCLI_HOME=${ORACLE_HOME}/emcli
# Set paths to match the values set above
export PATH=${VCS_BIN}:${PATH}
export PATH=${ORACLE_HOME}:${ORACLE_HOME}/bin:${PATH}
export PATH=${EMCTL_HOME}:${PATH}
export PATH=${JAVA_HOME}:${PATH}
export PATH=${EMCLI_HOME}:${PATH}
export PATH=${PATH}:.
export LD_LIBRARY_PATH=${ORACLE_HOME}/lib:/lib:/lib64:/usr/lib:/usr/lib64
Search WWH ::




Custom Search