返回顶部
首页 > 资讯 > 操作系统 >Linux查看服务器硬件信息的方法步骤
  • 860
分享到

Linux查看服务器硬件信息的方法步骤

Linux服务器硬件Linux查看硬件信息 2022-06-04 23:06:15 860人浏览 安东尼
摘要

Hi,大家好;今天是双12,大家剁手了没。今天给大家带来的是《linux查看服务器上的硬件信息》本篇文章的示例全部是在服务器(Inspur SA5112M4)上实现的,有些命令在虚拟机上达不到效果 查看服务器型号、序列

Hi,大家好;今天是双12,大家剁手了没。今天给大家带来的是《linux查看服务器上的硬件信息》本篇文章的示例全部是在服务器(Inspur SA5112M4)上实现的,有些命令在虚拟机上达不到效果

查看服务器型号、序列号


root@zhangdaifu# dmidecode -s system-serial-number
root@zhangdaifu# dmidecode -t system | grep -i 'serial number'
   Serial Number: 818123456
root@zhangdaifu# dmidecode -t system | grep -i 'System infORMation' -A9 | egrep -i 'manufacturer|product|sial'
  Manufacturer: Inspur
  Product Name: SA5112M4

查看主板型号


root@zhangdaifu# dmidecode | grep -i -A16 'System information$'
System Information
  Manufacturer: Inspur
  Product Name: SA5112M4
  Version: 01
  Serial Number: 818123456
  UUID: 7A61462A-D45E-11E8-8FB4-013865DCAE00
  Wake-up Type: Power Switch
  SKU Number: Default string
  Family: Default string

Handle 0x0002, DMI type 2, 15 bytes
Base Board Information
  Manufacturer: Inspur
  Product Name: YZMB-00370-102
  Version: SA5112M4
  Serial Number: MBJ824S20187B70
  Asset Tag: 818123456

查看BIOS信息


root@zhangdaifu# dmidecode 3.0
Getting SMBiOS data from sysfs.
SMBIOS 3.0 present.

Handle 0x0000, DMI type 0, 24 bytes
BIOS Information
  Vendor: American Megatrends Inc.
  Version: 4.1.16
  Release Date: 06/21/2018
  Address: 0xF0000
  Runtime Size: 64 kB
  ROM Size: 8192 kB
  Characteristics:
   PCI is supported
 

OMVXNJhMz

;  BIOS is upgradeable    BIOS shadowing is allowed    Boot from CD is supported    Selectable boot is supported    BIOS ROM is Socketed    EDD is supported    5.25"/1.2 MB floppy services are supported (int 13h)    3.5"/720 kB floppy services are supported (int 13h)    3.5"/2.88 MB floppy services are supported (int 13h)    Print screen service is supported (int 5h)    Serial services are supported (int 14h)    Printer services are supported (int 17h)    ACPI is supported    USB legacy is supported    BIOS boot specification is supported    Targeted content distribution is supported    UEFI is supported   BIOS Revision: 5.6 Handle 0x006F, DMI type 13, 22 bytes BIOS Language Information   Language Description Format: Long   Installable Languages: 1    en|US|iso8859-1   Currently Installed Language: en|US|iso8859-1

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


root@zhangdaifu# lspci | head -10
00:00.0 Host bridge: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon D DMI2 (rev 01)
00:01.0 PCI bridge: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon D PCI Express Root Port 1 (rev 01)
00:01.1 PCI bridge: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon D PCI Express Root Port 1 (rev 01)
00:02.0 PCI bridge: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon D PCI Express Root Port 2 (rev 01)
00:02.2 PCI bridge: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon D PCI Express Root Port 2 (rev 01)
00:03.0 PCI bridge: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon D PCI Express Root Port 3 (rev 01)
00:03.2 PCI bridge: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon D PCI Express Root Port 3 (rev 01)
00:04.0 System peripheral: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon D Crystal Beach DMA Channel 0 (rev 01)
00:04.1 System peripheral: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon D Crystal Beach DMA Channel 1 (rev 01)
00:04.2 System peripheral: Intel Corporation Xeon E7 v4/Xeon E5 v4/Xeon E3 v4/Xeon D Crystal Beach DMA Channel 2 (rev 01)

