hardware

lshw : Récupérer les informations hardware de sa machine

Comment collecter toutes les informations sur son matériel sous linux

lshw linux, linux lshw, commande lshw, lshw, caracteristique machine linux, linux numero de serie, numero de serie machine linux, nombre de coeur linux, info hardware linux, info machine linux, commande linux caracteristiques, linux informations materiel, linux connaitre le machine, linux numero de serie machine, connaitre nombre ligne de commande linux

Date de publication : 2009-05-05 09:11:54

Aujourd'hui présentation de lshm. Pour ceux qui ne connaissent pas lshw est un logiciel en ligne de commande qui permet de récupérer les informations de son matériel.

Installation de lshw


root@home:~# aptitude install lshw

Utilisation de lshw

Une fois l'installation terminée, il suffit de lancer la détection du matériel avec la ligne de commande suivante :


root@home:~# lshw

Et là vous obtenez la plupart, pour ne pas dire toutes, des informations matérielles du système. Si il vous manque des informations sur la carte mère que je vous conseille mon article : Récupérer les informations concernant une carte mère avec dmidecode

Je vous donne la sortie brut de lshw en fin d'article pour les plus curieux, pour les autres je vais parcourir les informations les plus intéressantes données par lshw.

Informations sur la machine

Les informations générale sur la machine obtenue sur mon dell sont :
- La marque de mon PC
- Son numéro de série (le champ serial que j'ai remplacer des X)
- Le modèle du PC

Informations concernant la carte mère

lshw me donne pour la carte mère :
- La référence de la carte mère
- Le constructeur de la carte mère
- Le numéro de série

Informations sur le bios

J'obtiens comme informations sur le bios :
- La version du bios
- Le fabriquant du bios

Caractéristiques du processeur

Pour le cpu la liste des informations que j'ai retenue est :
- La fréquence du processeur
- La marque du processeur
- Le socket du cpu
- La liste des instructions et des fonctionnalités supportées
- La fréquence du bus
- Les niveaux de cache du cpu et leurs tailles
- Le nombre de coeur
- La taille des instructions supportées (processeur 32bits ou 64 bits).

Informations sur la mémoire du pc

Concernant la mémoire vive du pc je retiens :
- La capacité totale de mémoire de la machine
- Le nombre de slot occupés et surtout le nombre de slot vides (utile pour prévoir un upgrade matériel sans démonter sa machine).
- La référence des barettes de ram à partir de laquelle il est facile d'obtenir le constructeur grâce à google, des barrettes Hynix dans mon cas.
- La taille des barettes de mémoire
- La fréquence de la mémoire et même son temps de latence si vous avez de la chance

Autres informations intéréssantes

- Modèle, taille, et partitionnement des disques durs
- Liste du matériel pci et pci express (carte réseau, carte graphique, carte son ...) avec les modèles et les constructeurs.

Pour le reste voici la sortie brut de lswh ( j'ai juste remplacé les informations sensibles par des XXXX ) :


dell
description: Desktop Computer
product: Inspiron 530
vendor: Dell Inc.
version: OEM
serial: XXXX
width: 32 bits
capabilities: smbios-2.5 dmi-2.5 smp-1.4 smp
configuration: boot=normal chassis=desktop cpus=2 uuid=44454C4C-4B00-1057-8053-B1C04F47334A
*-core
description: Motherboard
product: 0RY007
vendor: Dell Inc.
physical id: 0
version:
serial: XXXX
*-firmware
description: BIOS
vendor: Dell Inc.
physical id: 0
version: 1.0.10 (12/15/2007)
size: 128KiB
capacity: 1984KiB
capabilities: isa pci pnp apm upgrade shadowing cdboot bootselect socketedrom edd int13floppy360 int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int9keyboard int14serial int17printer int10video acpi usb ls120boot zipboot biosbootspecification netboot
*-cpu:0
description: CPU
product: Intel(R) Core(TM)2 Duo CPU E4500 @ 2.20GHz
vendor: Intel Corp.
physical id: 4
bus info: cpu@0
version: 6.15.13
serial: XXXX
slot: Socket 775
size: 2200MHz
capacity: 4GHz
width: 64 bits
clock: 200MHz
capabilities: boot 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 nx x86-64 constant_tsc arch_perfmon pebs bts pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm lahf_lm
configuration: id=1
*-cache:0
description: L1 cache
physical id: a
slot: Internal Cache
size: 32KiB
capacity: 32KiB
capabilities: synchronous internal write-back
*-cache:1
description: L2 cache
physical id: b
slot: External Cache
size: 2MiB
capacity: 2MiB
capabilities: synchronous external write-back
*-logicalcpu:0
description: Logical CPU
physical id: 1.1
width: 64 bits
capabilities: logical
*-logicalcpu:1
description: Logical CPU
physical id: 1.2
width: 64 bits
capabilities: logical
*-memory
description: System Memory
physical id: 24
slot: System board or motherboard
size: 1GiB
*-bank:0
description: DIMM Synchronous 667 MHz (1.5 ns)
product: HYMP164U64CP6-Y5
vendor: AD00000000000000
physical id: 0
serial: XXXX
slot: DIMM1
size: 512MiB
width: 64 bits
clock: 667MHz (1.5ns)
*-bank:1
description: DIMM [empty]
product: 64T64000EU25FB2
vendor: 7F7F7F7F7F510000
physical id: 1
serial: XXXX
slot: DIMM2
*-bank:2
description: DIMM Synchronous 667 MHz (1.5 ns)
product: HYMP164U64CP6-Y5
vendor: AD00000000000000
physical id: 2
serial: XXXX
slot: DIMM3
size: 512MiB
width: 64 bits
clock: 667MHz (1.5ns)
*-bank:3
description: DIMM [empty]
product: 64T64000EU25FB2
vendor: 7F7F7F7F7F510000
physical id: 3
serial: XXXX
slot: DIMM4
*-cpu:1
physical id: 1
bus info: cpu@1
version: 6.15.13
serial: XXXX
size: 18EHz
capabilities: ht
configuration: id=1
*-logicalcpu:0
description: Logical CPU
physical id: 1.1
capabilities: logical
*-logicalcpu:1
description: Logical CPU
physical id: 1.2
capabilities: logical
*-pci
description: Host bridge
product: 82G33/G31/P35/P31 Express DRAM Controller
vendor: Intel Corporation
physical id: 100
bus info: pci@0000:00:00.0
version: 02
width: 32 bits
clock: 33MHz
*-pci:0
description: PCI bridge
product: 82G33/G31/P35/P31 Express PCI Express Root Port
vendor: Intel Corporation
physical id: 1
bus info: pci@0000:00:01.0
version: 02
width: 32 bits
clock: 33MHz
capabilities: pci pm msi pciexpress normal_decode bus_master cap_list
configuration: driver=pcieport-driver
*-display
description: VGA compatible controller
product: GeForce 8300 GS
vendor: nVidia Corporation
physical id: 0
bus info: pci@0000:01:00.0
version: a1
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress vga_controller bus_master cap_list
configuration: driver=nvidia latency=0 module=nvidia
*-network
description: Ethernet interface
product: 82562V-2 10/100 Network Connection
vendor: Intel Corporation
physical id: 19
bus info: pci@0000:00:19.0
logical name: eth0
version: 02
serial: XXXX
size: 100MB/s
capacity: 100MB/s
width: 32 bits
clock: 33MHz
capabilities: pm msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=0.3.3.3-k6 duplex=full firmware=1.1-2 ip=192.168.11.3 latency=0 link=yes module=e1000e multicast=yes port=twisted pair speed=100MB/s
*-usb:0
description: USB Controller
product: 82801I (ICH9 Family) USB UHCI Controller #4
vendor: Intel Corporation
physical id: 1a
bus info: pci@0000:00:1a.0
version: 02
width: 32 bits
clock: 33MHz
capabilities: uhci bus_master cap_list
configuration: driver=uhci_hcd latency=0 module=uhci_hcd
*-usbhost
product: UHCI Host Controller
vendor: Linux 2.6.29-1-686 uhci_hcd
physical id: 1
bus info: usb@2
logical name: usb2
version: 2.06
capabilities: usb-1.10
configuration: driver=hub slots=2 speed=12.0MB/s
*-usb:1
description: USB Controller
product: 82801I (ICH9 Family) USB UHCI Controller #5
vendor: Intel Corporation
physical id: 1a.1
bus info: pci@0000:00:1a.1
version: 02
width: 32 bits
clock: 33MHz
capabilities: uhci bus_master cap_list
configuration: driver=uhci_hcd latency=0 module=uhci_hcd
*-usbhost
product: UHCI Host Controller
vendor: Linux 2.6.29-1-686 uhci_hcd
physical id: 1
bus info: usb@4
logical name: usb4
version: 2.06
capabilities: usb-1.10
configuration: driver=hub slots=2 speed=12.0MB/s
*-usb:2
description: USB Controller
product: 82801I (ICH9 Family) USB UHCI Controller #6
vendor: Intel Corporation
physical id: 1a.2
bus info: pci@0000:00:1a.2
version: 02
width: 32 bits
clock: 33MHz
capabilities: uhci bus_master cap_list
configuration: driver=uhci_hcd latency=0 module=uhci_hcd
*-usbhost
product: UHCI Host Controller
vendor: Linux 2.6.29-1-686 uhci_hcd
physical id: 1
bus info: usb@5
logical name: usb5
version: 2.06
capabilities: usb-1.10
configuration: driver=hub slots=2 speed=12.0MB/s
*-usb:0
description: Keyboard
product: Dell USB Keyboard
vendor: Dell
physical id: 1
bus info: usb@5:1
version: 3.06
capabilities: usb-1.10
configuration: driver=usbhid maxpower=70mA speed=1.5MB/s
*-usb:1
description: Mouse
product: Dell USB Optical Mouse
vendor: Dell
physical id: 2
bus info: usb@5:2
version: 43.01
capabilities: usb-2.00
configuration: driver=usbhid maxpower=100mA speed=1.5MB/s
*-usb:3
description: USB Controller
product: 82801I (ICH9 Family) USB2 EHCI Controller #2
vendor: Intel Corporation
physical id: 1a.7
bus info: pci@0000:00:1a.7
version: 02
width: 32 bits
clock: 33MHz
capabilities: pm ehci bus_master cap_list
configuration: driver=ehci_hcd latency=0 module=ehci_hcd
*-usbhost
product: EHCI Host Controller
vendor: Linux 2.6.29-1-686 ehci_hcd
physical id: 1
bus info: usb@1
logical name: usb1
version: 2.06
capabilities: usb-2.00
configuration: driver=hub slots=6 speed=480.0MB/s
*-usb:4
description: USB Controller
product: 82801I (ICH9 Family) USB UHCI Controller #1
vendor: Intel Corporation
physical id: 1d
bus info: pci@0000:00:1d.0
version: 02
width: 32 bits
clock: 33MHz
capabilities: uhci bus_master cap_list
configuration: driver=uhci_hcd latency=0 module=uhci_hcd
*-usbhost
product: UHCI Host Controller
vendor: Linux 2.6.29-1-686 uhci_hcd
physical id: 1
bus info: usb@6
logical name: usb6
version: 2.06
capabilities: usb-1.10
configuration: driver=hub slots=2 speed=12.0MB/s
*-usb:5
description: USB Controller
product: 82801I (ICH9 Family) USB UHCI Controller #2
vendor: Intel Corporation
physical id: 1d.1
bus info: pci@0000:00:1d.1
version: 02
width: 32 bits
clock: 33MHz
capabilities: uhci bus_master cap_list
configuration: driver=uhci_hcd latency=0 module=uhci_hcd
*-usbhost
product: UHCI Host Controller
vendor: Linux 2.6.29-1-686 uhci_hcd
physical id: 1
bus info: usb@7
logical name: usb7
version: 2.06
capabilities: usb-1.10
configuration: driver=hub slots=2 speed=12.0MB/s
*-usb:6
description: USB Controller
product: 82801I (ICH9 Family) USB UHCI Controller #3
vendor: Intel Corporation
physical id: 1d.2
bus info: pci@0000:00:1d.2
version: 02
width: 32 bits
clock: 33MHz
capabilities: uhci bus_master cap_list
configuration: driver=uhci_hcd latency=0 module=uhci_hcd
*-usbhost
product: UHCI Host Controller
vendor: Linux 2.6.29-1-686 uhci_hcd
physical id: 1
bus info: usb@8
logical name: usb8
version: 2.06
capabilities: usb-1.10
configuration: driver=hub slots=2 speed=12.0MB/s
*-usb:7
description: USB Controller
product: 82801I (ICH9 Family) USB2 EHCI Controller #1
vendor: Intel Corporation
physical id: 1d.7
bus info: pci@0000:00:1d.7
version: 02
width: 32 bits
clock: 33MHz
capabilities: pm ehci bus_master cap_list
configuration: driver=ehci_hcd latency=0 module=ehci_hcd
*-usbhost
product: EHCI Host Controller
vendor: Linux 2.6.29-1-686 ehci_hcd
physical id: 1
bus info: usb@3
logical name: usb3
version: 2.06
capabilities: usb-2.00
configuration: driver=hub slots=6 speed=480.0MB/s
*-pci:1
description: PCI bridge
product: 82801 PCI Bridge
vendor: Intel Corporation
physical id: 1e
bus info: pci@0000:00:1e.0
version: 92
width: 32 bits
clock: 33MHz
capabilities: pci subtractive_decode bus_master cap_list
*-multimedia
description: Multimedia audio controller
product: CM8738
vendor: C-Media Electronics Inc
physical id: 0
bus info: pci@0000:02:00.0
version: 10
width: 32 bits
clock: 33MHz
capabilities: pm bus_master cap_list
configuration: driver=C-Media PCI latency=64 maxlatency=24 mingnt=2 module=snd_cmipci
*-isa
description: ISA bridge
product: 82801IR (ICH9R) LPC Interface Controller
vendor: Intel Corporation
physical id: 1f
bus info: pci@0000:00:1f.0
version: 02
width: 32 bits
clock: 33MHz
capabilities: isa bus_master cap_list
configuration: latency=0
*-storage
description: RAID bus controller
product: 82801 SATA RAID Controller
vendor: Intel Corporation
physical id: 1f.2
bus info: pci@0000:00:1f.2
logical name: scsi0
logical name: scsi1
logical name: scsi5
version: 02
width: 32 bits
clock: 66MHz
capabilities: storage msi pm bus_master cap_list emulated
configuration: driver=ahci latency=0 module=ahci
*-disk:0
description: ATA Disk
product: Hitachi HDT72502
vendor: Hitachi
physical id: 0
bus info: scsi@0:0.0.0
logical name: /dev/sda
version: V5DO
serial: XXXX
size: 232GiB (250GB)
capabilities: partitioned partitioned:dos
configuration: ansiversion=5 signature=88000000
*-volume:0
description: EXT3 volume
vendor: Linux
physical id: 1
bus info: scsi@0:0.0.0,1
logical name: /dev/sda1
logical name: /
version: 1.0
serial: XXXX
size: 13GiB
capacity: 13GiB
capabilities: primary bootable journaled extended_attributes large_files huge_files recover ext3 ext2 initialized
configuration: created=2008-09-21 12:24:55 filesystem=ext3 label=linux modified=2009-05-05 20:40:27 mount.fstype=ext3 mount.options=rw,errors=remount-ro,data=ordered mounted=2009-05-05 20:31:11 state=mounted
*-volume:1
description: Linux swap volume
physical id: 2
bus info: scsi@0:0.0.0,2
logical name: /dev/sda2
version: 1
size: 956MiB
capacity: 956MiB
capabilities: primary nofs swap initialized
configuration: filesystem=swap pagesize=4096
*-volume:2
description: EXT3 volume
vendor: Linux
physical id: 3
bus info: scsi@0:0.0.0,3
logical name: /dev/sda3
logical name: /home
version: 1.0
serial: XXXX
size: 217GiB
capacity: 217GiB
capabilities: primary journaled extended_attributes large_files huge_files recover ext3 ext2 initialized
configuration: created=2008-09-21 12:25:03 filesystem=ext3 label=home modified=2009-05-05 20:46:57 mount.fstype=ext3 mount.options=rw,errors=continue,data=ordered mounted=2009-05-05 20:46:57 state=mounted
*-cdrom
description: DVD writer
physical id: 1
bus info: scsi@1:0.0.0
logical name: /dev/cdrom
logical name: /dev/cdrw
logical name: /dev/dvd
logical name: /dev/dvdrw
logical name: /dev/scd0
logical name: /dev/sr0
capabilities: audio cd-r cd-rw dvd dvd-r
configuration: status=nodisc
*-disk:1
description: ATA Disk
product: Maxtor 6Y160M0
vendor: Maxtor
physical id: 0.0.0
bus info: scsi@5:0.0.0
logical name: /dev/sdb
version: YAR5
serial: XXXX
size: 152GiB (163GB)
capabilities: partitioned partitioned:dos
configuration: ansiversion=5 signature=000e0623
*-volume
description: EXT3 volume
vendor: Linux
physical id: 1
bus info: scsi@5:0.0.0,1
logical name: /dev/sdb1
version: 1.0
serial: XXXX
size: 152GiB
capacity: 152GiB
capabilities: primary journaled extended_attributes large_files huge_files recover ext3 ext2 initialized
configuration: created=2008-03-08 12:34:19 filesystem=ext3 modified=2008-11-26 21:24:52 mounted=2008-11-15 15:30:13 state=clean
*-serial
description: SMBus
product: 82801I (ICH9 Family) SMBus Controller
vendor: Intel Corporation
physical id: 1f.3
bus info: pci@0000:00:1f.3
version: 02
width: 64 bits
clock: 33MHz
configuration: driver=i801_smbus latency=0 module=i2c_i801

Image : Gary Simmons

 
 

b1n@sp1n