GNU/Linux >> Linux Esercitazione >  >> Linux

7 modi per visualizzare le informazioni sull'hardware utilizzando Dmidecode

Il comando Dmidecode legge la tabella DMI (Desktop Management Interface) di sistema per visualizzare le informazioni sull'hardware e sul BIOS del server. L'output del dmidecode contiene diversi record della tabella DMI. Questa tabella contiene una descrizione dei componenti hardware del sistema e anche altre informazioni utili come il numero di serie, la revisione del BIOS, ecc. Durante l'esecuzione, dmidecode cercherà di individuare la tabella DMI. Se riesce, analizzerà questa tabella e visualizzerà un elenco di record come questo.

La tabella DMI non solo descrive di cosa è composto attualmente il sistema, ma può anche segnalare la possibile evoluzione (come la CPU più veloce supportata o la quantità massima di memoria supportata).

Questo tutorial spiega come usare dmidecode per ottenere informazioni sull'hardware sulla tua macchina Linux.

1) Ottieni informazioni hardware sul BIOS

Per ottenere la versione del BIOS, il fornitore e altri dettagli, utilizzare -t bios opzione

# dmidecode -t bios
# dmidecode 2.9
SMBIOS 2.31 present.

Handle 0x0000, DMI type 0, 20 bytes
BIOS Information
Vendor: Phoenix Technologies LTD
Version: 6.00
Release Date: 04/10/2007
Address: 0xE7A00
Runtime Size: 99840 bytes
ROM Size: 64 kB
Characteristics:
ISA is supported
PCI is supported
PC Card (PCMCIA) is supported
PNP is supported
APM is supported
BIOS is upgradeable
BIOS shadowing is allowed
ESCD support is available
USB legacy is supported
Smart battery is supported
BIOS boot specification is supported

[root@mailserver ~]#

2) Ottieni informazioni hardware sul sistema

Usa -t system per ottenere informazioni hardware sul sistema

# dmidecode -t system
# dmidecode 2.9
SMBIOS 2.31 present.

Handle 0x0001, DMI type 1, 25 bytes
System Information
Manufacturer: VMware, Inc.
Product Name: VMware Virtual Platform
Version: None
Serial Number: VMware-56 4d eb 70 28 36 a8 c0-08 bb 55 cf dc e6 4f 60
UUID: 564DEB70-2836-A8C0-08BB-55CFDCE64F60
Wake-up Type: Power Switch

Handle 0x001C, DMI type 15, 29 bytes
System Event Log
Area Length: 16 bytes
Header Start Offset: 0x0000
Header Length: 16 bytes
Data Start Offset: 0x0010
Access Method: General-purpose non-volatile data functions
Access Address: 0x0000
Status: Invalid, Full
Change Token: 0x00000036
Header Format: Type 1
Supported Log Type Descriptors: 3
Descriptor 1: POST error
Data Format 1: POST results bitmap
Descriptor 2: Single-bit ECC memory error
Data Format 2: Multiple-event
Descriptor 3: Multi-bit ECC memory error
Data Format 3: Multiple-event

Handle 0x0026, DMI type 23, 13 bytes
System Reset
Status: Enabled
Watchdog Timer: Present
Boot Option: Do Not Reboot
Boot Option On Limit: Do Not Reboot
Reset Count: Unknown
Reset Limit: Unknown
Timer Interval: Unknown
Timeout: Unknown

Handle 0x0029, DMI type 32, 20 bytes
System Boot Information
Status:
#

3) Informazioni hardware sulla scheda base

Usa -t baseboard per ottenere informazioni sul battiscopa

# dmidecode -t baseboard
# dmidecode 2.9
SMBIOS 2.31 present.

Handle 0x0002, DMI type 2, 8 bytes
Base Board Information
Manufacturer: Intel Corporation
Product Name: 440BX Desktop Reference Platform
Version: None
Serial Number: None

Handle 0x001A, DMI type 10, 8 bytes
On Board Device 1 Information
Type: Video
Status: Disabled
Description: VMware SVGA II
On Board Device 2 Information
Type: Sound
Status: Disabled
Description: ES1371
#

4) Ottenere informazioni HW sullo chassis

Usa -t chassis per recuperare i dettagli sullo chassis del sistema

# dmidecode -t chassis
# dmidecode 2.9
SMBIOS 2.31 present.

Handle 0x0003, DMI type 3, 17 bytes
Chassis Information
Manufacturer: No Enclosure
Type: Other
Lock: Not Present
Version: N/A
Serial Number: None
Asset Tag: No Asset Tag
Boot-up State: Safe
Power Supply State: Safe
Thermal State: Safe
Security Status: None
OEM Information: 0x00001234

