리눅스 하드웨어 정보 확인 dmidecode 명령어 사용방법

dmidecode 옵션 모음

dmidecode는 DMI(Desktop Management Interface)를 dumping하여 읽을 수 있는 형태로 보여주는 명령어 입니다.

쉽게 말해서 하드웨어 정보를 나타내주는 명령어라고 생각하시면 됩니다.
dmidecode 명령어를 사용해서 하드웨어 정보들을 확인할 수 있습니다.

command not found dmidecode가 나온다면
yum -y install dmidecode* 명령어를 사용해서 패키지 설치를 진행해 주세요

 

dmidecode 를 직접 입력하면 정보가 너무 많기 때문에 가시성이 떨어집니다 그렇기에 보통 옵션을 넣어서 필요한 정보만 뽑아냅니다.

 

옵션

dmidecode [OPTIONS]

 

-d, --dev-mem FILE Read memory from device FILE (default: /dev/mem)
-h, --help Display this help text and exit
-q, --quiet Less verbose output
-s, --string KEYWORD Only display the value of the given DMI string
-t, --type TYPE Only display the entries of given type
-u, --dump Do not decode the entries
--dump-bin FILE Dump the DMI data to a binary file
--from-dump FILE Read the DMI data from a binary file

일반적으로-s -t 옵션을 사용
-s 키워드를 통해 단순한 정보
-t type 옵션으로 자세한 정보를 취득

 

dmidecode -t

-t 옵션 값

원하시는 정보의 숫자를 옵션 값으로 입력하시면 출력 가능

0 BIOS
1 System
2 Baseboard
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
40 Additional Information
41 Onboard Devices Extended Information
42 Management Controller Host Interface

 

 

BIOS 정보

dmidecode -s baseboard-serial-number
dmidecode -s bios-version

bios 정보 출력

 

메인보드 정보

dmidecode -t 2

메인보드 정보 출력

 

메모리

dmidecode -t memory |grep -i size
dmidecode -t memory |grep -I locator
dmidecode -t memory |grep -I speed
dmidecode -t memory |grep -I manufacture
dmidecode -t memory |grep -I assettag





댓글

Designed by JB FACTORY