#!/bin/sh
HTML=/home/theko/apache/htdocs/time/index.html
echo "<font size="5" color="blue"> Development Server Time</font>" > $HTML
echo "<TABLE width="100%" height="" border="1" bordercolor="blue" cellspacing="1" cellpadding="0">" >> $HTML
echo "<TR>" >> $HTML
for HOST in `grep 1.1.1.1 /etc/hosts | awk '{print $1}'`
do
echo "<TR>" >> $HTML
echo "<TD>" >> $HTML
ssh $HOST "hostname" >> $HTML
echo "</TD>" >> $HTML
echo "<TD>" >> $HTML
ssh $HOST "date" >> $HTML
echo "</TD>" >> $HTML
echo "<TD>" >> $HTML
ssh $HOST "uptime" >> $HTML
echo "</TD>" >> $HTML
echo "</TR>" >> $HTML
done
echo "</TR>" >> $HTML
echo "</TABLE>" >> $HTML