2
0
Эх сурвалжийг харах

kamctl: added subcommand srv version

- print the server version using rpc command
Daniel-Constantin Mierla 6 жил өмнө
parent
commit
fea4b38815

+ 5 - 0
utils/kamctl/kamctl

@@ -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

+ 1 - 0
utils/kamctl/kamctl.base

@@ -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"