hi, as a follow up to the command line parsing "issue", i created a small patch to make showscores.sh working again.
i think it should be ok to apply this patch regardless of the state of my report as using "ptest -L -s" should be valid anyways :) thanks, raoul -- ____________________________________________________________________ DI (FH) Raoul Bhatia M.Sc. email. r.bha...@ipax.at Technischer Leiter IPAX - Aloy Bhatia Hava OEG web. http://www.ipax.at Barawitzkagasse 10/2/2/11 email. off...@ipax.at 1190 Wien tel. +43 1 3670030 FN 277995t HG Wien fax. +43 1 3670030 15 ____________________________________________________________________
--- bin/showscores.sh.bak 2009-08-20 14:46:48.000000000 +0200 +++ bin/showscores.sh 2009-08-20 14:47:09.000000000 +0200 @@ -21,7 +21,7 @@ if [ "$1" = "--help" -o "$1" = "-h" ] then - echo "showscores.sh - basically parsing ptest -Ls." + echo "showscores.sh - basically parsing ptest -L -s." echo "Usage: " echo "$0 (to display score information for all resources on all nodes sorted by resource name)" echo "$0 node (to display score information for all resources on all nodes sorted by nodename)" @@ -59,7 +59,7 @@ then nodename=$2 fi -2>&1 ptest -Ls | grep -E "$resource" | grep -E "$nodename" > $tmpfile +2>&1 ptest -L -s | grep -E "$resource" | grep -E "$nodename" > $tmpfile parseline() { if ! echo $*|grep -q "promotion score"; then
_______________________________________________ Pacemaker mailing list Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker