Query hardware information and linux hardware information in linux

Source: Internet
Author: User
Tags xeon e5

Query hardware information and linux hardware information in linux

1. query cpu-related information

A. query CPU statistics

Command: lscpu

The result is as follows:

  

Architecture:          x86_64CPU op-mode(s):        32-bit, 64-bitByte Order:            Little EndianCPU(s):                12On-line CPU(s) list:   0-11Thread(s) per core:    1Core(s) per socket:    6Socket(s):             2NUMA node(s):          2Vendor ID:             GenuineIntelCPU family:            6Model:                 62Stepping:              4CPU MHz:               2099.939BogoMIPS:              4199.44Virtualization:        VT-xL1d cache:             32KL1i cache:             32KL2 cache:              256KL3 cache:              15360KNUMA node0 CPU(s):     0-5NUMA node1 CPU(s):     6-11

B. query information about each CPU.

Command Used: cat/proc/cpuinfo

The following result is displayed:

processor    : 0vendor_id    : GenuineIntelcpu family    : 6model        : 62model name    : Intel(R) Xeon(R) CPU E5-2620 v2 @ 2.10GHzstepping    : 4cpu MHz        : 2099.939cache size    : 15360 KBphysical id    : 0siblings    : 6core id        : 0cpu cores    : 6apicid        : 0initial apicid    : 0fpu        : yesfpu_exception    : yescpuid level    : 13wp        : yesflags        : 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 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm ida arat epb xsaveopt pln pts dts tpr_shadow vnmi flexpriority ept vpid fsgsbase smep ermsbogomips    : 4199.87clflush size    : 64cache_alignment    : 64address sizes    : 46 bits physical, 48 bits virtualpower management:processor    : 1vendor_id    : GenuineIntelcpu family    : 6model        : 62model name    : Intel(R) Xeon(R) CPU E5-2620 v2 @ 2.10GHzstepping    : 4cpu MHz        : 2099.939cache size    : 15360 KBphysical id    : 0siblings    : 6core id        : 1cpu cores    : 6apicid        : 2initial apicid    : 2fpu        : yesfpu_exception    : yescpuid level    : 13wp        : yesflags        : 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 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm ida arat epb xsaveopt pln pts dts tpr_shadow vnmi flexpriority ept vpid fsgsbase smep ermsbogomips    : 4199.87clflush size    : 64cache_alignment    : 64address sizes    : 46 bits physical, 48 bits virtualpower management:processor    : 2vendor_id    : GenuineIntelcpu family    : 6model        : 62model name    : Intel(R) Xeon(R) CPU E5-2620 v2 @ 2.10GHzstepping    : 4cpu MHz        : 2099.939cache size    : 15360 KBphysical id    : 0siblings    : 6core id        : 2cpu cores    : 6apicid        : 4initial apicid    : 4fpu        : yesfpu_exception    : yescpuid level    : 13wp        : yesflags        : 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 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm ida arat epb xsaveopt pln pts dts tpr_shadow vnmi flexpriority ept vpid fsgsbase smep ermsbogomips    : 4199.87clflush size    : 64cache_alignment    : 64address sizes    : 46 bits physical, 48 bits virtualpower management:

2. query information of all pci devices (pci is a bus, and the devices connected through the pci bus are pci devices. Today, many of our commonly used devices use the pci bus, such as NIC storage)

Command: lspci

Expected result:

