summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2016-01-19 20:05:22 +0100
committervarac <varacanero@zeromail.org>2016-01-19 22:35:37 +0100
commit45412d75d16189719c059c0368eca4bda75e6ff8 (patch)
treef44e451cf48a13f027c2ff48bcf3f1371a423374 /bin
parent935a5e884dc468da2b9ec724638f1c55a8f74e85 (diff)
[feat] Add 'leap debug' cmd
This will output node debug information by calling the bin/debug.sh script.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/debug.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/bin/debug.sh b/bin/debug.sh
new file mode 100755
index 00000000..2363644c
--- /dev/null
+++ b/bin/debug.sh
@@ -0,0 +1,25 @@
+#!/bin/bash
+# debug script to be run on remote servers
+# called from leap_cli with the 'leap debug' cmd
+
+regexp='(leap|pixelated|stunnel|couch|soledad|haproxy)'
+
+# query facts and filter out private stuff
+echo -e '\n\n'
+facter | egrep -iv '(^ssh|^uniqueid)'
+
+# query installed versions
+echo -e '\n\n'
+dpkg -l | egrep "$regexp"
+
+
+# query running procs
+echo -e '\n\n'
+ps aux|egrep "$regexp"
+
+echo -e '\n\n'
+echo -e "Last deploy:\n"
+tail -2 /var/log/leap/deploy-summary.log
+
+
+