clusterstatus.sh
#!/bin/sh
# Cluster Status Discovery
zeoclients="client1 client2"
clusterpath=${0%/*}/..
if [ ! -w ${clusterpath}/var/blobstorage ]; then
echo "You lack the rights necessary to run this script;\nTry sudo $0"
exit 1
fi
echo "ZEO Server:"
${clusterpath}/bin/zeo status
for client in $zeoclients
do
echo "Zope Client:" $client
${clusterpath}/parts/${client}/bin/zopectl status
done