查看服务器芯片组型号,linux查看硬件信息命令

在使用Linux系统的时候,我们有时候需要查看服务器硬件相关信息,接下来吾爱编程为大家详细的介绍一下linux查看硬件信息命令,有需要的小伙伴可以参考一下:

f35c1a86c08be340fc15e4ac8856cf5d.png

1、查看服务器硬件信息

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

[[email protected] ~]# dmidecode|grep "System Information" -A9|egrep  "Manufacturer|Product|Serial"

Manufacturer: VMware, Inc.

Product Name: VMware Virtual Platform

Serial Number: VMware-56 4d d3 e0 c1 fe 00 9c-05 a5 96 0d f7 45 c5 04

(2)、查看主板型号

[[email protected] ~]# dmidecode |grep -A16 "System Information$"

3ebbf295b8f602e466b69189fa49507c.png

(3)、查看BIOS信息

[[email protected] ~]# dmidecode -t bios

# dmidecode 3.0

Getting SMBIOS data from sysfs.

SMBIOS 2.7 present.

Handle 0x0000, DMI type 0, 24 bytes

BIOS Information

Vendor: Phoenix Technologies LTD

Version: 6.00

Release Date: 07/03/2018

Address: 0xEA520

Runtime Size: 88800 bytes

ROM Size: 64 kB

Characteristics:

ISA is supported

PCI is supported

PC Card (PCMCIA) is supported

PNP is supported

APM 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

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

Smart battery is supported

BIOS boot specification is supported

Function key-initiated network boot is supported

Targeted content distribution is supported

BIOS Revision: 4.6

Firmware Revision: 0.0

(4)、查看内存槽及内存条

8a2830e39a135500136feb0830d79a0a.png

(5)、查看网卡信息:

[[email protected] ~]# dmesg | grep -i Ethernet

[    3.911619] xen_netfront: Initialising Xen virtual ethernet driver

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

ddd1455c36d6d35e00ceefefa82ebc69.png

2、查看CPU信息

(1)、查看cpu型号:

[[email protected] ~]# cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c

2  Intel(R) Core(TM) i3-7100 CPU @ 3.90GHz

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

[[email protected] ~]# grep 'physical id' /proc/cpuinfo | sort | uniq | wc -l

2

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

[[email protected] ~]# cat /proc/cpuinfo |grep 'processor'|wc -l

4

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

[[email protected] ~]# cat /proc/cpuinfo |grep "cores"|uniq

cpu cores    : 1

(5)、查看CPU的主频

[[email protected] ~]# cat /proc/cpuinfo |grep MHz|uniq

cpu MHz        : 3912.000

(6)、查看CPU的详细信息

[[email protected] ~]# cat /proc/cpuinfo |grep MHz|uniq

cpu MHz        : 3912.000

[[email protected] ~]# cat /proc/cpuinfo | head -20

processor    : 0

vendor_id    : GenuineIntel

cpu family    : 6

model        : 158

model name    : Intel(R) Core(TM) i3-7100 CPU @ 3.90GHz

stepping    : 9

microcode    : 0x8e

cpu MHz        : 3912.000

cache size    : 3072 KB

physical id    : 0

siblings    : 1

core id        : 0

cpu cores    : 1

apicid        : 0

initial apicid    : 0

fpu        : yes

fpu_exception    : yes

cpuid level    : 22

wp        : yes

flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon nopl xtopology tsc_reliable nonstop_tsc eagerfpu pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch fsgsbase tsc_adjust bmi1 avx2 smep bmi2 invpcid mpx rdseed adx smap clflushopt xsaveopt xsavec ibpb ibrs stibp arat spec_ctrl intel_stibp arch_capabilities

(7)、查看CPU的相关信息

[[email protected] ~]# lscpu

Architecture:          x86_64

CPU op-mode(s):        32-bit, 64-bit

Byte Order:            Little Endian

CPU(s):                2

On-line CPU(s) list:   0,1

Thread(s) per core:    1

Core(s) per socket:    1

座:                 2

NUMA 节点:         1

厂商 ID:           GenuineIntel

CPU 系列:          6

型号:              158

型号名称:        Intel(R) Core(TM) i3-7100 CPU @ 3.90GHz

步进:              9

CPU MHz:             3912.000

BogoMIPS:            7824.00

超管理器厂商:  VMware

虚拟化类型:     完全

L1d 缓存:          32K

L1i 缓存:          32K

L2 缓存:           256K

L3 缓存:           3072K

NUMA 节点0 CPU:    0,1

Flags:                 fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon nopl xtopology tsc_reliable nonstop_tsc eagerfpu pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch fsgsbase tsc_adjust bmi1 avx2 smep bmi2 invpcid mpx rdseed adx smap clflushopt xsaveopt xsavec ibpb ibrs stibp arat spec_ctrl intel_stibp arch_capabilities

(8)、查看cpu运行模式

[[email protected] ~]# getconf LONG_BIT

64

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

[[email protected] ~]# cat /proc/cpuinfo | grep flags | grep ' lm ' | wc -l

2

(结果大于0, 说明支持64bit计算. lm指long mode, 支持lm则是64bit)