0:00.0 Host bridge: Intel Corporation Xeon E5 v2/Core i7 DMI2 (rev 04)00:01.0 PCI bridge: Intel Corporation Xeon E5 v2/Core i7 PCI Express Root Port 1a (rev 04)00:01.1 PCI bridge: Intel Corporation Xeon E5 v2/Core i7 PCI Express Root Port 1b (rev 04)00:02.0 PCI bridge: Intel Corporation Xeon E5 v2/Core i7 PCI Express Root Port 2a (rev 04)00:03.0 PCI bridge: Intel Corporation Xeon E5 v2/Core i7 PCI Express Root Port 3a (rev 04)00:03.2 PCI bridge: Intel Corporation Xeon E5 v2/Core i7 PCI Express Root Port 3c (rev 04)00:04.0 System peripheral: Intel Corporation Xeon E5 v2/Core i7 Crystal Beach DMA Channel 0 (rev 04)00:04.1 System peripheral: Intel Corporation Xeon E5 v2/Core i7 Crystal Beach DMA Channel 1 (rev 04)00:04.2 System peripheral: Intel Corporation Xeon E5 v2/Core i7 Crystal Beach DMA Channel 2 (rev 04)00:04.3 System peripheral: Intel Corporation Xeon E5 v2/Core i7 Crystal Beach DMA Channel 3 (rev 04)00:04.4 System peripheral: Intel Corporation Xeon E5 v2/Core i7 Crystal Beach DMA Channel 4 (rev 04)00:04.5 System peripheral: Intel Corporation Xeon E5 v2/Core i7 Crystal Beach DMA Channel 5 (rev 04)00:04.6 System peripheral: Intel Corporation Xeon E5 v2/Core i7 Crystal Beach DMA Channel 6 (rev 04)00:04.7 System peripheral: Intel Corporation Xeon E5 v2/Core i7 Crystal Beach DMA Channel 7 (rev 04)00:05.0 System peripheral: Intel Corporation Xeon E5 v2/Core i7 VTd/Memory Map/Misc (rev 04)00:05.2 System peripheral: Intel Corporation Xeon E5 v2/Core i7 IIO RAS (rev 04)00:05.4 PIC: Intel Corporation Xeon E5 v2/Core i7 IOAPIC (rev 04)00:11.0 PCI bridge: Intel Corporation C600/X79 series chipset PCI Express Virtual Root Port (rev 06)00:16.0 Communication controller: Intel Corporation C600/X79 series chipset MEI Controller #1 (rev 05)00:16.1 Communication controller: Intel Corporation C600/X79 series chipset MEI Controller #2 (rev 05)00:1a.0 USB controller: Intel Corporation C600/X79 series chipset USB2 Enhanced Host Controller #2 (rev 06)00:1d.0 USB controller: Intel Corporation C600/X79 series chipset USB2 Enhanced Host Controller #1 (rev 06)00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev a6)00:1f.0 ISA bridge: Intel Corporation C600/X79 series chipset LPC Controller (rev 06)00:1f.2 SATA controller: Intel Corporation C600/X79 series chipset 6-Port SATA AHCI Controller (rev 06)00:1f.3 SMBus: Intel Corporation C600/X79 series chipset SMBus Host Controller (rev 06)00:1f.6 Signal processing controller: Intel Corporation C600/X79 series chipset Thermal Management Controller (rev 06)02:00.0 Ethernet controller: Intel Corporation I350 Gigabit Network Connection (rev 01)02:00.1 Ethernet controller: Intel Corporation I350 Gigabit Network Connection (rev 01)06:00.0 Network controller: Mellanox Technologies MT27500 Family [ConnectX-3]08:04.0 VGA compatible controller: Matrox Electronics Systems Ltd. MGA G200eW WPCM450 (rev 0a)

If you want to use lscpi to query the NIC model, run the following command: lspci | grep Ethernet.

Expected result:

02:00.0 Ethernet controller: Intel Corporation I350 Gigabit Network Connection (rev 01)02:00.1 Ethernet controller: Intel Corporation I350 Gigabit Network Connection (rev 01)

3. query memory-related information

A. view the memory size.

Run the following command: free

The overall memory information is as follows:

             total       used       free     shared    buffers     cachedMem:      16364948    1623020   14741928          0     549616     291172-/+ buffers/cache:     782232   15582716Swap:     16383992      81560   16302432

B. View Details

Command: cat/proc/meminfo

Result:

MemTotal:       16364948 kBMemFree:        14742988 kBBuffers:          549660 kBCached:           291340 kBSwapCached:        14724 kBActive:           241052 kBInactive:         646568 kBActive(anon):      32216 kBInactive(anon):    14800 kBActive(file):     208836 kBInactive(file):   631768 kBUnevictable:           0 kBMlocked:               0 kBSwapTotal:      16383992 kBSwapFree:       16302432 kBDirty:                 0 kBWriteback:             0 kBAnonPages:         38996 kBMapped:            13080 kBShmem:               388 kBSlab:             340196 kBSReclaimable:     210436 kBSUnreclaim:       129760 kBKernelStack:        4744 kBPageTables:        12496 kBNFS_Unstable:          0 kBBounce:                0 kBWritebackTmp:          0 kBCommitLimit:    24566464 kBCommitted_AS:     553868 kBVmallocTotal:   34359738367 kBVmallocUsed:      429696 kBVmallocChunk:   34349265164 kBHardwareCorrupted:     0 kBAnonHugePages:      8192 kBHugePages_Total:       0HugePages_Free:        0HugePages_Rsvd:        0HugePages_Surp:        0Hugepagesize:       2048 kBDirectMap4k:        4868 kBDirectMap2M:     2058240 kBDirectMap1G:    14680064 kB

4. view system kernel information

Run the uname-a command.

Result:

Linux cn13 2.6.32-431.el6.x86_64 #1 SMP Sun Nov 10 22:19:54 EST 2013 x86_64 x86_64 x86_64 GNU/Linux

View System Version

Run cat/etc/issue

Result:

Red Hat Enterprise Linux Server release 6.5 (Santiago)

5. Use dmindecode to view hardware information

View Server Model
Dmidecode | grep 'product name'
View the motherboard serial number
Dmidecode | grep 'serial number'
View system serial number
Dmidecode-s systems-serial-number
View memory information
Dmidecode-t memory
View oem Information
Dmidecode-t 11

** 6. Use ibstat to view infiniband Nic information:

Result:

CA 'mlx4_0'    CA type: MT4099    Number of ports: 1    Firmware version: 2.30.8000    Hardware version: 0    Node GUID: 0x002590fffff7761c    System image GUID: 0x002590fffff7761f    Port 1:        State: Active        Physical state: LinkUp        Rate: 40        Base lid: 85        LMC: 0        SM lid: 229        Capability mask: 0x02514868        Port GUID: 0x002590fffff7761d        Link layer: InfiniBand

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.