Chinaunix首页 | 论坛 | 博客
  • 博客访问: 35285
  • 博文数量: 11
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 115
  • 用 户 组: 普通用户
  • 注册时间: 2020-07-02 11:22
文章分类

全部博文(11)

分类: 服务器与存储

2020-07-30 17:40:04

一、查看服务器硬件信息

(1)查看服务器型号、序列号

[root@Master ~]# dmidecode|grep "System Information" -A9|egrep  "Manufacturer|Product|Serial"

 (2)查看主板型号
[root@Master ~]# dmidecode |grep -A16 "System Information$"

 (3)查看BIOS信息

复制代码
[root@Master ~]# dmidecode -t bios
# dmidecode 2.12 SMBIOS 2.8 present.

Handle 0x0008, DMI type 0, 24 bytes
BIOS Information
        Vendor: HP
        Version: U19
        Release Date: 12/27/2015 Address: 0xF0000 Runtime Size: 64 kB
        ROM Size: 16384 kB
        Characteristics:
                PCI is supported
                PNP is supported
                BIOS is upgradeable
                BIOS shadowing is allowed
                ESCD support is available
                Boot from CD is supported
                Selectable boot is supported
                EDD is supported 5.25"/360 kB floppy services are supported (int 13h) 5.25"/1.2 MB floppy services are supported (int 13h) 3.5"/720 kB floppy services are supported (int 13h) Print screen service is supported (int 5h) 8042 keyboard services are supported (int 9h)
                Serial services are supported (int 14h)
                Printer services are supported (int 17h)
                CGA/mono video services are supported (int 10h)
                ACPI is supported
                USB legacy is supported
                BIOS boot specification is supported
                Function key-initiated network boot is supported
                Targeted content distribution is supported
                UEFI is supported
        BIOS Revision: 2.0 Firmware Revision: 2.40
复制代码

  (3)查看内存槽及内存条

复制代码
[root@Master ~]# dmidecode -t memory | head -45 | tail -23 Memory Device
        Array Handle: 0x000A Error Information Handle: Not Provided
        Total Width: 72 bits
        Data Width: 64 bits
        Size: 16384 MB
        Form Factor: DIMM
        Set: None
        Locator: PROC 1 DIMM 1 Bank Locator: Not Specified
        Type: DDR4
        Type Detail: Synchronous Registered (Buffered)
        Speed: 2133 MHz
        Manufacturer: HP     
        Serial Number: Not Specified
        Asset Tag: Not Specified
        Part Number: 752369-081 Rank: 2 Configured Clock Speed: 2133 MHz
        Minimum Voltage: 1.2 V
        Maximum Voltage: 1.2 V
        Configured Voltage: 1.2 V

[root@Master ~]#
复制代码

  (4)查看网卡信息

复制代码
[root@Master ~]# dmesg | grep -i Ethernet
igb: Intel(R) Gigabit Ethernet Network Driver - version 5.3.0-k
igb 0000:04:00.0: Intel(R) Gigabit Ethernet Network Connection
igb 0000:04:00.1: Intel(R) Gigabit Ethernet Network Connection
igb 0000:04:00.2: Intel(R) Gigabit Ethernet Network Connection
igb 0000:04:00.3: Intel(R) Gigabit Ethernet Network Connection
igb 0000:02:00.0: Intel(R) Gigabit Ethernet Network Connection
igb 0000:02:00.1: Intel(R) Gigabit Ethernet Network Connection 
复制代码

(5) 查看pci信息,即主板所有硬件槽信息

复制代码
[root@Master ~]# lspci | head -10 00:00.0 Host bridge: Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 DMI2 (rev 02) 00:01.0 PCI bridge: Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 PCI Express Root Port 1 (rev 02) 00:01.1 PCI bridge: Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 PCI Express Root Port 1 (rev 02) 00:02.0 PCI bridge: Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 PCI Express Root Port 2 (rev 02) 00:02.1 PCI bridge: Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 PCI Express Root Port 2 (rev 02) 00:02.2 PCI bridge: Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 PCI Express Root Port 2 (rev 02) 00:02.3 PCI bridge: Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 PCI Express Root Port 2 (rev 02) 00:03.0 PCI bridge: Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 PCI Express Root Port 3 (rev 02) 00:03.1 PCI bridge: Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 PCI Express Root Port 3 (rev 02) 00:03.2 PCI bridge: Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 PCI Express Root Port 3 (rev 02)
复制代码


、查看CPU信息

(1)查看cpu型号

[root@Master ~]# cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c 40 Intel(R) Xeon(R) CPU E5-2650 v3 @ 2.30GHz

(2)查看系统中实际物理CPU的数量(物理)

[root@Master ~]# grep 'physical id' /proc/cpuinfo | sort | uniq | wc -l 2

(3)系统中实际物理CPU的数量(核数)

[root@Master ~]# cat /proc/cpuinfo |grep 'processor'|wc -l 40

 (4)查看每个物理CPU中core的个数(即核数)

[root@Master ~]# cat /proc/cpuinfo |grep "cores"|uniq cpu cores       : 10

(5)查看CPU的主频

[root@Master ~]# cat /proc/cpuinfo |grep MHz|uniq cpu MHz         : 1200.000 cpu MHz         : 2300.000 cpu MHz         : 1200.000

(6)查看CPU的详细信息

复制代码
[root@Master ~]# cat /proc/cpuinfo | head -20 processor       : 0  //逻辑处理器的ID vendor_id       : GenuineIntel
cpu family      : 6 model           : 63 model name      : Intel(R) Xeon(R) CPU E5-2650 v3 @ 2.30GHz //CPU型号 stepping        : 2 microcode       : 54 cpu MHz         : 1200.000 cache size      : 25600 KB
physical id : 0 siblings        : 20 //相同物理封装处理器中逻辑处理器数 core id : 0 cpu cores       : 10  //相同物理封装处理器中的内核数 apicid          : 0 initial apicid  : 0 fpu             : yes
fpu_exception   : yes
cpuid level     : 15 wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase bmi1 avx2 smep bmi2 erms invpcid cqm cqm_llc cqm_occup_llc
复制代码

 (7)查看CPU的相关信息

复制代码
[root@Master ~]# lscpu
Architecture:          x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order:            Little Endian
CPU(s): 40 On-line CPU(s) list: 0-39 Thread(s) per core: 2 Core(s) per socket: 10 Socket(s): 2 NUMA node(s): 2 Vendor ID:             GenuineIntel
CPU family: 6 Model: 63 Model name:            Intel(R) Xeon(R) CPU E5-2650 v3 @ 2.30GHz
Stepping: 2 CPU MHz: 1200.000 BogoMIPS: 4594.43 Virtualization:        VT-x
L1d cache:             32K
L1i cache:             32K
L2 cache:              256K
L3 cache:              25600K
NUMA node0 CPU(s): 0-9,20-29 NUMA node1 CPU(s): 10-19,30-39 [root@Master ~]# 
复制代码

 (8)查看cpu运行模式

[root@Master ~]# getconf LONG_BIT 64

 (9)查看cpu是否支持64bit

[root@Master ~]# cat /proc/cpuinfo | grep flags | grep ' lm ' | wc -l 40 (结果大于0, 说明支持64bit计算. lm指long mode, 支持lm则是64bit)


阅读(1967) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~