From ff51087c8330be1fca496b49cbaa8ea729328ae8 Mon Sep 17 00:00:00 2001 From: Dan Mick Date: Fri, 6 Jan 2017 20:36:38 -0800 Subject: [PATCH] ceph.in: add help for locally-handled commands Signed-off-by: Dan Mick --- src/ceph.in | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/ceph.in b/src/ceph.in index c2da5c509d0..1d077e4afe6 100755 --- a/src/ceph.in +++ b/src/ceph.in @@ -257,6 +257,21 @@ def do_basic_help(parser, args): """ hdr('General usage:') parser.print_help() + print_locally_handled_command_help() + +def print_locally_handled_command_help(): + hdr("Local commands:") + print(""" +ping Send simple presence/life test to a mon + may be 'mon.*' for all mons +daemon {type.id|path} + Same as --admin-daemon, but auto-find admin socket +daemonperf {type.id | path} [] [] + Get selected perf stats from daemon/admin socket + Run times (default forever), + once per seconds (default 1) + """, file=sys.stdout) + def do_extended_help(parser, args): def help_for_sigs(sigs, partial=None): -- 2.39.5