Database Reference
In-Depth Information
function EndBlackout {
# --------------------------------------------------------------------------------------------------
# This function was illustrated in Chapter 5 as a method of stopping and deleting
# an OEM blackout.
# --------------------------------------------------------------------------------------------------
# Calling script must provide a name for the blackout as BO_NAME
# --------------------------------------------------------------------------------------------------
GetTargetName
echo "Stopping blackout '${BO_NAME}' ..."
emcli stop_blackout -name="${BO_NAME}"
echo "Deleting blackout '${BO_NAME}' ..."
emcli delete_blackout -name="${BO_NAME}"
}
# ==============================================================================
# Agent Synchronization
# ==============================================================================
function ResyncUnreachableAgents {
# --------------------------------------------------------------------------------------------------
# This function requires no input values to resync all agents found to be in
# an Unreachable state.
#
# Underlying conditions may exist that prevent an individual agent from
# being resync'd, so check agent status after executing this function.
# Only one attempt will be made to resync each agent to prevent an infinite
# loop when problem agents are encountered
#
# This function and SecureAllAgents are written for execution from the command
# line by sourcing this library file and then calling the function by name
#
# Examples:
# . emcli_functions.lib
# ResyncUnreachableAgents
#
# . emcli_functions.lib
# SecureAllAgents
# --------------------------------------------------------------------------------------------------
WORKFILE01=/tmp/oem_resyncagents.tmp
CleanUpFiles
emcli login -user=sysman -pass="${SysmanPassword}"
Search WWH ::




Custom Search