kamctl: stats command can print a single group of statistics
authorDaniel-Constantin Mierla <miconda@gmail.com>
Wed, 18 Jul 2012 06:54:56 +0000 (08:54 +0200)
committerDaniel-Constantin Mierla <miconda@gmail.com>
Wed, 18 Jul 2012 06:54:56 +0000 (08:54 +0200)
- groupid can be given as command parameter

utils/kamctl/kamctl
utils/kamctl/kamctl.ctlbase

index 2cfb951..e0fb0e4 100755 (executable)
@@ -2548,7 +2548,11 @@ case $1 in
 
        stats)
                require_ctlengine
-               $CTLCMD get_statistics all
+               if [ "$#" -eq 1 ] ; then
+                       $CTLCMD get_statistics all
+               else
+                       $CTLCMD get_statistics "${2}:"
+               fi
                ;;
 
        restart)
index 1148cbb..15abe46 100644 (file)
@@ -93,7 +93,7 @@ EOF
        mecho " -- command 'stats' - print internal statistics"
        echo
 cat <<EOF
- stats .............................. dump all internall statistics
+ stats [group]....................... dump all or a group of internall statistics
 EOF
 }
 USAGE_FUNCTIONS="$USAGE_FUNCTIONS usage_ctlcommon"