In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
Today, I would like to share with you the relevant knowledge of how to use the Linux dmidecode command. The content is detailed and the logic is clear. I believe most people still know too much about this knowledge, so share this article for your reference. I hope you can get something after reading this article. Let's take a look at it.
The common Linux command dmidecode allows you to get information about hardware on Linux systems. The function of dmidecode is to decode the information in the DMI database and display it in readable text.
Dmidecode acquires information about hardware under Linux system
It is added that because the DMI information can be artificially modified, the information in it is not necessarily systematic and accurate. Dmidecode follows the SMBIOS/DMI standard, and its output information includes BIOS, system, motherboard, processor, memory, cache, and so on.
DMI (Desktop Management Interface,DMI) is a management system that helps to collect computer system information. The collection of DMI information must be carried out in strict compliance with SMBIOS specifications. SMBIOS (System Management BIOS) is a unified specification for motherboards or system manufacturers to display product management information in a standard format. SMBIOS and DMI are open technical standards drafted by the industry guidance organization Desktop Management Task Force (DMTF), in which DMI design is suitable for any platform and operating system.
DMI acts as the interface between the management tool and the system layer. It establishes a standard manageable system that makes it easier for computer manufacturers and users to understand the system. The main component of DMI is the Management Information Format (MIF) database. This database contains all the information about computer systems and accessories. Through DMI, users can get serial number, computer manufacturer, serial port information and other system accessories information.
The syntax dmidecode [option] option-d: (default:/dev/mem) reads information from the device file, and the output is the same as the standard output without parameters. -h: displays help information. -s: displays only the information for the specified DMI string. (string)-t: displays only the information for the specified entry. (type)-u: displays the undecoded contents of the original entry. -- dump-bin file: dumps DMI data into a binary file. -- from-dump FILE: reads DMI data from a binary file. -V: displays version information. List of dmidecode parameters string and type:
(1) Valid string keywords are:
Bios-vendor
Bios-version
Bios-release-date
System-manufacturer
System-product-name
System-version
System-serial-number
System-uuid
Baseboard-manufacturer
Baseboard-product-name
Baseboard-version
Baseboard-serial-number
Baseboard-asset-tag
Chassis-manufacturer
Chassis-type
Chassis-version
Chassis-serial-number
Chassis-asset-tag
Processor-family
Processor-manufacturer
Processor-version
Processor-frequency
(2) Valid type keywords are:
Bios
System
Baseboard
Chassis
Processor
Memory
Cache
Connector
Slot
(3) list of all type codes:
BIOS
System
Base Board
Chassis
Processor
Memory Controller
Memory Module
Cache
Port Connector
System Slots
On Board Devices
OEM Strings
System Configuration Options
BIOS Language
Group Associations
System Event Log
Physical Memory Array
Memory Device
32-bit Memory Error
Memory Array Mapped Address
Memory Device Mapped Address
Built-in Pointing Device
Portable Battery
System Reset
Hardware Security
System Power Controls
Voltage Probe
Cooling Device
Temperature Probe
Electrical Current Probe
Out-of-band Remote Access
Boot Integrity Services
System Boot
64-bit Memory Error
Management Device
Management Device Component
Management Device Threshold Data
Memory Channel
IPMI Device
Power Supply
Additional Information
Onboard Device
Instance dmidecode-t 1 # View server information dmidecode | grep 'Product Name' # View server model dmidecode | grep' Serial Number' # View motherboard serial number dmidecode-t 2 # View motherboard information dmidecode-s system-serial-number # View system serial number dmidecode-t memory # View memory information dmidecode-t 11 # View OEM information dmidecode-t 17 # View number of memory entries dmidecode-t 16 # Query memory information dmidecode-t 4 # View CPU information cat / proc/scsi/scsi # View server hard disk information execute dmidecode command without options usually output all hardware information. The dmidecode command has a useful option-t, which outputs relevant information of a specified type, or if you want to get information about the processor, you can execute:
[root@localhost] # dmidecode-t processor # dmidecode 2.11 SMBIOS 2.5 present. Handle 0x0001, DMI type 4,40 bytes Processor Information Socket Designation: Node 1 Socket 1 Type: Central Processor Family: Xeon MP Manufacturer: Intel (R) Corporation id: C2 06 02 00 FF FB EB BF Signature: Type 0, Family 6, Model 44 Stepping 2 Flags: FPU (Floating-point unit on-chip) VME (Virtual mode extension) DE (Debugging extension) PSE (Page size extension) TSC (time stamp counter) MSR (Model specific registers) PAE (Physical address extension) MCE (Machine Check exception) CX8 (CMPXCHG8 instruction supported) APIC (On-chip APIC hardware supported) SEP (Fast system call) MTRR (Memory type range registers) PGE (Page global enable) MCA (Machine check architecture) CMOV (Conditional move instruction supported) PAT (Page attribute table) PSE-36 (36-bit page size extension) CLFSH (CLFLUSH instruction supported) DS (Debug store) ACPI (ACPI supported) MMX (MMX technology supported) FXSR (FXSAVE and FXSTOR instructions supported) SSE (Streaming SIMD extensions) SSE2 (Streaming SIMD extensions 2) Ss (Self-snoop) HTT (Multi-threading) TM (Thermal monitor supported) PBE (Pending break enabled) Version: Intel (R) Xeon (R) CPU E5620 @ 2.40GHz Voltage: 1.2 V External Clock: 5866 MHz Max Speed: 4400 MHz Current Speed: 2400 MHz Status: Populated Enabled Upgrade: ZIF Socket L1 Cache Handle: 0x0002 L2 Cache Handle: 0x0003 L3 Cache Handle: 0x0004 Serial Number: Not Specified Asset Tag: Not Specified Part Number: Not Specified Core Count: 4 Core Enabled: 4 Thread Count: 8 Characteristics: 64-bit capable Handle 0x0055, DMI type 4 40 bytes Processor Information Socket Designation: Node 1 Socket 2 Type: Central Processor Family: Xeon MP Manufacturer: Not Specified ID: 00 00 00 Signature: Type 0, Family 0, Model 0 Stepping 0 Flags: None Version: Not Specified Voltage: 1.2 V External Clock: 5866 MHz Max Speed: 4400 MHz Current Speed: Unknown Status: Unpopulated Upgrade: ZIF Socket L1 Cache Handle: Not Provided L2 Cache Handle: Not Provided L3 Cache Handle: Not Provided Serial Number: Not Specified Asset Tag: Not Specified Part Number: Not Specified Characteristics: None to check the number of slots in memory How many slots have been used. How much memory is each and how much memory has been used?
Dmidecode | grep-P-A5 "Memory\ s+Device" | grep Size | grep-v Range # Size: 2048 MB # Size: 2048 MB # Size: 4096 MB # Size: No Module Installed to view the maximum memory capacity supported by memory
Dmidecode | grep-P'Maximum\ memory Capacity` # Maximum Capacity: 16 GB frequency of viewing memory
Dmidecode | grep-A16 "Memory Device" # Memory Device # Array Handle: 0x1000 # Error Information Handle: Not Provided # Total Width: 72 bits # Data Width: 64 bits # Size: 2048 MB # Form Factor: DIMM # Set: 1 # Locator: DIMM_A1 # Bank Locator: Not Specified # Type: Synchronous Unbuffered (Unregistered) # Speed: 1333 MHz # Manufacturer: 00CE000080CE # Serial Number: 4830F3E1 # Asset Tag: 01093200 # Part Number: M391B5673EH1-CH9 #-# Memory Device # Array Handle: 0x1000 # Error Information Handle: Not Provided # Total Width: 72 bits # Data Width: 64 bits # Size: 2048 MB # Form Factor: DIMM # Set: 1 # Locator: DIMM_A2 # Bank Locator: Not Specified # Type: DDR3 # Type Detail: Synchronous Unbuffered (Unregistered) # Speed: 1333 MHz # Manufacturer: 00AD000080AD # Serial Number: 1BA1F0B5 # Asset Tag: 01110900 # Part Number: HMT325U7BFR8C-H9 #-dmidecode | grep-A16 "Memory Device" | grep 'Speed' # Speed: 1333 MHz # Speed: Unknown ``shell above are all the contents of the article "how to use Linux dmidecode commands" Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.