#!/usr/bin/ksh93 # IBM_PROLOG_BEGIN_TAG # This is an automatically generated prolog. # # 61haes_r714 src/43haes/usr/sbin/cluster/sa/ihs/sbin/cl_discgskta.sh 1.1 # # Licensed Materials - Property of IBM # # Restricted Materials of IBM # # COPYRIGHT International Business Machines Corp. 2009,2010 # 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 # @(#)88 1.1 src/43haes/usr/sbin/cluster/sa/ihs/sbin/cl_discgskta.sh, hacmp, 61haes_r714 11/28/11 15:25:20 ################################################################### ## ## NAME: cl_discgskta ## ## DESCRIPTION: ## Discovers if the package gskta.rte is installed. This ## package is required is IBM Http Server can fallover to ## this node ## ## This utility is meant to be called remotely from ## cl_wasdiscovery. ## ## ARGUMENTS: ## None ## ## OUTPUT: ## Colon delimiter list of number of gskta.rte installations ## and the version number of the first one found. It is ## assumes that there are either 0 or 1 installation. ## ## EXIT CODES: ## None ## ## KLIB Functions: ## KLIB_IHS_log_message ## KLIB_IHS_get_installations ## ################################################################### ########## # MAIN ########## # Read in the db2 definitions #. /usr/es/sbin/cluster/sa/db2/etc/db2_definitions # Read in the message catalog entries #. /usr/es/sbin/cluster/sa/db2/cat/cl_db2discovery # Load the common klib functions, abort, logmsg, dbgmsg, etc. . /usr/es/lib/ksh93/common_functions.ksh93 KLIB_DEFAULT_LOGFILE=/var/hacmp/log/ihssa.log KLIB_HACMPLOG_ENTRY=ihssa.log KLIB_OUTPUT_CONSOLE=false QUICK_MODE=false # Set the FPATH for all DB2 / HACMP functions FLIB=/usr/es/lib/ksh93 FPATH=$FLIB/utils:$FLIB/hacmp:$FLIB/ihs:$FLIB/util:$FLIB/util/list:$FLIB/aix/:$FLIB/aix/odm/:$FLIB/db2/vg umask -S u=rw,g=,o= PATH=$PATH:/usr/es/sbin/cluster/utilities:/usr/es/sbin/cluster/sa/ihs/sbin/ set -u integer install_count=0 typeset version="" typeset installations="" GSKTA_INSTALLATIONS=$(KLIB_IHS_get_installations "gskta.rte") echo $GSKTA_INSTALLATIONS | IFS=: read install_count installations if [[ -z $installations ]]; then KLIB_IHS_log_message "IHS WARNING: gskta.rte is not installed" fi echo $installations | IFS=: read version tmp KLIB_IHS_log_message "IHS INFO: cl_discgskta returning - $install_count:$version" echo "gskta:$install_count:$version"