lshw¶
Présentation de l’outil¶
lshw
pour list hardware
est un utilitaire qui permet de générer des informations détaillées sur la configuration matérielle du système.
Pour cela il se base sur divers fichiers du répertoire /proc.
L’utilitaire doit être lancé en étant root
ou avec sudo
, autrement les informations récupérées ne seront que partielles. Un message d’alerte est alors remonté :
Installation¶
Debian/Ubuntu
RHEL/RockyLinux
Exemples d’utilisation¶
Informations CPU¶
# lshw -c cpu
*-cpu
description: CPU
product: 12th Gen Intel(R) Core(TM) i5-1235U
vendor: Intel Corp.
physical id: 1a
bus info: cpu@0
version: 6.154.4
serial: None
slot: U3E1
size: 4384MHz
capacity: 4400MHz
width: 64 bits
clock: 100MHz
capabilities: lm fpu fpu_exception wp 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 x86-64 constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb cat_l2 cdp_l2 ssbd ibrs ibpb stibp ibrs_enhanced fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdt_a rdseed adx smap clflushopt clwb intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves split_lock_detect avx_vnni dtherm arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req hfi umip pku ospke waitpkg gfni vaes vpclmulqdq rdpid movdiri movdir64b fsrm md_clear serialize arch_lbr ibt flush_l1d arch_capabilities cpufreq
configuration: cores=10 enabledcores=10 microcode=1068 threads=12
Informations mémoire¶
lshw -c memory
*-memory
description: System Memory
physical id: 1
slot: System board or motherboard
size: 16GiB
*-bank:0
description: SODIMM DDR4 Synchronous 3200 MHz (0,3 ns)
product: M471A1G44BB0-CWE
vendor: Samsung
physical id: 0
serial: 341B347C
slot: Controller0-ChannelA-DIMM0
size: 8GiB
width: 64 bits
clock: 3200MHz (0.3ns)
...
*-bank:4
description: SODIMM DDR4 Synchronous 3200 MHz (0,3 ns)
product: MT40A1G16RC-062E:B
vendor: Micron Technology
physical id: 4
serial: 00000000
slot: Controller1-ChannelA
size: 8GiB
width: 64 bits
clock: 3200MHz (0.3ns)
*-cache:0
description: L1 cache
physical id: 12
slot: L1 Cache
size: 96KiB
capacity: 96KiB
capabilities: synchronous internal write-back data
configuration: level=1
...
*-cache:2
description: L2 cache
physical id: 14
slot: L2 Cache
size: 2560KiB
capacity: 2560KiB
capabilities: synchronous internal write-back unified
configuration: level=2
...
*-cache:3
description: L3 cache
physical id: 15
slot: L3 Cache
size: 12MiB
capacity: 12MiB
capabilities: synchronous internal write-back unified
configuration: level=3
*-memory UNCLAIMED
description: RAM memory
product: Alder Lake PCH Shared SRAM
vendor: Intel Corporation
physical id: 14.2
bus info: pci@0000:00:14.2
version: 01
width: 64 bits
clock: 33MHz (30.3ns)
capabilities: pm cap_list
configuration: latency=0
resources: iomemory:600-5ff iomemory:600-5ff memory:601d1d0000-601d1d3fff memory:601d1d8000-601d1d8fff
Informations disques¶
# lshw -c disk
*-namespace:0
description: NVMe disk
physical id: 0
logical name: hwmon2
*-namespace:1
description: NVMe disk
physical id: 2
logical name: ng0n1
*-namespace:2
description: NVMe disk
physical id: 1
bus info: nvme@0:1
logical name: nvme0n1
configuration: wwid=eui.044a5012609251cc
Informations des cartes réseau¶
# lshw -c network
*-network:0
description: Network controller
product: Alder Lake-P PCH CNVi WiFi
vendor: Intel Corporation
physical id: 14.3
bus info: pci@0000:00:14.3
version: 01
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix bus_master cap_list
configuration: driver=iwlwifi latency=0
resources: iomemory:600-5ff irq:16 memory:601d1cc000-601d1cffff
*-network:1
description: Ethernet controller
product: Ethernet Connection (16) I219-V
vendor: Intel Corporation
physical id: 1f.6
bus info: pci@0000:00:1f.6
version: 01
width: 32 bits
clock: 33MHz
capabilities: pm msi bus_master cap_list
configuration: driver=e1000e latency=0
resources: irq:172 memory:ae300000-ae31ffff