查看cpu型号


root@zhangdaifu# grep name /proc/cpuinfo | cut -f2 -d: | uniq -c
  56 Intel(R) Xeon(R) CPU E5-2680 v4 @ 2.40GHz

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


root@zhangdaifu# grep 'physical id' /proc/cpuinfo | sort | uniq | wc -l
2

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


root@zhangdaifu# grep 'processor' /proc/cpuinfo | wc -l
56

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


root@zhangdaifu# grep "cores" /proc/cpuinfo | uniq
cpu cores : 14

查看CPU的主频


root@zhangdaifu# grep -i MHz /proc/cpuinfo | uniq
cpu MHz : 2899.781
cpu MHz : 2900.156
cpu MHz : 2899.593
cpu MHz : 2899.687
cpu MHz : 2900.156
cpu MHz : 2899.968
cpu MHz : 2900.156
cpu MHz : 2899.875
cpu MHz : 2899.968
cpu MHz : 2899.781
cpu MHz : 2899.968
cpu MHz : 2899.781
cpu MHz : 2899.968
cpu MHz : 2899.781
cpu MHz : 2899.875
cpu MHz : 2899.968
cpu MHz : 2899.875
cpu MHz : 2899.781
cpu MHz : 2901.281
cpu MHz : 2900.062
cpu MHz : 2899.968
cpu MHz : 2898.187
cpu MHz : 2901.187
cpu MHz : 2900.156
cpu MHz : 2899.781
cpu MHz : 2899.687
cpu MHz : 2899.968
cpu MHz : 2899.687
cpu MHz : 2899.968
cpu MHz : 2900.156
cpu MHz : 2899.968
cpu MHz : 2900.250
cpu MHz : 2899.968
cpu MHz : 2899.875
cpu MHz : 2899.968
cpu MHz : 2899.875
cpu MHz : 2899.218
cpu MHz : 2899.687
cpu MHz : 2900.812
cpu MHz : 2899.687
cpu MHz : 2899.875
cpu MHz : 2899.968
cpu MHz : 2899.218
cpu MHz : 2900.812
cpu MHz : 2899.968
cpu MHz : 2899.593
cpu MHz : 2899.781

查看CPU的详细信息


root@zhangdaifu# head -26 /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 79
model name : Intel(R) Xeon(R) CPU E5-2680 v4 @ 2.40GHz
stepping : 1
microcode : 0xb00002e
cpu MHz : 2899.781
cache size : 35840 KB
physical id : 0
siblings : 28
core id : 0
cpu cores : 14
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 20
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 nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 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 3Dnowprefetch epb cat_l3 cdp_l3 intel_pt tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm cqm rdt_a rdseed adx smap xsaveopt cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local dtherm ida arat pln pts
bogomips : 4788.94
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:

AND


root@zhangdaifu# lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 56
On-line CPU(s) list: 0-55
Thread(s) per core: 2
Core(s) per socket: 14
Socket(s): 2
NUMA node(s): 2
Vendor ID: GenuineIntel
CPU family: 6
Model: 79
Model name: Intel(R) Xeon(R) CPU E5-2680 v4 @ 2.40GHz
Stepping: 1
CPU MHz: 2900.062
CPU max MHz: 3300.0000
CPU min MHz: 1200.0000
BogoMIPS: 4788.94
Virtualization: VT-x
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 35840K
NUMA node0 CPU(s): 0-13,28-41
NUMA node1 CPU(s): 14-27,42-55
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 nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 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 3dnowprefetch epb cat_l3 cdp_l3 intel_pt tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm cqm rdt_a rdseed adx smap xsaveopt cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local dtherm ida arat pln pts

查看cpu运行模式


root@zhangdaifu# getconf LONG_BIT
64

查看cpu是否支持64bit


root@zhangdaifu# grep flags /proc/cpuinfo | grep ' lm ' | wc -l

查看内存硬件信息


