zoukankan      html  css  js  c++  java
  • 查看硬件的一些命令

    • 服务器型号
    [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 'Maximums+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,每学到一点东西就写一点,如有不对的地方,恳请包涵!
  • 相关阅读:
    Atitit 趋势管理之道 attilax著
    Atitit 循环处理的新特性 for...else...
    Atitit 2017年的技术趋势与未来的大技术趋势
    atitit 用什么样的维度看问题.docx 如何了解 看待xxx
    atitit prj mnrs 项目中的几种经理角色.docx
    Atitit IT办公场所以及度假村以及网点以及租房点建设之道 attilax总结
    Atitit 工具选型的因素与方法 attilax总结
    Atitit.团队文化建设影响组织的的一些原理 法则 定理 效应 p826.v4
    Atiitt 管理方面的误区总结 attilax总结
    Atitit 未来趋势把控的书籍 attilax总结 v3
  • 原文地址:https://www.cnblogs.com/forlive/p/13554642.html
Copyright © 2011-2022 走看看