1. 查看物理CPU的个数
#cat /proc/cpuinfo |grep "physical id"|sort |uniq|wc -l2. 查看逻辑CPU的个数#cat /proc/cpuinfo |grep "processor"|wc -l3. 查看CPU是几核#cat /proc/cpuinfo |grep "cores"|uniq4. 查看CPU的主频#cat /proc/cpuinfo |grep MHz|uniq
#uname -aLinux euis1 2.6.9-55.ELsmp #1 SMP Fri Apr 20 17:03:35 EDT 2007 i686 i686 i386 GNU/Linux(查看当前操作系统内核信息)#cat /etc/issue | grep LinuxRed Hat Enterprise Linux AS release 4 (Nahant Update 5)(查看当前操作系统发行版信息)#cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c8Intel(R) Xeon(R) CPU E5410 @ 2.33GHz(看到有8个逻辑CPU, 也知道了CPU型号)#cat /proc/cpuinfo | grep physical | uniq -c4physical id : 04physical id : 1(说明实际上是两颗4核的CPU)#getconf LONG_BIT32(说明当前CPU运行在32bit模式下, 但不代表CPU不支持64bit)#cat /proc/cpuinfo | grep flags | grep ‘ lm ‘ | wc -l8(结果大于0, 说明支持64bit计算. lm指long mode, 支持lm则是64bit)
DELL/IBM命令
megacli64 -ShowSummary -aALL
查询阵列名称和条带大小 megacli64 -LDInfo -Lall -aALL
查看物理磁盘信息 megacli64 -PDList -aALL
查看RAID充电进度百分比 megacli64 -AdpBbuCmd -GetBbuStatus -aALL |grep "Relative State of Charge"
查看阵列数 megacli64 -cfgdsply -aALL |grep "Number of DISK GROUPS:
时间: 2024-12-28 00:20:20