#!/bin/sh
# dfs: Update my df archive for all hosts.

hosts="`hosts`"
DATE=`date -u +%Y-%m-%dT%H:%M:%SZ"`
cd ; cd tech/log/df || exit
for i in $hosts ; do
	echo $0 Doing $i
	(mkdir -p $i)
	rsh $i df > $i/$DATE
	ls -l $i
	done

echo "Zero size files, Maybe rsh failed on:"
find */$DATE* -type f -size 0c | xargs ls -l
