1、UNIX/LINUX 操作系统硬件配置搜集作者:张士辉目的:上周南方基地以及其他团队兄弟做 oracle 资料搜集不断有兄弟 们询问各个操作系统下查看系统资料, 为了以后查找方便,我特地搜集相关详细说明资料。时间:2011 年 1 月 17 日查看 Oracle版本sqlplus / as sysdbaselect * from v$version;查看主机名Hostname=AIX=1.物理 CPU个数# prtconfSystem Model: IBM,9131-52AMachine Serial Number: 0677A5GProcessor Type: PowerPC_POWER5N
2、umber Of Processors: 4 =物理 cpu有 4个Processor Clock Speed: 1648 MHzCPU Type: 64-bitKernel Type: 64-bitLPAR Info: 1 06-77A5G# lsdev -Cc processorproc0 Available 00-00 Processorproc2 Available 00-02 Processorproc4 Available 00-04 Processorproc6 Available 00-06 Processor# vmstatSystem configuration: lcpu
3、=8 mem=7936MBkthr memory page faults cpu- - - - -r b avm fre re pi po fr sr cy in sy cs us sy id wa1 1 428238 41599 0 0 0 13 25 0 40 1639 182 0 0 99可以看到系统中有 8个逻辑 cpu。2.物理内存#prfconf |grep mem或者分步骤按照以下:#lsdev -Cc memory mem0 Available 00-00 Memory L2cache0 Available 00-00 L2 Cache 再使用命令 #lsattr -El me
4、m0 输出如下 size 512 Total amount of physical memory in Mbytes False goodsize 512 Amount of usable physical memory in Mbytes False 以上输入说明此机器有 512M物理内存3.操作系统版本oslevel4.内核版本uname -a=solaris=1.物理 CPU个数/usr/sbin/prtdiag -vpsrinfo -pv2.物理内存/usr/sbin/prtconf|grep Memory3.操作系统版本cat /etc/release4.内核版本uname -a=H
5、P-UX=# machinfoCPU info:Number of CPUs = 2 /cpu个数Clock speed = 1595 MHzBus speed = 532 MT/sCPUID registersvendor information = “GenuineIntel“processor serial number = 0x0000000000000000processor version info = 0x0000000020000704architecture revision: 0processor family: 32 Intel(R) Itanium 2 9000 ser
6、iesprocessor model: 0 Intel(R) Itanium 2 9000 seriesprocessor revision: 7 Stepping C2largest CPUID reg: 4processor capabilities = 0x0000000000000005implements long branch: 1implements 16-byte atomic operations: 1Bus featuresimplemented = 0xbdf0000020000000selected = 0x0000000000000000Cache info (per
7、 core):L1 Instruction: size = 16 KB, associativity = 4L1 Data: size = 16 KB, associativity = 4L2 Instruction: size = 1024 KB, associativity = 8L2 Data: size = 256 KB, associativity = 8L3 Unified: size = 9216 KB, associativity = 9Memory = 8162 MB (7.970703 GB) /内存Firmware info:Firmware revision = 02.
8、03FP SWA driver revision: 1.18IPMI is supported on this system.BMC version: 5.14Platform info: / 机器信息model string = “ia64 hp server rx3600“machine id number = b55545b0-00b5-11dc-a4fe-cb11e564472bmachine serial number = SGH4715L4AOS info: / 操作系统信息sysname = HP-UXnodename = hpuxcsrelease = B.11.23version = U (unlimited-user license)machine = ia64idnumber = 3042264496=Linux=1.物理 CPU个数cat /proc/cpuinfo |grep “physical id“|sort |uniq|wc -l# grep “model name” /proc/cpuinfo# more /proc/cpuinfo2.物理内存# more /proc/meminfo3.操作系统版本# more /etc/redhat-release 4.内核版本uname -a