Module: kamailio
Branch: master
Commit: 0a5cba422967f2e861ce209942a42e09719f4fcb
URL:
https://github.com/kamailio/kamailio/commit/0a5cba422967f2e861ce209942a42e0…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-01-14T08:47:41+01:00
kamctl: added 'psa' command
- print more attributes for running processes (extended 'ps')
---
Modified: utils/kamctl/kamctl
Modified: utils/kamctl/kamctl.ctlbase
---
Diff:
https://github.com/kamailio/kamailio/commit/0a5cba422967f2e861ce209942a42e0…
Patch:
https://github.com/kamailio/kamailio/commit/0a5cba422967f2e861ce209942a42e0…
---
diff --git a/utils/kamctl/kamctl b/utils/kamctl/kamctl
index 4dd9bc7fed..b115f5a998 100755
--- a/utils/kamctl/kamctl
+++ b/utils/kamctl/kamctl
@@ -3010,6 +3010,11 @@ case $1 in
ctl_cmd_run core.psx
;;
+ psa)
+ require_ctlengine
+ ctl_cmd_run core.psa
+ ;;
+
uptime)
require_ctlengine
ctl_cmd_run core.uptime
diff --git a/utils/kamctl/kamctl.ctlbase b/utils/kamctl/kamctl.ctlbase
index a668e22d18..1fc64091af 100644
--- a/utils/kamctl/kamctl.ctlbase
+++ b/utils/kamctl/kamctl.ctlbase
@@ -81,6 +81,12 @@ usage_ctlcommon() {
echo
cat <<EOF
ps ................................. details about running processes
+EOF
+ echo
+ mecho " -- command 'psa' - print all attributes about running
processes"
+ echo
+cat <<EOF
+ psa ................................ all attributes about running processes
EOF
echo
mecho " -- command 'uptime' - print uptime details"