blob: 20baff217a92e3faefa052e09f5f7b333f41a8f9 [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 sudo lxc-ls --fancy
let ok=ok+$?
done
exit $ok