- 论坛徽章:
- 0
|
#!/bin/sh
#
# script to generate system configuration info
#
echo "Number and speed of CPUs"
echo "------------------------"
/usr/sbin/psrinfo -v
# echo "Memory and device tree information"
# echo "----------------------------------"
# /usr/sbin/prtconf
echo "CPU,Cache,Brd,Memory,Sbus slot info "
echo "------------------------------------"
/usr/platform/`uname -i`/sbin/prtdiag
echo "Solaris HW release info in /etc/system"
echo "--------------------------------------"
cat /etc/release
echo "Install Patch info. "
echo "---------------------"
# trim the output line
#/usr/bin/showrev -p
/usr/bin/showrev
/usr/bin/showrev -p | cut -b1-256 | grep "^Patch" | awk '{print $2}'
echo "kernel parameter Info."
echo "---------------------"
echo "You do not need all info from sysdef, ignore most of the device"
echo "tree info in below. Most useful info start from the session"
echo "from System Configuration section, other dev tree info is not necessary"
/usr/sbin/sysdef
echo "Swap partition Info."
echo "---------------------"
/usr/sbin/swap -l
echo "Installed packages"
echo "---------------------"
echo "* You don't really need this to be in the report, too much datahere * "
/usr/bin/pkginfo
echo "System uptime brief"
echo "--------------------"
/usr/bin/w |
|