Technical white paper Script for monitoring status of GiCAP groups and group managers Table of contents Why do we need GiCAP group status monitoring? 2 Script 2 For more information 8
Why do we need GiCAP group status monitoring? Sometimes a system administrator can be unaware that there are problems with the GiCAP groups or group managers, and the problems can persist for a long time before any action is taken. A white paper that describes these problems and steps to prevent them is available at Cost-effective high-availability solutions with HP Instant Capacity on HP Integrity Superdome 2 with HP-UX 11i v3.
# 1. Check the GiCAP_db status. # 2. Confirm if negative sharing rights symptom is occurring. # 3. Confirm if this script is launched from either AGM or SGM. # 4. [On AGM] # (a) Check the communication from AGM to SGM. # (b) Check the occurrence of Split GiCAP group. # (c) Check the communication from AGM to member OA(s). # (d) Check if GiCAP_db transfer works correctly. # [On SGM] # (a) Check the communication from SGM to AGM. # (b) Check the occurrence of Split GiCAP group.
# # # # 4. [On AGM] (a) Check the communication from AGM to SGM. # # # # 4. [On AGM] (b) Check the occurrence of Split GiCAP group. # # # # 4. [On AGM] (c) Check the communication from AGM to member OA(s). result=$( cat $TMP_FILE | grep '^Standby Group Manager' | grep -c 'cannot be contacted' ) if [ $result -eq 1 ] then perform_log_rotation LOG_DATE=$(date +"%x %X" 2>&1) { echo "Date: $LOG_DATE" echo "Log Type: GiCAP Operation" echo "Description: Any problem occurs on Standby GM.
# # # 4. [On AGM] (d) Check if GiCAP_db transfer works correctly. rval=0 /usr/sbin/icapmanage -t 1> $TMP_FILE 2> ${TMP_FILE}_2 if [ $? -ne 0 ] then perform_log_rotation LOG_DATE=$(date +"%x %X" 2>&1) { echo "Date: $LOG_DATE" echo "Log Type: GiCAP Operation" echo "Description: Database transfer failed." echo " $( cat $TMP_FILE ${TMP_FILE}_2 | tr -d '\r\n' )\n" } >> $LOGFILE rval=1 fi rm $TMP_FILE ${TMP_FILE}_2 return $rval else # Standby GM # # 4. [On SGM] # (a) Check the communication from SGM to AGM.
} fi rm $TMP_FILE ${TMP_FILE}_2 return 0 ############################################################# # Perform log rotation triggered by the log file size. ############################################################# perform_log_rotation() { if [ ! -f $LOGFILE ] then touch $LOGFILE chmod $LOGPERMISSION $LOGFILE chown $LOGOWNERSHIP $LOGFILE fi } fsize=$(ls -l $LOGFILE | awk '{print $5}') if [ $fsize -gt $LOGSIZE ] then i=$LOGNUMBACKUP while [ $i -gt 0 ] do j=`expr $i - 1` if [ -f $LOGFILE.
############################################################# # Check GiCAP and nPar provider status respectively.
then exit fi fi fi # exit 1 fi check_GM_status For more information To get access to more technical documentation on iCAP such as user guides, release notes, and technical white papers, visit hp.com/go/hp-icap-docs. Get connected hp.com/go/getconnected Current HP driver, support, and security alerts delivered directly to your desktop © Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.