GNU/Linux Avoir des infos sur le matériel

Voir :

http://pingouindesalpes.com/index.php?article168/connaitre-son-materiel

https://wiki.debian.org/HowToIdentifyADevice/PCI

Savoir si il y a du SAN :

lspci |egrep -i -e "emu|qlo"

Avoir plein d'infos avec dmidecode

#dmidecode |grep -e "Product" |head -1 dmidecode -s system-product-name

Product Name: PowerEdge R710

dmidecode -t1

Firmware version check for Dell server

Type	Command
NIC firmware	ethtool -i eth3
NIC driver	ethtool -i eth3
OEM BIOS Rev	dmidecode -t bios
PERC H700 Controller	omreport storage controller
PERC Driver	omreport storage controller
Open Manage Software	omreport about

# dmidecode 3.0
Getting SMBIOS data from sysfs.
SMBIOS 2.8 present.
Handle 0x0100, DMI type 1, 27 bytes
System Information
Manufacturer: Dell Inc.
Product Name: PowerEdge R530
Version: Not Specified
Serial Number: 5S25KF2
UUID: 4C4C4544-0053-3210-8035-B5C04F4B4632
Wake-up Type: Power Switch
SKU Number: SKU=NotProvided;ModelName=PowerEdge R530
Family: Not Specified

Tag Dell

dmidecode | grep -i serial dmidecode -t 1 dmidecode -s system-serial-number

# dmidecode -s baseboard-manufacturer
TYAN
# dmidecode -s baseboard-product-name
S7053

cat /proc/bus/input/devices

Quelques commandes utiles :

dmesg

lsusb -t, lsusb -v -d 1050:0120

lspci

lsscsi -H, lsscsi -g

lshw

inxi

lscpu

lsblk

dmseg

hwinfo --short

/sbin/discover

lsdev procinfo (paquet procinfo)

lsmod

numactl --hardware

Un lsmod peut également révéler beaucoup d'information sur le matériel

CPU

nproc lscpu lshw -c cpu dmidecode -t processor cpupower monitor

iucode_tool --scan-system
iucode_tool: system has processor(s) with signature 0x000406f1

Disques

lsblk lsblk /dev/sda --bytes --nodeps --pairs --paths --output SIZE,ROTA,RO,TYPE,PKNAME,NAME fdisk -l parted -l hdparm -i /dev/sda systemctl list-units --type=device

Réseau

lshw -c network

Si UNCLAIM apparaît : probablement un problème de driver

lspci |grep -i net

Nombre de cores nombre de processeur physiques

cat /proc/cpuinfo

Nombre de core

nproc getconf _NPROCESSORS_CONF

GPU

# inxi -G
Graphics: Device-1: Intel driver: i915 v: kernel
Device-2: NVIDIA driver: nvidia v: 430.50
Device-3: NVIDIA driver: nvidia v: 430.50
Display: tty server: X.org 1.20.4 driver: none tty: 237x35
Message: Advanced graphics data unavailable in console for root.

Exemple

LANG=C lscpu | grep -i socket
Core(s) per socket: 10
Socket(s): 2
grep -i "physical id" /proc/cpuinfo | sort -u | wc -l
2
nproc
40
Hyper-Threading ?
grep -o -w -e '^flags.* ht' /proc/cpuinfo
Si non :
NBSockets * CoresPerSocket
Si oui :
NBSockets * CoresPerSocket * 2

Carte graphique

Identifier sa carte graphique

lspci -vnn | grep -A 12 '\''[030[02]\]' | grep -Ei "vga|3d|display|kernel" sudo lshw -enable pci -class display xrandr

Source https://doc.ubuntu-fr.org/carte_graphique#identifier_sa_carte_graphique

Serveur physique VM Conteneur Docker OpenVZ

Notes virtualisation