#!/bin/sh
# pciconfs: Update my pciconf archive for all hosts.
hosts="`hosts`"

DATE=`date -u +%Y-%m-%dT%H:%M:%SZ`
cd ; cd tech/log/pciconf || exit
for i in $hosts ; do
	echo $0 Doing $i
	(mkdir -p $i)
	rsh $i "xs pciconf -l -v" > $i/$DATE
	# needs su on some host, but xs doesnt not help, they all then are 0 size.
	ls -l $i
	done

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