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