How to know the Hardware Details in Linux
Published: July 16, 2009 , Updated: July 16, 2009 , Author: mkyong
The “dmidecode” is a handy tool in Linux to display the hardware specification detail. For example, memory, processor , BIOS and etc.
man dmidecode
DMI TYPES
The SMBIOS specification defines the following DMI types:
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 SupplyIf we want to know our memory devide information in Linux. We can issue the following command. “17 Memory Device”
sudo dmidecode -t 17
# dmidecode 2.9 SMBIOS 2.4 present. Handle 0x001A, DMI type 17, 27 bytes Memory Device Array Handle: 0x0019 Error Information Handle: Not Provided Total Width: 64 bits Data Width: 64 bits Size: 2048 MB Form Factor: DIMM Set: None Locator: A0 Bank Locator: Bank0/1 Type: Unknown Type Detail: None Speed: 800 MHz (1.2 ns) Manufacturer: Serial Number: Asset Tag: Part Number:
If we want to know our processor information in Linux. We can issue the following command. “4 Processor”
sudo dmidecode -t 4
# dmidecode 2.9 SMBIOS 2.4 present. Handle 0x0004, DMI type 4, 35 bytes Processor Information Socket Designation: Socket 775 Type: Central Processor Family: Other Manufacturer: Intel ID: 77 06 01 00 FF FB EB BF Version: Intel(R) Core(TM)2 Quad CPU Voltage: 1.0 V External Clock: 333 MHz Max Speed: 4000 MHz Current Speed: 2333 MHz Status: Populated, Enabled Upgrade: Socket 478 L1 Cache Handle: 0x000A L2 Cache Handle: 0x000B L3 Cache Handle: Not Provided Serial Number: Asset Tag:
Any Java questions or problems? please post at this JavaNullPointer.com forum, see you there ~