summaryrefslogtreecommitdiff
path: root/bin/debug.sh
blob: 2363644ca531749e2039f2e0397e6bcfc11a41a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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