查看主机信息

# dmidecode|grep "System Information" -A9
System Information
    Manufacturer: Supermicro
    Product Name: X10DRi
    Version: 123456789
    Serial Number: 123456789
    UUID: 00000000-0000-0000-0000-0CC47ADB6A38
    Wake-up Type: Power Switch
    SKU Number: 072815D9
    Family: SMC X10

查看CPU信息

CPU型号

# cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
     40  Intel(R) Xeon(R) CPU E5-2630 v4 @ 2.20GHz

物理核数

# grep 'physical id' /proc/cpuinfo | sort | uniq | wc -l
2

另外的方式

# lscpu
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                40
On-line CPU(s) list:   0-39
Thread(s) per core:    2
Core(s) per socket:    10
座:                 2
NUMA 节点:         2
厂商 ID:           GenuineIntel
CPU 系列:          6
型号:              79
型号名称:        Intel(R) Xeon(R) CPU E5-2630 v4 @ 2.20GHz
步进:              1
CPU MHz:             2404.617
BogoMIPS:            4405.61
虚拟化:           VT-x
L1d 缓存:          32K
L1i 缓存:          32K
L2 缓存:           256K
L3 缓存:           25600K
NUMA 节点0 CPU:    0-9,20-29
NUMA 节点1 CPU:    10-19,30-39

查看内存信息

dmidecode可以看到大部分硬件信息

dmidecode

查看最大支持多少内存

# dmidecode|grep -P 'Maximum\s+Capacity'
    Maximum Capacity: 512 GB
    Maximum Capacity: 512 GB

查看内存插槽使用情况

# dmidecode | grep -A5 "Memory Device" | grep Size | grep -v Range
    Size: 32 GB
    Size: No Module Installed
    Size: 32 GB
    Size: No Module Installed
    Size: 32 GB
    Size: No Module Installed
    Size: 32 GB
    Size: No Module Installed
    Size: 32 GB
    Size: No Module Installed
    Size: 32 GB
    Size: No Module Installed
    Size: 32 GB
    Size: No Module Installed
    Size: 32 GB
    Size: No Module Installed

查看磁盘信息

# lsscsi
[0:0:0:0]    disk    ATA      INTEL SSDSC2BB15 0101  -        
[0:0:1:0]    disk    ATA      INTEL SSDSC2BB15 0101  -        
[0:0:2:0]    disk    ATA      INTEL SSDSC2BB48 0150  /dev/sdb 
[0:0:3:0]    disk    ATA      INTEL SSDSC2BB48 0150  /dev/sdc 
[0:0:4:0]    disk    ATA      ST2000NM0008-2F3 SN01  /dev/sdd 
[0:0:5:0]    disk    ATA      ST2000NM0008-2F3 SN01  /dev/sde 
[0:0:6:0]    disk    ATA      ST2000NM0008-2F3 SN01  /dev/sdf 
[0:0:7:0]    disk    ATA      ST2000NM0008-2F3 SN01  /dev/sdg 
[0:0:8:0]    disk    ATA      HGST HUS726020AL T7JM  /dev/sdh 
[0:0:9:0]    enclosu LSI      SAS2X36          0e12  -        
[0:1:0:0]    disk    LSI      Logical Volume   3000  /dev/sda 

查看磁盘详细信息

# smartctl -i /dev/sda

查看RAID磁盘详细信息

# smartctl -a -d megaraid,0 /dev/sda

[ 编辑 | 历史 ]
最近由“jilili”在“2021-07-17 05:37:57”修改