root@zhangdaifu# dmidecode -t memory | head -45 | tail -23
  Locator: CHA_0
  Bank Locator: A1_Node0_Channel0_Dimm0
  Type: DDR4
  Type Detail: Synchronous
  Speed: 2400 MHz
  Manufacturer: Samsung
  Serial Number: 391D9CB4
  Asset Tag: CHA_0_AssetTag
  Part Number: M393A2K40BB1-CRC 
  Rank: 1
  Configured Clock Speed: 2400 MHz
  Minimum Voltage: 1.2 V
  Maximum Voltage: 1.2 V
  Configured Voltage: 1.2 V

Handle 0x003A, DMI type 17, 40 bytes
Memory Device
  Array Handle: 0x0036
  Error Information Handle: Not Provided
  Total Width: Unknown
  Data Width: Unknown
  Size: No Module Installed
  Form Factor: Unknown

查看已使用的内存槽位


root@zhangdaifu# dmidecode -t memory | grep -i 'Locator' | grep -v -i 'Bank' | grep -v -i 'no'
  Locator: CHA_0
  Locator: CHB_0
  Locator: CHC_0
  Locator: CHD_0
  Locator: CHE_0
  Locator: CHF_0
  Locator: CHG_0
  Locator: CHH_0

最大支持多少内存


root@zhangdaifu# dmidecode | grep -P 'Maximum\s+Capacity'
  Maximum Capacity: 256 GB
  Maximum Capacity: 256 GB
  Maximum Capacity: 256 GB
  Maximum Capacity: 256 GB

查看内存的插槽数,已经使用多少插槽.每条内存多大


root@zhangdaifu# dmidecode -t memory | grep -A5 -i 'memory device' | grep Size | grep -iv range
   Size: 16384 MB
   Size: No Module Installed
   Size: 16384 MB
   Size: No Module Installed
   Size: 16384 MB
   Size: No Module Installed
   Size: 16384 MB
   Size: No Module Installed
   Size: 16384 MB
   Size: No Module Installed
   Size: 16384 MB
   Size: No Module Installed
   Size: 16384 MB
   Size: No Module Installed
   Size: 16384 MB
   Size: No Module Installed

查看内存的频率


root@zhangdaifu# dmidecode | grep -A16 -i "Memory Device" | grep -i 'Speed'
  Speed: 2400 MHz
  Speed: Unknown
  Speed: 2400 MHz
  Speed: Unknown
  Speed: 2400 MHz
  Speed: Unknown
  Speed: 2400 MHz
  Speed: Unknown
  Speed: 2400 MHz
  Speed: Unknown
  Speed: 2400 MHz
  Speed: Unknown
  Speed: 2400 MHz
  Speed: Unknown
  Speed: 2400 MHz
  Speed: Unknown

查看内存的详细信息


root@zhangdaifu# cat /proc/meminfo
MemTotal: 131716456 kB
MemFree: 128926560 kB
MemAvailable: 129823072 kB
Buffers: 139584 kB
Cached: 1060328 kB
SwapCached: 0 kB
Active: 299052 kB
Inactive: 967756 kB
Active(anon): 72860 kB
Inactive(anon): 11760 kB
Active(file): 226192 kB
Inactive(file): 955996 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 32 kB
Writeback: 0 kB
AnonPages: 67424 kB
Mapped: 30548 kB
Shmem: 17632 kB
Slab: 423604 kB
SReclaimable: 340432 kB
SUnreclaim: 83172 kB
KernelStack: 10160 kB
PageTables: 3836 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 65858228 kB
Committed_AS: 1228180 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 520712 kB
VmallocChunk: 34291843068 kB
HardwareCorrupted: 0 kB
AnonHugePages: 6144 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
DirectMap4k: 201200 kB
DirectMap2M: 5945344 kB
DirectMap1G: 130023424 kB

查看内存使用信息


root@zhangdaifu# free -m
      total used free shared buff/cache available
Mem: 128629 1132 124977 17 2519 126784
Swap: 0 0 0 0 0

查看硬盘和分区信息


