GNU/Linux >> Belajar Linux >  >> Linux

7 Cara Menampilkan Informasi Perangkat Keras menggunakan Dmidecode

Perintah Dmidecode membaca tabel sistem DMI (Desktop Management Interface) untuk menampilkan informasi perangkat keras dan BIOS server. Output dari dmidecode berisi beberapa record dari tabel DMI. Tabel ini berisi deskripsi komponen perangkat keras sistem dan juga informasi berguna lainnya seperti nomor seri, revisi BIOS, dll. Saat Anda menjalankannya, dmidecode akan mencoba mencari tabel DMI. Jika berhasil maka akan mengurai tabel ini dan menampilkan daftar record seperti ini.

Tabel DMI tidak hanya menjelaskan dari apa sistem saat ini dibuat, tetapi juga dapat melaporkan kemungkinan evolusi (seperti CPU tercepat yang didukung atau jumlah memori maksimal yang didukung).

Tutorial ini menjelaskan cara menggunakan dmidecode untuk mendapatkan informasi perangkat keras di mesin Linux Anda.

1) Dapatkan informasi Perangkat Keras di BIOS

Untuk mendapatkan versi BIOS, vendor dan detail lainnya, gunakan -t bios pilihan

# 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) Dapatkan informasi Perangkat Keras tentang sistem

Gunakan -t system untuk mendapatkan informasi perangkat keras tentang sistem

# 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) Informasi perangkat keras tentang alas tiang

Gunakan -t baseboard untuk mendapatkan informasi tentang alas tiang

# 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) Mendapatkan informasi HW tentang sasis

Gunakan -t chassis untuk mengambil detail tentang sasis sistem

# 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

Demikian pula, Anda menemukan informasi perangkat keras seperti prosesor, memori, cache, konektor, dan slot.

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

Ada tipe DMI; ID tipe DMI ini akan memberikan informasi tentang komponen perangkat keras tertentu dari sistem Anda. Ada lebih dari 100 jenis, sebagai contoh berikut adalah beberapa jenis id.

JENIS DMI

Spesifikasi SMBIOS mendefinisikan informasi jenis DMI berikut:

Ketik 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

Selain itu, tipe 126 digunakan untuk entri yang dinonaktifkan dan tipe 127 adalah penanda akhir tabel. Tipe 128 hingga 255 adalah untuk data khusus OEM. Dmidecode akan menampilkan entri ini secara default, tetapi hanya dapat mendekodekannya ketika vendor telah menyumbangkan dokumentasi atau kode untuk mereka.
Kata kunci dapat digunakan sebagai pengganti nomor tipe dengan --type. Setiap kata kunci setara dengan daftar nomor jenis:

Jenis Kata Kunci

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

bios 0, 13

sistem 1, 12, 15, 23, 32

alas tiang 2, 10

sasis 3

prosesor 4

memori 5, 6, 16, 17

tembolok 7

konektor 8

slot 9

5) Dapatkan informasi perangkat keras prosesor

Menggunakan id tipe kita bisa mendapatkan informasi prosesor

# 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) Dapatkan Kesalahan Memori 64-bit

Gunakan -t id untuk mendapatkan informasi kesalahan memori

# 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) Opsi grep untuk mendapatkan detail produk

Karena filenya besar, Anda dapat menggunakan perintah grep untuk mencari string yang Anda cari.

# dmidecode | grep -i prod

Kesimpulan

Tutorial ini kami mempelajari cara menggunakan perintah dmidecode dan opsinya untuk mendapatkan informasi perangkat keras yang berbeda. Saya harap Anda menikmati membaca dan silakan tinggalkan saran Anda.


Linux
  1. Perintah Linux untuk menampilkan informasi perangkat keras Anda

  2. dmidecode:Dapatkan Informasi Perangkat Keras Sistem Di Linux

  3. Cara menggunakan perintah ketik (menampilkan informasi tentang perintah) di Linux

  1. Cara menampilkan informasi paket tambahan menggunakan yum dan yumdb – RedHat Linux

  2. Linux – Mendapatkan Informasi Tentang Perangkat Keras Mesin Di Linux?

  3. Tampilan cocok ditemukan atau tidak menggunakan awk

  1. Tampilkan Informasi File Media Di Linux Menggunakan MediaInfo

  2. Cara Menampilkan Informasi Proses Menggunakan Procs Di Linux

  3. Mendapatkan informasi tentang perangkat keras mesin di Linux