dmidecode收集硬件信息命令

dmidecode

dmidecode 使用 SMBIOS/DMI 標準,在Linux下收集相關硬件信息

獲取CPU型號

]# dmidecode -t processor | grep Version | head -n 1
    Version: Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz

獲取服務器型號

]# dmidecode | grep 'Product Name'
    Product Name: VMware Virtual Platform
    Product Name: 440BX Desktop Reference Platform

獲取主機序列號

]# dmidecode -s system-serial-number
VMware-56 4d 83 35 b6 1a ca 95-e6 c4 c9 f3 b6 e8 69 cd

查看內存的彙總信息

]# dmidecode|grep -P -A5 "Memory\s+Device"|grep Size|grep -v Range | grep -v "No Module Installed"
    Size: 2048 MB

查看主板支持的最大內存

]# dmidecode|grep 'Maximum Capacity'
    Maximum Capacity: 1 TB

Linux系統查看內存規格信息

]# dmidecode|grep -A16 'Memory Device'|grep 'Speed'
Speed: 1333 MHz
Speed: 1333 MHz
Speed: 1333 MHz
Speed: 1333 MHz

查看CPU信息

]# lscpu 
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                2
On-line CPU(s) list:   0,1
Thread(s) per core:    1
Core(s) per socket:    2
座:                 1
NUMA 節點:         1
廠商 ID:           GenuineIntel
CPU 系列:          6
型號:              60
型號名稱:        Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz
步進:              3
CPU MHz:             3597.915
BogoMIPS:            7195.83
超管理器廠商:  VMware
虛擬化類型:     完全
L1d 緩存:          32K
L1i 緩存:          32K
L2 緩存:           256K
L3 緩存:           8192K
NUMA 節點0 CPU:    0,1
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章