Browse code

kamctl: srv modules subcommand

- list the loaded modules

Daniel-Constantin Mierla authored on 06/11/2021 21:11:37
Showing 2 changed files
... ...
@@ -1799,6 +1799,11 @@ ksr_srv() {
1799 1799
 				ctl_cmd_run corex.debug $2
1800 1800
 			fi
1801 1801
 			;;
1802
+		modules)
1803
+			require_ctlengine
1804
+			mecho "list loaded modules"
1805
+			ctl_cmd_run core.modules
1806
+			;;
1802 1807
 		version)
1803 1808
 			require_ctlengine
1804 1809
 			mecho "list server version"
... ...
@@ -556,6 +556,7 @@ cat <<EOF
556 556
  srv aliases ................... show the list of server aliases
557 557
  srv rpclist ................... show the list of server rpc commands
558 558
  srv debug [<level>] ........... control the server debug level
559
+ srv modules ................... show the list of loaded modules
559 560
  srv version ................... show the server version
560 561
 EOF
561 562
 }