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,每学到一点东西就写一点,如有不对的地方,恳请包涵!
  • 相关阅读:
    重温算法第一篇:冒泡排序
    服务器报警邮件发送到QQ邮箱,但是被系统拦截
    记录MongoDB常用查询
    一次 Mysql 字符集的报错,最后让我万马奔腾!!!
    Hbase 一次表异常,有一张表 无法count scan 一直显示重连
    spark编译安装 spark 2.1.0 hadoop2.6.0-cdh5.7.0
    有一些sql 是必须要做笔记的!!
    linux 修改openfiles
    在线HTTP POST/GET接口测试工具
    HBase 官方文档中文版
  • 原文地址:https://www.cnblogs.com/forlive/p/13554642.html
Copyright © 2011-2022 走看看