kamctl: added subcommand srv version
authorDaniel-Constantin Mierla <miconda@gmail.com>
Wed, 19 Jun 2019 07:51:39 +0000 (09:51 +0200)
committerDaniel-Constantin Mierla <miconda@gmail.com>
Wed, 19 Jun 2019 07:51:39 +0000 (09:51 +0200)
- print the server version using rpc command

utils/kamctl/kamctl
utils/kamctl/kamctl.base

index cc92e0e..a6dbd47 100755 (executable)
@@ -1791,6 +1791,11 @@ ksr_srv() {
                        mecho "list server rpc commands"
                        ctl_cmd_run system.listMethods
                        ;;
+               rpclist)
+                       require_ctlengine
+                       mecho "list server version"
+                       ctl_cmd_run core.version
+                       ;;
                *)
                        usage_ksr_srv
                        exit 1
index 46494f5..d16fa97 100644 (file)
@@ -553,6 +553,7 @@ cat <<EOF
  srv sockets ................... show the list of listen sockets
  srv aliases ................... show the list of server aliases
  srv rpclist ................... show the list of server rpc commands
+ srv version ................... show the server version
 EOF
 }
 USAGE_FUNCTIONS="$USAGE_FUNCTIONS usage_ksr_srv"