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. [email protected]
Technischer Leiter
IPAX - Aloy Bhatia Hava OEG web. http://www.ipax.at
Barawitzkagasse 10/2/2/11 email. [email protected]
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
[email protected]
http://oss.clusterlabs.org/mailman/listinfo/pacemaker