#!/bin/ksh # ALTRAN_PROLOG_BEGIN_TAG # This is an automatically generated prolog. # # Copyright (C) Altran ACT S.A.S. 2017,2021. All rights reserved. # # ALTRAN_PROLOG_END_TAG # # IBM_PROLOG_BEGIN_TAG # This is an automatically generated prolog. # # 61haes_r714 src/43haes/usr/sbin/cluster/events/server_down_complete.sh 1.11 # # Licensed Materials - Property of IBM # # COPYRIGHT International Business Machines Corp. 1999,2011 # All Rights Reserved # # US Government Users Restricted Rights - Use, duplication or # disclosure restricted by GSA ADP Schedule Contract with IBM Corp. # # IBM_PROLOG_END_TAG # @(#) 7d4c34b 43haes/usr/sbin/cluster/events/server_down_complete.sh, 726, 2147A_aha726, Feb 05 2021 09:50 PM ######################################################################### # # Questions ? Comments ? Suggestions ? mailto:hafeedbk@us.ibm.com # ######################################################################### ######################################################################### # # # Name: server_down_complete # # # # Description: This event script is called when an application # # that is being monitored fails. # # # # Called by: Resource Manager # # # # Calls to: None # # # # Arguments: nodename resource_id # # # # nodename - name of the node where the # # application failed. # # # # resource_id - the resource id of the # # application server. # # # # Returns: 0 success # # 1 failure # # 2 bad argument # # # ######################################################################### PROGNAME=${0##*/} export PATH="$(/usr/es/sbin/cluster/utilities/cl_get_path all)" if [[ $VERBOSE_LOGGING == high ]] then set -x version='%I%' fi # # Set the Run-Time Parameter values and export them # to all successive scripts. # set -a eval $(cllsparam -n $LOCALNODENAME) set +a MONITOR="" STATUS=0 EXIT_STATUS=0 # # args are the event node, id of the server and an optional monitor name # NODENAME=$1 ID=$2 [[ $# = 3 ]] && MONITOR=$3 # # Check for minimal invocation # if [ $# -gt 3 ] then cl_log 10408 "Usage: $PROGNAME nodename resource_id [monitor name]\n" $PROGNAME exit 2 fi # # Event emulation support # if [ ! -n "$EMULATE" ] then EMULATE="REAL" fi # # Note to users: to add any user defined processing during a # server_down_complete event, define a pre or post event (do not modify this # script). # exit 0