银河麒麟V10硬件信息排查:dmidecode/lshw/lsscsi常用命令手册

📅 2026/7/31 18:53:42
银河麒麟V10硬件信息排查:dmidecode/lshw/lsscsi常用命令手册
查询硬件信息硬件关系图谱Windowslinux查看cpu信息lscpufreedmidecode命令硬件所有参数biossystembaseboard(主板)chassis()processor(处理器)网卡网卡硬件信息查看所有网络接口查看网口详细信息lspci硬件关系图谱CPU主板内存PCIe设备网卡显卡存储控制器BIOS系统启动Windows1、查询磁盘序列号wmic diskdrive get serialnumber2、查询BIOS序列号wmic bios get serialnumber3、查询网卡信息wmic nicconfig get macaddress 或者 ipconfig/all 第一个就是4、查询cpu的IDwmic cpu get processorid5、查询主板序列号wmic baseboard get serialnumber硬件类型命令关键信息示例输出磁盘序列号wmic diskdrive get serialnumber物理磁盘唯一标识S2K7NX0H123456BIOS信息wmic bios get serialnumberBIOS固件标识L2HF0860DX6网卡地址wmic nicconfig get macaddressMAC地址54:05:db:05:45:adCPU标识wmic cpu get processoridCPU唯一IDBFEBFBFF000806EC主板序列号wmic baseboard get serialnumber主板物理标识L1HF0860DX6linux查看cpu信息1.查询服务器型号 dmidecode|grepSystem Information-A9|egrepManufacturer|Product2.查看操作系统cat/etc/redhat-release3.查看cpu型号[rootx86-15 ~]# cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c4.查看cpu个数cat/proc/cpuinfo|grepphysical id|sort|uniq|wc-l5.查看每个物理CPU中core的个数(即核数)cat/proc/cpuinfo|grepcpu cores|uniq6.查看操作系统位数[rootopenstack ~]# getconf LONG_BIT64查询内容命令关键参数解释说明整体信息lscpuArchitecture, Model name, CPU(s)CPU架构与核心数型号详情cat /proc/cpuinfogrep “model name”uniq物理CPU数cat /proc/cpuinfogrep “physical id”sort核心数cat /proc/cpuinfogrep “cpu cores”uniq线程数cat /proc/cpuinfogrep “siblings”uniqlscpu#也可查看/proc/cpuinfokylinkylin:~$ lscpu 架构 x86_64 CPU 运行模式32-bit,64-bit 字节序 Little Endian Address sizes:39bits physical,48bits virtual CPU:8在线 CPU 列表0-7 每个核的线程数2每个座的核数4座1NUMA 节点1厂商 ID GenuineIntel CPU 系列6型号142型号名称 Intel(R)Core(TM)i5-10210U CPU 1.60GHz 步进12CPU MHz3410.434CPU 最大 MHz4200.0000CPU 最小 MHz400.0000BogoMIPS4199.88虚拟化 VT-x L1d 缓存128KiB L1i 缓存128KiB L2 缓存1MiB L3 缓存6MiB NUMA 节点0 CPU0-7 Vulnerability Itlb multihit: KVM: Mitigation: Split huge pagesfree#也可查看/proc/meminfokylinkylin:~$free-h总计 已用 空闲 共享 缓冲/缓存 可用 内存7.4Gi2.0Gi2.4Gi 382Mi3.0Gi4.8Gi 交换8.0Gi 0B8.0Gidmidecode命令硬件所有参数kylinkylin:~/桌面$sudodmidecode-tbios system baseboard#主板chassis#processor#处理器memory#内存cache#缓存connector#设备的接口slot#狭槽#查看所有有用信息dmidecode-q硬件类型命令关键信息BIOSsudo dmidecode -t biosVendor, Version, Release Date系统信息sudo dmidecode -t systemManufacturer, Product Name, Serial Number主板sudo dmidecode -t baseboardManufacturer, Product Name, Serial Number机箱sudo dmidecode -t chassisType, Lock, Version处理器sudo dmidecode -t processorSocket, Type, Core Countbioskylinkylin:~/桌面$sudodmidecode-tbios BIOS Information#bios信息Vendor: LENOVO#厂商Version: N2YET25W(1.14)#版本Release Date: 09/29/2020#发布日期Address: 0xE0000#地址Runtime Size:128kB#运行大小ROM Size:32MB#内存大小BIOS Revision:1.14#bios版本Firmware Revision:1.7#固件版本Installable Languages:1#可安装语言Currently Installed Language: en-US#当前安装语言system# dmidecode 3.2Getting SMBIOS data from sysfs. SMBIOS3.2.0 present. Handle 0x0014, DMItype1,27bytes System Information#系统信息Manufacturer: LENOVO#制造商Product Name: 20T2A002CD#产品名称Version: ThinkPad X13 Gen1#版本Serial Number: PC1Q0BCE#序列号UUID: 436dcbcc-315e-11b2-a85c-d82e6b06cf45#用户识别号Wake-up Type: Power Switch#唤醒类型:电源SKU Number: LENOVO_MT_20T2_BU_Think_FM_ThinkPad X13 Gen1#SKU编号Family: ThinkPad X13 Gen1#系列System Event Log#系统事件日志后面没记baseboard(主板)Base Board Information#主板信息Manufacturer: LENOVO#制造商Product Name: 20T2A002CD#产品名称Version: SDK0L77769 WIN#版号Serial Number: L1HF0860DX6#序列号chassis()Handle 0x0016, DMItype3,22bytesChassis Information Manufacturer: LENOVO#制造商 Type: Notebook #类型:笔记本 Lock: Not Present #锁:不存在 Version: None #版本:无 Serial Number: PC1Q0BCE #序列号 Asset Tag: No Asset Information #资产标签:无资产信息 SKU Number: Not Specified #SKU编号:未指定processor(处理器)Processor Information#处理器信息 Socket Designation: U3E1 #插座名称 Type: Central Processor #类型:中央处理器 Family: Core i5 #系列 Manufacturer: Intel(R) Corporation #制造商 ID: EC 06 08 00 FF FB EB BF #编号 Signature: Type 0, Family 6, Model 142, Stepping 12 #签名 Version: Intel(R) Core(TM) i5-10210U CPU 1.60GHz #版本 Voltage: 0.8 V #电压 External Clock: 100 MHz #外部时钟 Max Speed: 2100 MHz #最大速度 Current Speed: 1600 MHz #当前速度 Status: Populated, Enabled #状态 Core Count: 4 #芯数 Core Enabled: 4 #核心启动 Thread Count: 8 #线程数网卡网卡硬件信息kylinkylin:~$ lspci|grep-ieth00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection(10)I219-V查看所有网络接口ifconfig或iplinkshowkylinkylin:~$iplinkshow1: lo:LOOPBACK,UP,LOWER_UPmtu65536qdisc noqueue state UNKNOWN mode DEFAULT group default qlen1000link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:002: eth0:NO-CARRIER,BROADCAST,MULTICAST,UPmtu1500qdisc fq_codel state DOWN mode DEFAULT group default qlen1000link/ether54:05:db:05:45:ad brd ff:ff:ff:ff:ff:ff3: wlan0:BROADCAST,MULTICAST,UP,LOWER_UPmtu1500qdisc noqueue state UP mode DORMANT group default qlen1000link/ether dc:1b:a1:a7:d8:2f brd ff:ff:ff:ff:ff:ff查看网口详细信息kylinkylin:~$ethtooleth0 Settingsforeth0: Supported ports:[TP]#支持的端口TP Supported link modes: 10baseT/Half 10baseT/Full #链路模式 10baseT/半10baseT/全 100baseT/Half 100baseT/Full #支持千兆半双工全双工模式 1000baseT/Full Supported pause frame use: No # Supports auto-negotiation: Yes #支持自适应模式一般都支持 Supported FEC modes: Not reported Advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Advertised pause frame use: No Advertised auto-negotiation: Yes #默认使用自适应模式 Advertised FEC modes: Not reported Speed: Unknown! #网卡使用自适应模式所以推测路由是100Mb导致网卡从支持千兆变成要支持百兆 Duplex: Unknown! (255) #全双工 Port: Twisted Pair PHYAD: 2 Transceiver: internal Auto-negotiation: on MDI-X: Unknown (auto)Cannot get wake-on-lan settings: Operation not permitted Current message level: 0x00000007 (7) drv probe link Link detected: no #连网线是yes本次是无线网lspci#查看主板所有硬件槽信息lspci-v可以更详细一些kylinkylin:~$ lspci00:00.0 Host bridge: Intel Corporation Device 9b61(rev 0c)#主板00:02.0 VGA compatible controller: Intel Corporation UHD Graphics (rev 02)#显卡00:04.0 Signal processing controller: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem (rev 0c)00:08.0 System peripheral: Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model00:12.0 Signal processing controller: Intel Corporation Comet Lake Thermal Subsytem00:14.0 USB controller: Intel Corporation Device 02ed#usb控制器00:14.2 RAM memory: Intel Corporation Device 02ef#内存00:14.3 Network controller: Intel Corporation Wireless-AC 946200:16.0 Communication controller: Intel Corporation Comet Lake Management Engine Interface00:1c.0 PCI bridge: Intel Corporation Device 02b8 (rev f0)#PCI 插槽00:1c.4 PCI bridge: Intel Corporation Device 02bc (rev f0)00:1d.0 PCI bridge: Intel Corporation Device 02b0 (rev f0)00:1d.4 PCI bridge: Intel Corporation Device 02b4 (rev f0)00:1f.0 ISA bridge: Intel Corporation Device 028400:1f.3 Audio device: Intel Corporation Device 02c8#声卡00:1f.4 SMBus: Intel Corporation Device 02a300:1f.5 Serial bus controller [0c80]: Intel Corporation Comet Lake SPI (flash) Controller00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection (10) I219-V#网卡02:00.0 SD Host controller: Genesys Logic, Inc GL9750 SD Host Controller (rev 01)03:00.0 PCI bridge: Intel Corporation JHL6240 Thunderbolt 3 Bridge (Low Power) [Alpine Ridge LP 2016] (rev 01)04:00.0 PCI bridge: Intel Corporation JHL6240 Thunderbolt 3 Bridge (Low Power) [Alpine Ridge LP 2016] (rev 01)04:01.0 PCI bridge: Intel Corporation JHL6240 Thunderbolt 3 Bridge (Low Power) [Alpine Ridge LP 2016] (rev 01)04:02.0 PCI bridge: Intel Corporation JHL6240 Thunderbolt 3 Bridge (Low Power) [Alpine Ridge LP 2016] (rev 01)05:00.0 System peripheral: Intel Corporation JHL6240 Thunderbolt 3 NHI (Low Power) [Alpine Ridge LP 2016] (rev 01)2b:00.0 USB controller: Intel Corporation JHL6240 Thunderbolt 3 USB 3.1 Controller (Low Power) [Alpine Ridge LP 2016] (rev 01)2e:00.0 Non-Volatile memory controller: Sandisk Corp Device 5006#或者kylinkylin:~$ lspci -vs 00:02.000:02.0 VGA compatible controller: Intel Corporation UHD Graphics (rev 02) (prog-if 00 [VGA controller]) Subsystem: Lenovo UHD Graphics Flags: bus master, fast devsel, latency 0, IRQ 149 Memory at ed000000 (64-bit, non-prefetchable) [size16M] Memory at d0000000 (64-bit, prefetchable) [size256M] I/O ports at 4000 [size64] Expansion ROM at 000c0000 [virtual] [disabled] [size128K] Capabilities: access denied Kernel driver in use: i915 Kernel modules: i915