| #------------------------------------------------------------------------------- |
| # Utility to view status of the cell warden and cell slaves |
| #------------------------------------------------------------------------------- |
| echo "========================================================" |
| status=$(ssh sdn@$CELL_WARDEN ps -ef | grep warden | grep -v grep) |
| [ $ok -eq 0 ] && echo "Warden is running" || echo "Warden is stopped" |
| for slave in $CELL_SLAVES; do |
| echo "========================================================" |
| ssh sdn@$slave "touch foo && echo 'Disk OK' || echo 'Disk READ-ONLY'" |
| ssh sdn@$slave sudo lxc-ls --fancy |