- groupid can be given as command parameter
@@ -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)
@@ -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"