Server dedicat Linux: comanda “dmidecode”

Comanda dmidecode, disponibila pe serverele dedicate si calculatoarele care ruleaza Linux sau Unix, citeste tabelul DMI si afiseaza informatii despre componentele hardware si BIOS-ul de pe server. Permite obtinerea de informatii despre configuratia actuala a sistemului cat si informatii despre configuratia maxima suportata de sistem.

Informatiile pe care le afiseaza comanda dmidecode sunt formatate in tabelul DMI:

Record Header: Handle {record id}, DMI type {dmi type id}, {record size} bytes
Record Value: {multi line record value}
record id: Unique identifier for every record in the DMI table.
dmi type id: Type of the record. i.e BIOS, Memory etc.,
record size: Size of the record in the DMI table.
multi line record values: Multi line record value for that specific DMI type.

Daca lansam comanda dmidecode vom obtine:

# dmidecode | head -10
# dmidecode 2.11
SMBIOS 2.4 present.
67 structures occupying 2050 bytes.
Table at 0x000EEB40.

Handle 0x0001, DMI type 0, 24 bytes
BIOS Information
Vendor: Hewlett-Packard
Version: 786D1 v01.03
Release Date: 05/18/2005
Address: 0xE0000
Runtime Size: 128 kB
ROM Size: 1024 kB

Daca dorim sa aflam numarul total de inregistrari din tabelul DMI putem folosi comanda dmidecode astfel:

# dmidecode | grep ^Handle | wc -l
67

# dmidecode | grep structures
67 structures occupying 2050 bytes.

Tipuri DMI

Id-ul unui tip DMI va afisa informatii despre o anumita componenta hardware aflata pe server. Daca dorim sa aflam informatii despre procesor de exemplu, vom utiliza comanda:

# dmidecode -t 4
# dmidecode 2.11
SMBIOS 2.4 present.

Handle 0x0005, DMI type 4, 35 bytes
Processor Information
Socket Designation: XU1 PROCESSOR
Type: Central Processor
Family: Pentium 4
Manufacturer: Intel
ID: 4A 0F 00 00 FF FB EB BF
Signature: Type 0, Family 15, Model 4, Stepping 10
Flags:
FPU (Floating-point unit on-chip)
VME (Virtual mode extension)
DE (Debugging extension)
PSE (Page size extension)
TSC (Time stamp counter)

Exista mai multe tipuri DMI, dupa cum urmeaza:

Type Information
—————————————-
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

Parametrul -t folosit pentru a afisa tipul DMI se poate utiliza si folosind un cuvant cheie (bios, memory, etc). Cuvintele cheie care se pot utiliza folosind dmidecode sunt:

Keyword Types
——————————
bios 0, 13
system 1, 12, 15, 23, 32
baseboard 2, 10
chassis 3
processor 4
memory 5, 6, 16, 17
cache 7
connector 8
slot 9

Pentru a afla toate informatiile despre memoria RAM a serverului (inclusiv maximul de memorie RAM pe care o suporta sistemul) vom folosi comanda:

# dmidecode -t 16
# dmidecode 2.11
SMBIOS 2.4 present.

Handle 0x0036, DMI type 16, 15 bytes
Physical Memory Array
Location: System Board Or Motherboard
Use: System Memory
Error Correction Type: None
Maximum Capacity: 4 GB
Error Information Handle: Not Provided
Number Of Devices: 4

Handle 0x0037, DMI type 16, 15 bytes
Physical Memory Array
Location: System Board Or Motherboard
Use: Flash Memory
Error Correction Type: None
Maximum Capacity: 1 MB
Error Information Handle: Not Provided
Number Of Devices: 1

Daca dorim sa aflam ce memorie RAM este in total instalata pe server:

# grep MemTotal /proc/meminfo
MemTotal: 2050360 kB

Pentru a afla informatii despre BIOS:

# dmidecode -t bios
# dmidecode 2.11
SMBIOS 2.4 present.

Handle 0x0001, DMI type 0, 24 bytes
BIOS Information
Vendor: Hewlett-Packard
Version: 786D1 v01.03
Release Date: 05/18/2005
Address: 0xE0000
Runtime Size: 128 kB
ROM Size: 1024 kB

Pentru a afla informatii tehnice despre fabricantul sistemului, modelul si numarul de serie:

# dmidecote -t system
# dmidecode 2.11
SMBIOS 2.4 present.

Handle 0x0002, DMI type 1, 27 bytes
System Information
Manufacturer: Hewlett-Packard
Product Name: HP Compaq dc7600 Small Form Factor
Version:
Serial Number: HUB63409LJ
UUID: 57CDDBA5-FA32-DB11-BBDA-A4F10A1F0017
Wake-up Type: Power Switch
SKU Number: EC837ET#UUW
Family: 103C_53307F

Handle 0x0045, DMI type 32, 11 bytes
System Boot Information
Status: No errors detected

Leave a Reply

Your email address will not be published. Required fields are marked *