Cut the script below and save as ezdocs6


#!/bin/sh
#
# Simple script to provide documentation of Solaris 2.6 System
# using standard tools
# v0.01
# T Evans
#

# See how we were called.
case "$1" in
 help | HELP | Help | -h | -?)
	echo "Script to produce documentation of Solaris 2.6 System"
	echo "using standard tools"
	echo
	echo "Out put is to the standard output device (screen) and can be"
	echo "re-directed to a file"
	echo
	exit 1
	;;
 *)
#
esac

echo "System documentation"
echo "===================="
echo
date
uname -n
echo
echo "Hardware information, OS Configuration, and setup details"
echo "---------------------------------------------------------"
echo
echo "eeprom settings:"
eeprom
echo
echo "Disk settings"
df
echo
echo "Network settings"
ifconfig -a
echo
echo "Environment"
env | grep "LC"
env | grep "TZ"
echo
echo "Terminal:"
env | grep "TERM"
echo
echo "hostname:"
#cat /etc/hostname.le0
cat /etc/hostname*
echo
echo "nsswitch.conf:"
cat /etc/nsswitch.conf
echo
prtconf
echo
echo "sysdef"
sysdef
echo
echo "Patches"
echo
# patchadd -p can take a while to execute
patchadd -p
echo
echo "Packages"
echo "--------"
pkginfo
echo
echo "Appendix"
echo "--------"
echo
echo "The above information was generated by the following script:"
cat $0
echo "------------------------------------------------"
echo
echo "End of report."
exit 0


Valid XHTML 1.0!