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,每学到一点东西就写一点,如有不对的地方,恳请包涵!
  • 相关阅读:
    React Native ios打包
    ReactNative state更新,视图不更新的问题
    XF警告试图
    XF 彩色矩形块
    XF 定制图片
    XF 通过判断平台加载不同的图片
    XF 进度条和指示器
    XF 滑块和步进控件
    XF 开关控件
    XF 按钮控件
  • 原文地址:https://www.cnblogs.com/forlive/p/13554642.html
Copyright © 2011-2022 走看看