Thomas Vachuska | cba486a | 2017-08-02 11:04:59 -0700 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | #------------------------------------------------------------------------------- |
| 3 | # Utility to view status of the cell warden and cell slaves |
| 4 | #------------------------------------------------------------------------------- |
| 5 | |
| 6 | echo "========================================================" |
| 7 | status=$(ssh sdn@$CELL_WARDEN ps -ef | grep warden | grep -v grep) |
| 8 | let ok=$? |
| 9 | [ $ok -eq 0 ] && echo "Warden is running" || echo "Warden is stopped" |
| 10 | echo $status |
| 11 | for slave in $CELL_SLAVES; do |
| 12 | echo "========================================================" |
| 13 | echo "$slave:" |
| 14 | ssh sdn@$slave sudo lxc-ls --fancy |
| 15 | let ok=ok+$? |
| 16 | done |
| 17 | exit $ok |