3、查看内存信息

(1)、最大支持多少内存

[[email protected] ~]# dmidecode|grep -P 'Maximum\s+Capacity'

Maximum Capacity: 2 GB

(2)、Linux 查看内存的插槽数,已经使用多少插槽.每条内存多大

bb5a63b40df18850646d5d4b81989686.png

(3)、Linux 查看内存的频率:

9c3079d69eae5fc8764ce5c0222363c9.png

(4)、Linux 查看内存的详细信息:

08bfdbfb5ed467947c2a540998882cc5.png

(5)、Linux 查看内存的使用情况

[[email protected] ~]# free -m

total        used        free      shared  buff/cache   available

Mem:           1838         427         669          21         741        1192

Swap:          3999         420        3579

4、查看硬盘信息

(1)、查看挂接的分区状态

[[email protected] ~]# fdisk -l |grep Disk

Disk /dev/xvda: 21.5 GB, 21474836480 bytes, 41943040 sectors

Disk label type: dos

Disk identifier: 0x000c54c1

Disk /dev/xvdb: 32.2 GB, 32212254720 bytes, 62914560 sectors

Disk label type: dos

Disk identifier: 0x3588ad2f

(2)、查看硬盘和分区分布:

91f114b546b30131ccab0e60a85a4c5a.png

(3)、查看硬盘和分区的详细信息

44671ce81f1e5163dc1ab5bd191a7879.png

(4)、查看挂接的分区状态

062aa5838f6a94822c45d5922321ebb7.png

(5)、查看挂接的分区状态

[[email protected] ~]# swapon -s

文件名                类型        大小    已用    权限

/dev/dm-1                                  partition    4095996    430336    -1

(6)、查看硬盘使用情况

21147b321a403cc617f5daa8c7d25c76.png

(7)、硬盘检测命令smartctl

smartctl -a /dev/sda

5、查看网卡信息

(1)、查看网卡硬件信息

[[email protected] ~]# lspci | grep -i 'eth'

05:00.0 Ethernet controller: Intel Corporation 82576 Gigabit Network Connection (rev 01)

05:00.1 Ethernet controller: Intel Corporation 82576 Gigabit Network Connection (rev 01)

(2)、查看系统的所有网络接口

[[email protected] ~]# ifconfig -a

[[email protected] ~]# ip link show

(3)、查看某个网络接口的详细信息,例如eth0的详细参数和指标

[[email protected] ~]# ethtool eth0

Settings for eth0:

Link detected: yes

(4)、查看所有网卡的链路状态

[[email protected] ~]# for i in `seq 0 9`;do ethtool eth${i} | egrep 'eth|Link';done

Cannot get device settings: No such device

Cannot get wake-on-lan settings: No such device

Cannot get message level: No such device

Cannot get link status: No such device

Settings for eth0:

Cannot get device settings: No such device

Cannot get wake-on-lan settings: No such device

Cannot get message level: No such device

Cannot get link status: No such device

Settings for eth1:

Cannot get device settings: No such device

Cannot get wake-on-lan settings: No such device

Cannot get message level: No such device

Cannot get link status: No such device

Settings for eth2:

Cannot get device settings: No such device

Cannot get wake-on-lan settings: No such device

Cannot get message level: No such device

Cannot get link status: No such device

Settings for eth3:

Cannot get device settings: No such device

Cannot get wake-on-lan settings: No such device

Cannot get message level: No such device

Cannot get link status: No such device

Settings for eth4:

Cannot get device settings: No such device

Cannot get wake-on-lan settings: No such device

Cannot get message level: No such device

Cannot get link status: No such device

Settings for eth5:

Cannot get device settings: No such device

Cannot get wake-on-lan settings: No such device

Cannot get message level: No such device

Cannot get link status: No such device

Settings for eth6:

Cannot get device settings: No such device

Cannot get wake-on-lan settings: No such device

Cannot get message level: No such device

Cannot get link status: No such device

Settings for eth7:

Cannot get device settings: No such device

Cannot get wake-on-lan settings: No such device

Cannot get message level: No such device

Cannot get link status: No such device

Settings for eth8:

Cannot get device settings: No such device

Cannot get wake-on-lan settings: No such device

Cannot get message level: No such device

Cannot get link status: No such device

Settings for eth9:

6、列出所有PCI设备信息:

[[email protected] ~]# lspci -tv | more

-[0000:00]-+-00.0  Intel Corporation 440FX - 82441FX PMC [Natoma]

+-01.0  Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]

+-01.1  Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]

+-01.2  Intel Corporation 82371SB PIIX3 USB [Natoma/Triton II]

+-01.3  Intel Corporation 82371AB/EB/MB PIIX4 ACPI

+-02.0  Cirrus Logic GD 5446

+-03.0  Red Hat, Inc. Virtio network device

+-04.0  Red Hat, Inc. Virtio console

+-05.0  Red Hat, Inc. Virtio block device

\-06.0  Red Hat, Inc. Virtio memory balloon

以上就是吾爱编程为大家介绍的关于Linux查看硬件信息命令的全部内容了,希望对大家有所帮助,了解更多相关文章请关注吾爱编程网!

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值