From e58bd3324e856663dda785b5974087cba2fb4c64 Mon Sep 17 00:00:00 2001 From: sjing Date: Thu, 25 Nov 2010 07:16:56 +0000 Subject: [PATCH] Minor change for the difference between Linux and AIX. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8267 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/HPCbootstatus.linux | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xCAT/postscripts/HPCbootstatus.linux b/xCAT/postscripts/HPCbootstatus.linux index a01da9495..ce552fd79 100644 --- a/xCAT/postscripts/HPCbootstatus.linux +++ b/xCAT/postscripts/HPCbootstatus.linux @@ -22,7 +22,7 @@ while [ true ]; do COUNT=0 # Query gpfs-daemon,mmfsd # Check 1191 port - port=`netstat -An|grep 1191` + port=`netstat -an|grep 1191` if [ "$port" != "" ]; then # Sent message to xcatd updateflag.awk $MASTER 3002 "$gpfsd" @@ -40,7 +40,7 @@ while [ true ]; do fi # Query gpfs-filesystem - fs=`/usr/sbin/mount |grep mmfs |awk '{print $2}'|tr '\n' '!'` + fs=`/bin/mount |grep "type gpfs"|awk '{print $3}'|tr '\n' '!'` if [ "$fs" != "" ]; then # Sent message to xcatd updateflag.awk $MASTER 3002 "hpcbootstatus gfsp-filesystem=$fs" @@ -58,7 +58,7 @@ while [ true ]; do fi # Query loadl-schedd - hn=`hostname` + hn=`hostname| tr '[A-Z]' '[a-z]'` llsc=`/usr/bin/llrstatus -h $hn -r %sca %scs` if [ "$llsc" != "" ]; then # Sent message to xcatd