blob: 24a924aca7ea196a9e51154c49f67fd884a55be5 [file] [log] [blame]
#!/bin/bash
#-------------------------------------------------------------------------------
# Utility to view status of the cell warden and cell slaves
#-------------------------------------------------------------------------------
echo "========================================================"
status=$(ssh sdn@$CELL_WARDEN ps -ef | grep warden | grep -v grep)
let ok=$?
[ $ok -eq 0 ] && echo "Warden is running" || echo "Warden is stopped"
echo $status
for slave in $CELL_SLAVES; do
echo "========================================================"
echo "$slave:"
ssh sdn@$slave "touch foo && echo 'Disk OK' || echo 'Disk READ-ONLY'"
let ok=ok+$?
ssh sdn@$slave "df -h /"
let ok=ok+$?
ssh sdn@$slave sudo lxc-ls --fancy
let ok=ok+$?
done
exit $ok