SunChecker
This script will pull some of the system information on a sun host into a easy to read report.
Code
echo " IP Address : "$(ifconfig -a\
| awk '/inet/{if ($2 != "127.0.0.1") print $2}')
echo " MAC Address : "$(ifconfig -a\
| awk '/ether/{if ($2 != "127.0.0.1") print $2}')
echo " HostName : $HOSTNAME"
echo " OS : "$(cat /etc/motd | cut -c23-31)
echo " Hardware : "$(prtconf | grep SUNW\
| head -n 1 | cut -d ',' -f 2)
echo " CPU : "$(expr $(mpstat | wc -l) '-' 1)\
"x "$(prtconf | grep UltraSPARC | head -n 1\
| cut -d ',' -f 2 | cut -d ' ' -f 1)\
" @ "$(psrinfo -v | awk '/operates at/{print $6}'\
| head -n 1)" Mhz"
echo " RAM : "$(prtconf | grep Memory\
| cut -d ":" -f 2 | cut -c2-)
iostat -En | awk '/Size:/{print " Hard Disk : "$2,x};{x=$2" "$9}'
Example Output
IP Address : 10.10.10.10
MAC Address : 0:3:ba:a0:a0:a0
OS : SunOS 5.8
Hardware : Sun-Fire-V210
CPU : 2x UltraSPARC-IIIi @ 1336 Mhz
RAM : 2048 Megabytes
Hard Disk : 73.40GB FUJITSU No:
Hard Disk : 73.40GB FUJITSU No:



