#!/bin/sh
#@(#)gen.readme.2	1.7 03/02/99 23:34:59

echo "The following info was collected using UNIX tools (hostname, arch, etc)" >> README
echo "----------------------------------------------------------------------" >> README
echo "" >> README
echo "Date: `date '+%Y.%m.%d'`" >> README
showrev >> README
# SUNW - is for Sun HW
# CYRS - is for Cray HW

SYSNAME=`prtconf|grep '^SUNW,'`
if test -z "$SYSNAME"
then
    SYSNAME=`prtconf|grep '^CYRS,'`
fi
echo "System Type: $SYSNAME" >> README
echo "Uptime: `uptime`" >> README
echo "Swap-s:" >> README
echo "`swap -s`" >> README
echo "Swap-l:" >>README
echo "`swap -l 2>&1`" >>README
echo "Vmstat:" >> README
echo "`vmstat`" >> README
echo "" >> README
echo "" >> README

# Describe dir layout information for collected data
cat ../tools/text >> README
