본문 바로가기

리눅스

하드웨어 정보 확인하기 | dmidecode 명령어

반응형

하드웨어 정보 확인하기 | dmidecode 명령어

Linux 시스템에서는 dmidecode 명령어를 사용하여 서버의 하드웨어 정보를 확인할 수 있습니다.

 

dmidecode는 DMI(Desktop Management Interface) 또는 SMBIOS(System Management BIOS) 테이블을 읽어 다음과 같은 정보를 제공합니다.

  • BIOS 정보
  • 시스템 제조사
  • 메인보드 정보
  • CPU 정보
  • 메모리(RAM) 정보
  • 전원 및 센서 정보

이 명령어는 서버 운영 및 하드웨어 점검 시 매우 유용하게 사용됩니다.

1. DMI (Desktop Management Interface)

DMI는 시스템 하드웨어 정보를 관리하기 위한 표준 인터페이스입니다.

운영체제는 BIOS에 저장된 SMBIOS 테이블을 통해 하드웨어 정보를 조회할 수 있습니다.

 

dmidecode는 이 SMBIOS 데이터를 읽어 사람이 이해하기 쉬운 형태로 출력합니다.

2. DMI 테이블 구조 확인

DMI 레코드 개수 확인

dmidecode | grep ^Handle | wc -l
$ dmidecode | grep ^Handle | wc -l
23

전체 DMI 구조 크기 확인

dmidecode | grep structures
$ dmidecode | grep structures
23 structures occupying 1182 bytes.

3. 주요 DMI 타입

SMBIOS에서는 다양한 하드웨어 정보를 Type 번호로 구분합니다.

DMI TYPES
The SMBIOS specification defines the following DMI types:

Type   Information
--------------------------------------------
  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
 
Keyword     Types
------------------------------
bios        0, 13
system      1, 12, 15, 23, 32
baseboard   2, 10, 41
chassis     3
processor   4
memory      5, 6, 16, 17
cache       7
connector   8
slot        9
728x90

4. CPU 정보 확인

CPU 정보를 확인하려면 Type 4를 조회합니다.

dmidecode -t 4
$ dmidecode -t 4
# dmidecode 2.11
SMBIOS 2.5 present.

Handle 0x0004, DMI type 4, 40 bytes
Processor Information
 Socket Designation: CPUSocket
 Type: Central Processor
 Family: Pentium
 Manufacturer: Intel           
 ID: 7A 06 01 00 FF FB EB BF
 Signature: Type 0, Family 6, Model 23, Stepping

5. 메인보드(Baseboard) 정보 확인

메인보드 정보는 Type 2로 확인할 수 있습니다.

dmidecode -t 2
$ dmidecode -t 2
# dmidecode 2.11
SMBIOS 2.5 present.

Handle 0x0002, DMI type 2, 15 bytes
Base Board Information
 Manufacturer: ASRock
 Product Name: G41M-S3
 Version:                      
 Serial Number:                      
 Asset Tag:                      
 Features:
  Board is a hosting board
  Board is replaceable
 Location In Chassis:                      
 Chassis Handle: 0x0003
 Type: Motherboard
 Contained Object Handles: 0

6. 메모리(RAM) 전체 정보 확인

전체 메모리 배열 정보는 Type 16에서 확인할 수 있습니다.

dmidecode -t 16
$ dmidecode -t 16
# dmidecode 2.11
SMBIOS 2.5 present.

Handle 0x000F, 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: 2

7. RAM 슬롯 정보 확인

각 RAM 슬롯의 상세 정보는 Type 17에서 확인할 수 있습니다.

dmidecode -t 17
$ dmidecode -t 17
# dmidecode 2.11
SMBIOS 2.5 present.

Handle 0x0011, DMI type 17, 27 bytes
Memory Device
 Array Handle: 0x000F
 Error Information Handle: Not Provided
 Total Width: 64 bits
 Data Width: 64 bits
 Size: 2048 MB
 Form Factor: DIMM
 Set: None
 Locator: DIMM0
 Bank Locator: BANK0
 Type: SDRAM
 Type Detail: Synchronous
 Speed: Unknown
 Manufacturer: Manufacturer00
 Serial Number: SerNum00
 Asset Tag: AssetTagNum0
 Part Number: ModulePartNumber00

Handle 0x0013, DMI type 17, 27 bytes
Memory Device
 Array Handle: 0x000F
 Error Information Handle: Not Provided
 Total Width: 64 bits
 Data Width: 64 bits
 Size: 2048 MB
 Form Factor: DIMM
 Set: None
 Locator: DIMM1
 Bank Locator: BANK1
 Type: SDRAM
 Type Detail: Synchronous
 Speed: Unknown
 Manufacturer: Manufacturer01
 Serial Number: SerNum01
 Asset Tag: AssetTagNum1
 Part Number: ModulePartNumber01

8. dmidecode 활용 예제

BIOS 정보 확인

dmidecode -t bios

시스템 정보 확인

dmidecode -t system

전체 메모리 정보 확인

dmidecode -t memory

특정 키워드 검색(serial)

dmidecode | grep -i serial

9. 도움말 확인

dmidecode의 전체 옵션은 다음 명령어로 확인할 수 있습니다.

man dmidecode

 

728x90
반응형

'리눅스' 카테고리의 다른 글

John the Ripper 소스 컴파일 설치 및 사용 방법  (0) 2013.07.02
[보안취약점] 계정 잠금 임계값 설정  (1) 2013.07.02
How to Install Webalizer on CentOS 8  (0) 2013.06.28
ls 명령어  (0) 2013.06.28
vixie-cron 패키지  (0) 2013.06.27