查看硬件的一些命令

  • 服务器型号
1
2
3
4
5
6
[root@121 ~]# dmidecode |grep -A4 'System Information'
System Information
    Manufacturer: Dell Inc.
    Product Name: PowerEdge R430
    Version: Not Specified
    Serial Number: 5LS8GM2
  • 服务器SN
1
2
3
4
[root@121 ~]# dmidecode|grep "System Information" -A9|egrep  "Manufacturer|Product|Serial"
    Manufacturer: Dell Inc.
    Product Name: PowerEdge R430
    Serial Number: XXXXXX
  • 主板型号
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[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型号
1
2
[root@121 ~]# cat /proc/cpuinfo | grep "model name" | uniq
model name  : Intel(R) Xeon(R) CPU E5-2603 v4 @ 1.70GHz
  • 物理CPU个数
1
2
[root@121 ~]# cat /proc/cpuinfo | grep "physical id" | uniq | wc -l
1
  • 逻辑CPU个数
1
2
[root@121 ~]# cat /proc/cpuinfo| grep "processor"| wc -l
6    
  • CPU核心数
1
2
[root@121 ~]# cat /proc/cpuinfo| grep "cpu cores"| uniq
cpu cores   : 6
  • 内存厂家
1
2
3
4
5
6
7
8
9
10
11
12
13
[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
  • 内存槽数和已有内存
1
2
3
4
5
6
7
8
9
10
11
12
13
[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
  • 最大支持内存
1
2
[root@121 ~]# dmidecode|grep -P 'Maximum\s+Capacity'
    Maximum Capacity: 1536 GB
  • 内存频率
1
2
3
4
5
6
7
8
9
10
11
12
13
[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

  

 

posted @   ForLivetoLearn  阅读(996)  评论(0编辑  收藏  举报
编辑推荐:
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
阅读排行:
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· C#/.NET/.NET Core优秀项目和框架2025年2月简报
· DeepSeek在M芯片Mac上本地化部署
· 葡萄城 AI 搜索升级:DeepSeek 加持,客户体验更智能
点击右上角即可分享
微信分享提示