root@zhangdaifu# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 279.4G 0 disk 
 ├─sda1 8:1 0 476M 0 part /boot
 ├─sda2 8:2 0 48G 0 part /
 └─sda3 8:3 0 231G 0 part /home
sdb 8:16 0 1.8T 0 disk /mnt/disk1

AND


root@zhangdaifu# fdisk -l

Disk /dev/sda: 300.0 GB, 300000000000 bytes, 585937500 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0xd8f7f38b

Device Boot Start End Blocks Id System
 /dev/sda1 * 2048 976895 487424 83 Linux
 /dev/sda2 976896 101562367 50292736 83 Linux
 /dev/sda3 101562368 585936895 242187264 83 Linux

Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes, 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

--

root@zhangdaifu# fdisk -l | grep -i 'disk'
Disk /dev/sda: 300.0 GB, 300000000000 bytes, 585937500 sectors
Disk label type: dos
Disk identifier: 0xd8f7f38b
Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes, 3907029168 sectors
Disk /dev/sdc: 4027 MB, 4027580416 bytes, 7866368 sectors
Disk label type: dos
Disk identifier: 0x26ae26ad

查看挂载分区状态


root@zhangdaifu# mount | column -t
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
devtmpfs on /dev type devtmpfs (rw,nosuid,size=65833276k,nr_inodes=16458319,mode=755)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_prio,net_cls)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct,cpu)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
configfs on /sys/kernel/config type configfs (rw,relatime)
/dev/sda2 on / type ext4 (rw,noatime,nobarrier,data=ordered)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=25,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=46109)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
MQueue on /dev/mqueue type mqueue (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
/dev/sdb on /mnt/disk1 type xfs (rw,noatime,attr2,nobarrier,inode64,noquota)
/dev/sda1 on /boot type ext4 (rw,noatime,nobarrier,data=ordered)
/dev/sda3 on /home type ext4 (rw,noatime,nobarrier,data=ordered)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
tmpfs on /run/user/1102 type tmpfs (rw,nosuid,nodev,relatime,size=13171648k,mode=700,uid=1102,gid=1102)
tmpfs on /run/user/0 type tmpfs (rw,nosuid,nodev,relatime,size=13171648k,mode=700)

查看硬盘使用情况


root@zhangdaifu# df -hT
Filesystem Type Size Used Avail Use% Mounted on
/dev/sda2 ext4 47G 2.5G 43G 6% /
devtmpfs devtmpfs 63G 0 63G 0% /dev
tmpfs tmpfs 63G 0 63G 0% /dev/shm
tmpfs tmpfs 63G 18M 63G 1% /run
tmpfs tmpfs 63G 0 63G 0% /sys/fs/cgroup
/dev/sdb xfs 1.9T 21G 1.8T 2% /mnt/disk1
/dev/sda1 ext4 453M 178M 249M 42% /boot
/dev/sda3 ext4 227G 254M 215G 1% /home
tmpfs tmpfs 13G 0 13G 0% /run/user/1102
tmpfs tmpfs 13G 0 13G 0% /run/user/0

查看网卡硬件信息


root@zhangdaifu# lspci | grep -i 'eth'
01:00.0 Ethernet controller: Intel Corporation I350 Gigabit Network Connection (rev 01)
01:00.1 Ethernet controller: Intel Corporation I350 Gigabit Network Connection (rev 01)
07:00.0 Ethernet controller: Intel Corporation 82599ES 10-Gigabit SFI/SFP+ Network Connection (rev 01)
07:00.1 Ethernet controller: Intel Corporation 82599ES 10-Gigabit SFI/SFP+ Network Connection (rev 01)

查看系统的所有网络接口


root@zhangdaifu# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1
  link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
  inet 127.0.0.1/8 scope host lo
   valid_lft forever preferred_lft forever
  inet6 ::1/128 scope host 
   valid_lft forever preferred_lft forever
2: eno1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
  link/ether 6c:92:bf:a4:42:66 brd ff:ff:ff:ff:ff:ff
3: eno2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
  link/ether 6c:92:bf:a4:42:67 brd ff:ff:ff:ff:ff:ff
4: eth01: <NO-CARRIER,BROADCAST,MULTICAST,SLAVE,UP> mtu 1500 qdisc mq master bond0 state DOWN qlen 1000
  link/ether 6c:92:bf:68:3b:3c brd ff:ff:ff:ff:ff:ff
5: eth02: <NO-CARRIER,BROADCAST,MULTICAST,SLAVE,UP> mtu 1500 qdisc mq master bond0 state DOWN qlen 1000
  link/ether 6c:92:bf:68:3b:3c brd ff:ff:ff:ff:ff:ff
6: bond0: <NO-CARRIER,BROADCAST,MULTICAST,MASTER,UP> mtu 1500 qdisc noqueue state DOWN qlen 1000
  link/ether 6c:92:bf:68:3b:3c brd ff:ff:ff:ff:ff:ff
  inet 10.58.62.43/24 brd 10.58.62.255 scope global bond0
   valid_lft forever preferred_lft forever

AND


root@zhangdaifu# ifconfig -a
bond0: flags=5123<UP,BROADCAST,MASTER,MULTICAST> mtu 1500
   inet 10.58.62.43 netmask 255.255.255.0 broadcast 10.58.62.255
   ether 6c:92:bf:68:3b:3c txqueuelen 1000 (Ethernet)
   RX packets 0 bytes 0 (0.0 B)
   RX errors 0 dropped 0 overruns 0 frame 0
   TX packets 0 bytes 0 (0.0 B)
   TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

eno1: flags=4098<BROADCAST,MULTICAST> mtu 1500
   ether 6c:92:bf:a4:42:66 txqueuelen 1000 (Ethernet)
   RX packets 0 bytes 0 (0.0 B)
   RX errors 0 dropped 0 overruns 0 frame 0
   TX packets 0 bytes 0 (0.0 B)
   TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
   device memory 0xc7420000-c743ffff

eno2: flags=4098<BROADCAST,MULTICAST> mtu 1500
   ether 6c:92:bf:a4:42:67 txqueuelen 1000 (Ethernet)
   RX packets 0 bytes 0 (0.0 B)
   RX errors 0 dropped 0 overruns 0 frame 0
   TX packets 0 bytes 0 (0.0 B)
   TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
   device memory 0xc7400000-c741ffff

eth01: flags=6147<UP,BROADCAST,SLAVE,MULTICAST> mtu 1500
   ether 6c:92:bf:68:3b:3c txqueuelen 1000 (Ethernet)
   RX packets 0 bytes 0 (0.0 B)
   RX errors 0 dropped 0 overruns 0 frame 0
   TX packets 0 bytes 0 (0.0 B)
   TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

eth02: flags=6147<UP,BROADCAST,SLAVE,MULTICAST> mtu 1500
   ether 6c:92:bf:68:3b:3c txqueuelen 1000 (Ethernet)
   RX packets 0 bytes 0 (0.0 B)
   RX errors 0 dropped 0 overruns 0 frame 0
   TX packets 0 bytes 0 (0.0 B)
   TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
   inet 127.0.0.1 netmask 255.0.0.0
   inet6 ::1 prefixlen 128 scopeid 0x10<host>
   loop txqueuelen 1 (Local Loopback)
   RX packets 57834 bytes 5287121 (5.0 MiB)
   RX errors 0 dropped 0 overruns 0 frame 0
   TX packets 57834 bytes 5287121 (5.0 MiB)
   TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

查看网络配置


root@zhangdaifu# ipmitool lan print 1
Set in Progress : Set Complete
Auth Type Support : MD2 MD5 PASSWord 
Auth Type Enable : Callback : MD2 MD5 PASSWORD 
           : User : MD2 MD5 PASSWORD 
           : Operator : MD2 MD5 PASSWORD 
           : Admin : MD2 MD5 PASSWORD 
           : OEM : 
IP Address Source : Static Address
IP Address : 10.59.62.43
Subnet Mask : 255.255.255.0
Mac Address : 6c:92:bf:a4:42:69
SNMP CommUnity String : Inspur
IP Header : TTL=0x40 Flags=0x40 Precedence=0x00 TOS=0x10
BMC ARP Control : ARP Responses Enabled, Gratuitous ARP Disabled
Gratituous ARP Intrvl : 0.0 seconds
Default Gateway IP : 10.59.62.1
Default Gateway MAC : 00:00:00:00:00:00
Backup Gateway IP : 0.0.0.0
Backup Gateway MAC : 00:00:00:00:00:00
802.1q VLAN ID : Disabled
802.1q VLAN Priority : 0
RMCP+ Cipher Suites : 1,2,3,6,7,8,11,12
Cipher Suite Priv Max : aaaaXXaaaXXaaXX
           : X=Cipher Suite Unused
           : c=CALLBACK
           : u=USER
           : o=OPERATOR
           : a=ADMIN
           : O=OEM
Bad Password Threshold : 0
Invalid password disable: no
Attempt Count Reset Int.: 0
User Lockout Interval : 0

查看某个网络接口的详细信息


root@zhangdaifu# ethtool eth01
Settings for eth01:
  Supported ports: [ FIBRE ]
  Supported link modes: 10000baseT/Full 
  Supported pause frame use: Symmetric
  Supports auto-negotiation: No
  Advertised link modes: 10000baseT/Full 
  Advertised pause frame use: Symmetric
  Advertised auto-negotiation: No
  Speed: Unknown!
  Duplex: Unknown! (255)
  Port: Other
  PHYAD: 0
  Transceiver: external
  Auto-negotiation: off
  Supports Wake-on: d
  Wake-on: d
  Current message level: 0x00000007 (7)
        drv probe link
  Link detected: no

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持我们。

--结束END--

本文标题: Linux查看服务器硬件信息的方法步骤

本文链接: https://lsjlt.com/news/20846.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

猜你喜欢
  • Linux查看服务器硬件信息的方法步骤
    Hi,大家好;今天是双12,大家剁手了没。今天给大家带来的是《linux查看服务器上的硬件信息》本篇文章的示例全部是在服务器(Inspur SA5112M4)上实现的,有些命令在虚拟机上达不到效果 查看服务器型号、序列...
    99+
    2022-06-04
    Linux 服务器硬件 Linux查看硬件信息
  • Linux查看硬件信息的方法
    本篇内容介绍了“Linux查看硬件信息的方法”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成! lshwlshw命令显示详细硬件信息。如果要用概...
    99+
    2023-06-17
  • linux查看硬盘信息的方法
    这篇文章主要介绍linux查看硬盘信息的方法,文中介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们一定要看完!什么是Linux系统Linux是一种免费使用和自由传播的类UNIX操作系统,是一个基于POSIX的多用户、多任务、支持多线程和...
    99+
    2023-06-14
  • Linux下如何查看版本信息的方法步骤
     linux下如何查看版本信息, 包括位数、版本信息以及CPU内核信息、CPU具体型号等等,整个CPU信息一目了然。 1、# uname -a   (Linux查看版本当前操作系统内核信息)...
    99+
    2022-06-04
    Linux 查看版本信息 Linux 版本信息
  • 怎么查看Linux硬件信息
    这篇文章给大家分享的是有关怎么查看Linux硬件信息的内容。小编觉得挺实用的,因此分享给大家做个参考,一起跟随小编过来看看吧。1, 主板信息.查看主板的序列号  ---------------------------------------...
    99+
    2023-06-17
  • Linux查看硬件信息命令
    Linux中可以使用多个命令来查看硬件信息,常用的有以下几个:1. lspci:用于显示所有PCI总线设备的信息,包括显示设备的型号...
    99+
    2023-09-15
    LINUX
  • Linux怎么查看硬件信息
    这篇文章主要介绍“Linux怎么查看硬件信息”,在日常操作中,相信很多人在Linux怎么查看硬件信息问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操作方法,希望对大家解答”Linux怎么查看硬件信息”的疑惑有所帮助!接下来,请跟着小编...
    99+
    2023-06-28
  • Linux查看怎么硬件信息
    这篇文章主要介绍了Linux查看怎么硬件信息的相关知识,内容详细易懂,操作简单快捷,具有一定借鉴价值,相信大家阅读完这篇Linux查看怎么硬件信息文章都会有所收获,下面我们一起来看看吧。方法一:使用 dmidecode 命令dmidecod...
    99+
    2023-06-27
  • Linux下怎么查看硬件信息
    这篇文章主要介绍“Linux下怎么查看硬件信息”,在日常操作中,相信很多人在Linux下怎么查看硬件信息问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操作方法,希望对大家解答”Linux下怎么查看硬件信息”的疑惑有所帮助!接下来,请跟...
    99+
    2023-06-13
  • Linux下如何查看硬件信息
    这篇文章主要介绍“Linux下如何查看硬件信息”,在日常操作中,相信很多人在Linux下如何查看硬件信息问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操作方法,希望对大家解答”Linux下如何查看硬件信息”的疑惑有所帮助!接下来,请跟...
    99+
    2023-06-16
  • Linux上怎么查看硬件信息
    本篇内容主要讲解“Linux上怎么查看硬件信息”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“Linux上怎么查看硬件信息”吧!Linux用户们平时纠结的一件很常见的事情就是,查看操作系统检测到了...
    99+
    2023-06-16
  • linux怎么查看gpu硬件信息
    要查看Linux系统中GPU的硬件信息,可以使用以下方法之一:1. 使用lspci命令:打开终端,输入命令`lspci | grep...
    99+
    2023-09-22
    linux
  • python脚本查看linux硬件信息
    #!/usr/bin/env  python # -*- coding: utf-8 -*- import rlcompleter, readline readline.parse_and_bind('tab:...
    99+
    2023-01-31
    脚本 硬件 信息
  • centos查看硬盘信息的方法
    centos中查看硬盘信息的方法:1、打开终端;2、输入“fdisk -l ”命令查看硬盘和分区的详细信息即可。具体操作步骤:在centos系统桌面中使用快捷键【Ctrl+Alt+T】打开终端命令行模式。在centos终端命令行中输入以下命...
    99+
    2024-04-02
  • linux查看硬件信息的常用命令
    这篇文章主要讲解了“linux查看硬件信息的常用命令”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“linux查看硬件信息的常用命令”吧!查看cpu信息(1)cpu型号(2)核心个数12个物理...
    99+
    2023-06-13
  • 怎么查看Linux全部的硬件信息
    这篇文章主要讲解了“怎么查看Linux全部的硬件信息”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“怎么查看Linux全部的硬件信息”吧!如何查看CPU类型以及相关特性?方法一:Linux下C...
    99+
    2023-06-16
  • 如何查看Linux硬件信息命令
    这篇文章主要为大家展示了“如何查看Linux硬件信息命令”,内容简而易懂,条理清晰,希望能够帮助大家解决疑惑,下面让小编带领大家一起研究并学习一下“如何查看Linux硬件信息命令”这篇文章吧。1、 主板信息 查看主板的序列号  ------...
    99+
    2023-06-16
  • Linux系统怎么查看硬件信息
    这篇文章主要为大家展示了Linux系统怎么查看硬件信息,内容简而易懂,条理清晰,希望能够帮助大家解决疑惑,下面让小编带大家一起来研究并学习一下“Linux系统怎么查看硬件信息”这篇文章吧。一、查看服务器硬件信息(1)查看服务器型号、序列号[...
    99+
    2023-06-28
  • linux怎么查看机器所有硬件信息
    在Linux系统中,可以使用一些命令来查看机器的所有硬件信息。以下是一些常用的命令:1. `lshw`:该命令可以列出机器的所有硬件...
    99+
    2023-09-27
    linux
  • 如何查看Linux里的硬件配置信息
    在Linux系统中,您可以使用一些命令来查看硬件配置信息。以下是一些常用的命令:1. `lspci`:显示所有连接到PCI总线的设备...
    99+
    2023-08-24
    linux
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作