#!/bin/bash
source $HOME/.gamerc

for ip in $(cat /etc/hosts | sed -n '/\# PLEASE/,/# DO/p' | egrep 'GAMEDB|WZ|ACCOUNTDB|LOGIN' | awk -F" " '{print $1}'); do
	echo
	echo ${ip} | colorize blue black
	print_servername ${ip} | colorize yellow black
	set=$(print_servername ${ip} | awk -F"_" '{print $1}' | sed 's/WZ//;s/..$//')
	ssh ${ip} "cat ~/servers*/setup.ini | egrep -i 'main'; date"
done
