#!/bin/ksh # IBM_PROLOG_BEGIN_TAG # This is an automatically generated prolog. # # 61haes_r714 src/43haes/usr/sbin/cluster/events/rg_move_release.sh 1.6 # # Licensed Materials - Property of IBM # # COPYRIGHT International Business Machines Corp. 2002,2007 # 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 # @(#)71 1.6 src/43haes/usr/sbin/cluster/events/rg_move_release.sh, hacmp.events, 61haes_r714 3/30/07 16:18:51 # $Id$ ######################################################################### # # COMPONENT_NAME: EVENTS # # FUNCTIONS: none # ######################################################################### ######################################################################### # # # Name: rg_move_release # # # # Description: This event script is called when a resource # # group needs to move. # # This script calls the rg_move event script # # with the "RELEASE" argument. # # # # Called by: cluster manager # # # # Calls to: rg_move # # # # Arguments: nodename rg_ID # # # # Returns: 0 success # # 1 failure # # 2 bad argument # # # ######################################################################### PROGNAME=$(basename ${0}) PATH="$($(dirname ${0})/../utilities/cl_get_path all)" export PATH eval export $(cllsparam -x) [[ "$VERBOSE_LOGGING" = "high" ]] && set -x [[ "$VERBOSE_LOGGING" = "high" ]] && version='1.6' set -u if [ $# != 2 ] then cl_echo 6163 "Usage: $PROGNAME nodename RG_id\n" $PROGNAME exit 2 fi set +u clcallev rg_move $1 $2 "RELEASE" exit $?