#!/bin/ksh93 # IBM_PROLOG_BEGIN_TAG # This is an automatically generated prolog. # # 61haes_r714 src/43haes/usr/sbin/cluster/sa/tsmclient/sbin/cl_tsmBAclientstop.sh 1.1 # # Licensed Materials - Property of IBM # # COPYRIGHT International Business Machines Corp. 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 # @(#)71 1.1 src/43haes/usr/sbin/cluster/sa/tsmclient/sbin/cl_tsmBAclientstop.sh, hacmp.assist, 61haes_r714 11/28/11 15:03:45 ############################################################################################### # # NAME: # cl_tsmBAclientstop # # PURPOSE: # stop script of Smart Assist for TSM ba client # # ARGUMENTS: # n/a # # RETURNS # 0 on success # 1 on Failure # ################################################################################################# [[ "VERBOSE_LOGGING" == "high" ]] && set -x . /usr/es/sbin/cluster/sa/tsmclient/sbin/cl_tsmcliGlobals KLIB_HACMPLOG_ENTRY=$KLIB_TSM_CLIENT_HACMPLOG_ENTRY KLIB_SA_logmsg INFO 2 21 tsmclientsa.cat "stoping the BA client deamon dsmcad\n" ps -ef|grep -w dsmcad|grep -v grep > /dev/null 2>&1 if [[ $? == 0 ]];then ps -ef|grep -w dsmcad|grep -v grep|awk '{print $2}'|xargs kill -9 rc=$? sleep 3 exit $rc else exit 0 fi