kali linux view network card _Linux hardware information view (1) - motherboard, memory, network card, CPU

475e52db5759f2b699dc002e8983e9f8.png

1. View server hardware information

(1) Check the server model and serial number

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

0235bf66f98bf2b79c0fe12d2347e8ba.png

(2) Check the motherboard model

[root@Master ~]# dmidecode |grep -A16 "System Information$"

4c45b3d9419576e499b8a2f022255f20.png

(3) View BIOS information

[root@Master ~]# dmidecode -t bios# dmidecode 2.12SMBIOS 2.8 present.Handle 0x0008, DMI type 0, 24 bytesBIOS 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) Check the memory slots and memory sticks

[root@Master ~]# dmidecode -t memory | head -45 | tail -23Memory 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

(4) View network card information

[root@Master ~]# dmesg | grep -i Ethernetigb: Intel(R) Gigabit Ethernet Network Driver - version 5.3.0-kigb 0000:04:00.0: Intel(R) Gigabit Ethernet Network Connectionigb 0000:04:00.1: Intel(R) Gigabit Ethernet Network Connectionigb 0000:04:00.2: Intel(R) Gigabit Ethernet Network Connectionigb 0000:04:00.3: Intel(R) Gigabit Ethernet Network Connectionigb 0000:02:00.0: Intel(R) Gigabit Ethernet Network Connectionigb 0000:02:00.1: Intel(R) Gigabit Ethernet Network Connection

(5) View pci information, that is, all hardware slot information of the motherboard

[root@Master ~]# lspci | head -1000: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)

2. View CPU information

(1) Check the CPU model

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

(2) View the actual number of physical CPUs in the system (physical)

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

(3) The number of actual physical CPUs in the system (number of cores)

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

(4) View the number of cores in each physical CPU (ie, the number of cores)

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

(5) Check the main frequency of the CPU

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

(6) View the detailed information of the CPU

[root@Master ~]# cat /proc/cpuinfo | head -20processor       : 0                           //逻辑处理器的IDvendor_id       : GenuineIntelcpu family      : 6model           : 63model name      : Intel(R) Xeon(R) CPU E5-2650 v3 @ 2.30GHz   //CPU型号stepping        : 2microcode       : 54cpu MHz         : 1200.000cache size      : 25600 KBphysical id     : 0siblings        : 20                //相同物理封装处理器中逻辑处理器数core id         : 0cpu cores       : 10               //相同物理封装处理器中的内核数apicid          : 0initial apicid  : 0fpu             : yesfpu_exception   : yescpuid level     : 15wp              : 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 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) View CPU related information

[root@Master ~]# lscpuArchitecture:          x86_64CPU op-mode(s):        32-bit, 64-bitByte Order:            Little EndianCPU(s):                40On-line CPU(s) list:   0-39Thread(s) per core:    2Core(s) per socket:    10Socket(s):             2NUMA node(s):          2Vendor ID:             GenuineIntelCPU family:            6Model:                 63Model name:            Intel(R) Xeon(R) CPU E5-2650 v3 @ 2.30GHzStepping:              2CPU MHz:               1200.000BogoMIPS:              4594.43Virtualization:        VT-xL1d cache:             32KL1i cache:             32KL2 cache:              256KL3 cache:              25600KNUMA node0 CPU(s):     0-9,20-29NUMA node1 CPU(s):     10-19,30-39[root@Master ~]#

(8) Check the CPU operating mode

[root@Master ~]# getconf LONG_BIT64

(9) Check whether the cpu supports 64bit

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

71cad9313fe280d7c99e11c8e7bf2ee7.png

Well, improve a little bit every day.

All the great gods are derived from Xiaobai's constant accumulation bit by bit, come on, boy.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324326110&siteId=291194637