Allo stesso modo, trovi le informazioni sull'hardware come processore, memoria, cache, connettore e slot.

# dmidecode -t memory
# dmidecode -t cashe
# dmidecode -t processor
# dmidecode -t connector
# dmidecode -t slot

Ci sono tipi DMI; questo ID tipo DMI fornirà informazioni su un particolare componente hardware del sistema. Esistono più di 100 tipi, ad esempio ecco alcuni ID di tipo.

TIPI DI DMI

La specifica SMBIOS definisce le seguenti informazioni sul tipo DMI:

Digita DMI

0 BIOS
1 System
2 Base Board
3 Chassis
4 Processor
5 Memory Controller
6 Memory Module
7 Cache
8 Port Connector
9 System Slots
10 On Board Devices
11 OEM Strings
12 System Configuration Options
13 BIOS Language
14 Group Associations
15 System Event Log
16 Physical Memory Array
17 Memory Device
18 32-bit Memory Error
19 Memory Array Mapped Address
20 Memory Device Mapped Address
21 Built-in Pointing Device
22 Portable Battery
23 System Reset
24 Hardware Security
25 System Power Controls
26 Voltage Probe
27 Cooling Device
28 Temperature Probe
29 Electrical Current Probe
30 Out-of-band Remote Access
31 Boot Integrity Services
32 System Boot
33 64-bit Memory Error
34 Management Device
35 Management Device Component
36 Management Device Threshold Data
37 Memory Channel
38 IPMI Device
39 Power Supply

Inoltre, il tipo 126 viene utilizzato per le voci disabilitate e il tipo 127 è un indicatore di fine tabella. I tipi da 128 a 255 sono per dati specifici dell'OEM. Dmidecode visualizzerà queste voci per impostazione predefinita, ma può decodificarle solo quando i fornitori hanno fornito documentazione o codice per esse.
Le parole chiave possono essere utilizzate al posto dei numeri di tipo con --type. Ogni parola chiave equivale a un elenco di numeri di tipo:

Tipi di parole chiave

------------------------------

bios 0, 13

sistema 1, 12, 15, 23, 32

battiscopa 2, 10

telaio 3

processore 4

memoria 5, 6, 16, 17

cache 7

connettore 8

slot 9

5) Ottieni informazioni sull'hardware del processore

Usando il tipo id possiamo ottenere informazioni sul processore

# dmidecode -t 4 | head
# dmidecode 2.9
SMBIOS 2.31 present.

Handle 0x0004, DMI type 4, 35 bytes
Processor Information
Socket Designation: CPU socket #0
Type: Central Processor
Family: Unknown
Manufacturer: AuthenticAMD
ID: 23 0F 10 00 FF FB 8B 07

6) Ottieni un errore di memoria a 64 bit

Usa -t id per ottenere informazioni sull'errore di memoria

# dmidecode -t 33
# dmidecode 2.9
SMBIOS 2.31 present.

Handle 0x002A, DMI type 33, 31 bytes
64-bit Memory Error Information
Type: OK
Granularity: Unknown
Operation: Unknown
Vendor Syndrome: Unknown
Memory Array Address: 0x0000000080000000
Device Address: 0x0000000080000000
Resolution: Unknown

7) Opzione Grep per ottenere i dettagli del prodotto

Poiché è un file di grandi dimensioni, puoi utilizzare il comando grep per cercare una stringa che cerchi.

# dmidecode | grep -i prod

Conclusione

In questo tutorial abbiamo imparato come usare il comando dmidecode e le sue opzioni per ottenere diverse informazioni sull'hardware. Spero che la lettura ti sia piaciuta e per favore lascia i tuoi suggerimenti.


Linux
  1. Comandi Linux per visualizzare le informazioni sull'hardware

  2. Come visualizzare informazioni aggiuntive sul pacchetto utilizzando yum e yumdb – RedHat Linux

  3. dmidecode:ottieni informazioni sull'hardware di sistema su Linux

  4. Come usare type command (visualizzare le informazioni sul comando) in Linux

  5. Linux:ottenere informazioni sull'hardware di una macchina in Linux?

Come visualizzare i dettagli di sistema e hardware in Ubuntu 20.04

Controlla graficamente le informazioni sull'hardware su Ubuntu usando hardinfo

Strumenti Linux:esame dell'hardware nel terminale con dmidecode

Come visualizzare le informazioni sull'hardware in Linux

Come ottenere informazioni sull'hardware su Linux utilizzando il comando dmidecode

Come ottenere le specifiche hardware del tuo sistema utilizzando lshw Hardware Lister