You can use below script to monitor cluster state, paging space usage and utilization with PID.
Run the below script via crontab with 10 mins interval.
#!/bin/ksh ################################################################################################# # Program: paging_cluster.ksh # # Directory: /usr/local/bin # # Author: Panchamoorthy Marimuthu # # Date: 10/MAR/2017 # # Purpose: (1) To monitor cluster state, paging space usage and utilization with PID # # Called By: Cron # # Calls: N/A # # Parameters: # ################################################################################################# dt=`date +%F` SERVER_NAME=`/usr/bin/uname -n` SERVER_DAYS=`uptime |awk '{print $3,$4}' |awk -F "," '{print $1}'` DIRECTORY=/work/paging NAME=`uname -n` #Create a directory if does not exist if [ ! -d "$DIRECTORY" ]; then mkdir -p /work/paging fi FILE=$DIRECTORY/$SERVER_NAME-PG-$dt if [ ! -e "$FILE" ]; then header="%-10s %12s %16s %12s %15s %8s %18s\n" printf "$header" "TIMING" "TOTAL-MEMORY" "TOTAL_PAGING" "COMP%" "PAGING%" "UPTIME" "CLUSTER_STATE" >$FILE fi HOUR_MIN_SEC=`/usr/bin/date +%T` TOTAL_MEMORY=`lsattr -El mem0 |grep goodsize |awk '{print $2}'` TOTAL_PAGING=`/usr/sbin/lsps -s |grep -v Percent |awk '{print $1}'` COMPUTATIONAL_PAGES=`vmstat -v |grep computational |awk '{print $1}'` PERCENT_USED=`/usr/sbin/lsps -s |grep -v Percent |awk '{print $2}'` cluster_on=`/usr/sbin/cluster/utilities/clRGinfo -v |grep $NAME | awk '{print $2}' |uniq` if [ $cluster_on = ONLINE ]; then CLUSTER_STATUS=`/usr/sbin/cluster/utilities/clRGinfo -v |awk '/ONLINE/ {print $2}' |uniq` else CLUSTER_STATUS=`/usr/sbin/cluster/utilities/clRGinfo -v |awk '/OFFLINE/ {print $2}' |uniq` fi echo "$HOUR_MIN_SEC \t$TOTAL_MEMORY \t\t$TOTAL_PAGING \t$COMPUTATIONAL_PAGES \t\t$PERCENT_USED \t$SERVER_DAYS \t$CLUSTER_STATUS" >>$FILE FILE_PID=$DIRECTORY/$SERVER_NAME-PGPID-$dt touch $FILE_PID comp_per=`vmstat -v |grep computational| awk '{print $1}' | awk -F. '{print $1}'` lsps_per=`/usr/sbin/lsps -s |grep -v Percent| awk '{print $NF}' | awk -F% '{print $1}'` if [ $comp_per -ge 80 ] && [ $lsps_per -ge 30 ]; then COMPUTATIONAL=`vmstat -v |grep computational` PAGING=`/usr/sbin/lsps -s |grep -v Percent` echo Server Name: $SERVER_NAME >> $FILE_PID echo Server Uptime: $SERVER_DAYS >> $FILE_PID echo computational pages:$COMPUTATIONAL >> $FILE_PID echo Paging:$PAGING >> $FILE_PID svmon -Pt1 -O timestamp=on |grep Timestamp |awk '{print $3,$4}' >> $FILE_PID svmon -Pt15 | perl -e 'while(<>){print if($.==2||$&&&!$s++);$.=0 if(/^-+$/)}' >> $FILE_PID echo "\n" >> $FILE_PID svmon -Pt15 | perl -e 'while(<>){print if($.==2||$&&&!$s++);$.=0 if(/^-+$/)}' |grep -Ev "Pid|-" |awk '{print $1}' |while read x; do ps -ef |grep $x |grep -v grep; echo " "; done >> $FILE_PID echo "\n" >> $FILE_PID fi #Log rotation for every 180 days find $DIRECTORY -type f -mtime +180 -print -exec rm -f {} \;