From ecef90aa414a4dcb0a0d520be2334f03d06a4451 Mon Sep 17 00:00:00 2001 From: hari gowtham Date: Mon, 21 Aug 2017 15:41:42 +0530 Subject: Command to identify client process command: gluster volume status client-list output: Client connections for volume v1 Name count ----- ------ fuse 2 tierd 1 total clients for volume v1 : 3 ----------------------------------------------------------------- Client connections for volume v2 Name count ----- ------ tierd 1 fuse.gsync 1 total clients for volume v2 : 2 ----------------------------------------------------------------- Updates: #178 Change-Id: I0ff2579d6adf57cc0d3bd0161a2ec6ac6c4747c0 Signed-off-by: hari gowtham Reviewed-on: https://review.gluster.org/18095 Smoke: Gluster Build System Tested-by: hari gowtham CentOS-regression: Gluster Build System Reviewed-by: Atin Mukherjee --- cli/src/cli-cmd-parser.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cli/src/cli-cmd-parser.c') diff --git a/cli/src/cli-cmd-parser.c b/cli/src/cli-cmd-parser.c index 984ce5bbad0..ae4f78c522d 100644 --- a/cli/src/cli-cmd-parser.c +++ b/cli/src/cli-cmd-parser.c @@ -3249,7 +3249,8 @@ cli_cmd_get_statusop (const char *arg) uint32_t ret = GF_CLI_STATUS_NONE; char *w = NULL; char *opwords[] = {"detail", "mem", "clients", "fd", - "inode", "callpool", "tasks", NULL}; + "inode", "callpool", "tasks", "client-list", + NULL}; struct { char *opname; uint32_t opcode; @@ -3261,6 +3262,7 @@ cli_cmd_get_statusop (const char *arg) { "inode", GF_CLI_STATUS_INODE }, { "callpool", GF_CLI_STATUS_CALLPOOL }, { "tasks", GF_CLI_STATUS_TASKS }, + { "client-list", GF_CLI_STATUS_CLIENT_LIST }, { NULL } }; -- cgit