Added a tool to monitor health of the STC warden lab setup.

Change-Id: Ic5cd59bb9db39acaa08c67bdc47814e1a5722471
This commit is contained in:
Thomas Vachuska 2017-08-02 11:04:59 -07:00
parent 841cf2f49e
commit cba486a7aa

17
tools/test/bin/stc-warden Executable file
View File

@ -0,0 +1,17 @@
#!/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