From f03c5e0fefe86550e975b7610a6a499f333e3c03 Mon Sep 17 00:00:00 2001 From: Johan Wikman Date: Tue, 13 Nov 2018 16:54:20 +0200 Subject: [PATCH] MXS-2077 Expand 'maxctrl list sessions' somewhat 'maxctrl list sessions' will now show the connection time and idleness in addition to the id, user, host and service of the session. Further, the columns have be reordered somewhat so that the id, user and host are shown first, and the service last. --- maxctrl/lib/list.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/maxctrl/lib/list.js b/maxctrl/lib/list.js index 802eee7c3..dd98aa04f 100644 --- a/maxctrl/lib/list.js +++ b/maxctrl/lib/list.js @@ -119,9 +119,11 @@ exports.builder = function(yargs) { maxctrl(argv, function(host) { return getCollection(host, 'sessions',[ {'Id': 'id'}, - {'Service': 'relationships.services.data[].id'}, {'User': 'attributes.user'}, - {'Host': 'attributes.remote'} + {'Host': 'attributes.remote'}, + {'Connected': 'attributes.connected'}, + {'Idle': 'attributes.idle'}, + {'Service': 'relationships.services.data[].id'} ]) }) })