查看硬件的一些命令
- 服务器型号
[root@121 ~]# dmidecode |grep -A4 'System Information' System Information Manufacturer: Dell Inc. Product Name: PowerEdge R430 Version: Not Specified Serial Number: 5LS8GM2
- 服务器SN
[root@121 ~]# dmidecode|grep "System Information" -A9|egrep "Manufacturer|Product|Serial" Manufacturer: Dell Inc. Product Name: PowerEdge R430 Serial Number: XXXXXX
- 主板型号
[root@121 ~]# dmidecode |grep -A16 "System Information$" System Information Manufacturer: Dell Inc. Product Name: PowerEdge R430 Version: Not Specified Serial Number: 5LS8GM2 UUID: 4c4c4544-004c-5310-8038-b5c04f474d32 Wake-up Type: Power Switch SKU Number: SKU=NotProvided;ModelName=PowerEdge R430 Family: Not Specified Handle 0x0200, DMI type 2, 8 bytes Base Board Information Manufacturer: Dell Inc. Product Name: 0CN7X8 Version: A05 Serial Number: .5LS8GM2.CNFCP0079J02NQ.
- CPU型号
[root@121 ~]# cat /proc/cpuinfo | grep "model name" | uniq model name : Intel(R) Xeon(R) CPU E5-2603 v4 @ 1.70GHz
- 物理CPU个数
[root@121 ~]# cat /proc/cpuinfo | grep "physical id" | uniq | wc -l 1
- 逻辑CPU个数
[root@121 ~]# cat /proc/cpuinfo| grep "processor"| wc -l 6
- CPU核心数
[root@121 ~]# cat /proc/cpuinfo| grep "cpu cores"| uniq cpu cores : 6
- 内存厂家
[root@121 ~]# dmidecode -t memory | grep Manufacturer Manufacturer: 00AD00B300AD Manufacturer: 00AD063200AD Manufacturer: 00AD00B300AD Manufacturer: 00AD00B300AD Manufacturer: Not Specified Manufacturer: Not Specified Manufacturer: Not Specified Manufacturer: Not Specified Manufacturer: Not Specified Manufacturer: Not Specified Manufacturer: Not Specified Manufacturer: Not Specified
- 内存槽数和已有内存
[root@121 ~]# dmidecode -t memory | grep Size Size: 8192 MB Size: 8192 MB Size: 8192 MB Size: 8192 MB Size: No Module Installed Size: No Module Installed Size: No Module Installed Size: No Module Installed Size: No Module Installed Size: No Module Installed Size: No Module Installed Size: No Module Installed
- 最大支持内存
[root@121 ~]# dmidecode|grep -P 'Maximum\s+Capacity' Maximum Capacity: 1536 GB
- 内存频率
[root@121 ~]# dmidecode|grep -A16 "Memory Device"|grep 'Speed' Speed: 2400 MT/s Speed: 2400 MT/s Speed: 2133 MT/s Speed: 2133 MT/s Speed: Unknown Speed: Unknown Speed: Unknown Speed: Unknown Speed: Unknown Speed: Unknown Speed: Unknown Speed: Unknown
初学linux,每学到一点东西就写一点,如有不对的地方,恳请包涵!