script to generate system configuration info

netsure
script to generate system configuration info

#!/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

·çÖ®»ÃÏë
¶¥Ò»Ï£¬ÊÕ²ØÁË¡£

brucewoo
×ܽáµÄ²»´í

briangao
good job. Do you also know that Sun has an explore package SUNWexplo that can collect very detailed information about the system? Normally when you call support, the first thing they ask you to do is to run the explore script and send the result to them.

wolfchyu
ÀàËÆµÄ½Å±¾ÒÔǰҲд¹ý£¬²»¹ý±ÈÕâ¸öºÃÒª¸´ÔÓ£¬¿ÉÒÔÔÚһ̨»úÆ÷É϶ÔÈ«ÍøµÄÓ²Èí¼þ»ù±¾ÐÅÏ¢½øÐйÜÀí¼Ó¸æ¾¯µÄ¡£SUNWexplo ϰ¹ßÊÇÓÃÓÚ¹ÊÕÏÖ®ºóÊÕ¼¯ÐÅÏ¢µÄ£¬µ«²»ÄܺÜÖ±¹ÛµÄ¿´µ½Ò»Ð©ÏµÍ³´íÎó