Use dmidecode in linux to View hardware device information

Source: Internet
Author: User
In a linux system (CentOS64 and Ubuntu1204 have been confirmed), you can run the dmicode command to view the detailed information of the hardware device. The specific command & amp; 26684; format is: dmidecode-ttypecode, where typecode is the device type code, the specific code is as follows: 0

In a linux system (CentOS 6.4 and Ubuntu 12.04 have been confirmed), you can run the dmicode command to view the detailed information of the hardware device.

The command format is dmidecode-t typecode.

The typecode is the code of the device type. the code is as follows:

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

For example, you can use dmidecode-t 1 to view the motherboard information (manufacturer, model, serial number, and so on)

Dmidecode-t 4 can be used to view CPU information (CPU quantity, model, size, frequency, and so on)

Dmidecode-t 17 can be used to view memory information (number of slots, memory type, size, frequency, etc)

However, it seems that the hard disk information cannot be viewed. You can run the following command to view the hard disk information: dmesg | grep sda has less information, only the total size and block size. Cat/proc/scsi can obtain information about the scsi controller.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.