dmidecode

硬件信息
dmidecode 命令可以查看CPU型号,主板型号,内存相关的型号.

dmidecode - DMI table decoder
使用方法 dmidecode [OPTIONS]

options

-d, —dev-mem FILE
Read memory from device FILE (default: /dev/mem)
-q, —quiet
Be less verbose. Unknown, inactive and OEM-specific entries are
not displayed. Meta-data and handle references are hidden.
Last login: Sat Jun 29 15:49:02 on ttys031
gaofeideMacBook:~ gaofei$ ssh root@47.100.119.187
root@47.100.119.187’s password:
Last login: Sat Jun 29 15:49:56 2019 from 112.23.112.125

Welcome to Alibaba Cloud Elastic Compute Service !

[root@izuf676tpj6wh2py3ogptyz ~]# dmideode
-bash: dmideode: 未找到命令
[root@izuf676tpj6wh2py3ogptyz ~]# dmidecode

dmidecode 3.0

Getting SMBIOS data from sysfs.
SMBIOS 2.8 present.
10 structures occupying 515 bytes.
Table at 0x000F0C80.

Handle 0x0000, DMI type 0, 24 bytes
BIOS Information
Vendor: SeaBIOS
Version: rel-1.7.5-0-ge51488c-20140602_164612-nilsson.home.kraxel.org
Release Date: 04/01/2014
Address: 0xE8000
Runtime Size: 96 kB
ROM Size: 64 kB
Characteristics:
BIOS characteristics not supported
Targeted content distribution is supported
BIOS Revision: 0.0

Handle 0x0100, DMI type 1, 27 bytes
System Information
Manufacturer: Alibaba Cloud
Product Name: Alibaba Cloud ECS
Version: pc-i440fx-2.1
Serial Number: 12d54642-06a9-4c27-861b-d230c27eb4f0
UUID: 12D54642-06A9-4C27-861B-D230C27EB4F0
Wake-up Type: Power Switch
SKU Number: Not Specified
Family: Not Specified

Handle 0x0300, DMI type 3, 21 bytes
Chassis Information
Manufacturer: Alibaba Cloud
Type: Other
Lock: Not Present
Version: pc-i440fx-2.1
Serial Number: Not Specified
Asset Tag: Not Specified
Boot-up State: Safe
Power Supply State: Safe
Thermal State: Safe
Security Status: Unknown
OEM Information: 0x00000000
Height: Unspecified
Number Of Power Cords: Unspecified
Contained Elements: 0

Handle 0x0400, DMI type 4, 42 bytes
Processor Information
Socket Designation: CPU 0
Type: Central Processor
Family: Other
Manufacturer: Alibaba Cloud
ID: 54 06 05 00 FF FB 8B 0F
Version: pc-i440fx-2.1
Voltage: Unknown
External Clock: Unknown
Max Speed: Unknown
Current Speed: Unknown
Status: Populated, Enabled
Upgrade: Other
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
Core Count: 1
Core Enabled: 1
Thread Count: 2
Characteristics: None

Handle 0x1000, DMI type 16, 23 bytes
Physical Memory Array
Location: Other
Use: System Memory
Error Correction Type: Multi-bit ECC
Maximum Capacity: 4 GB
Error Information Handle: Not Provided
Number Of Devices: 1

Handle 0x1100, DMI type 17, 40 bytes
Memory Device
Array Handle: 0x1000
Error Information Handle: Not Provided
Total Width: Unknown
Data Width: Unknown
Size: 4096 MB
Form Factor: DIMM
Set: None
Locator: DIMM 0
Bank Locator: Not Specified
Type: RAM
Type Detail: Other
Speed: Unknown
Manufacturer: Alibaba Cloud
Serial Number: Not Specified
Asset Tag: Not Specified
Part Number: Not Specified
Rank: Unknown
Configured Clock Speed: Unknown
Minimum Voltage: Unknown
Maximum Voltage: Unknown
Configured Voltage: Unknown

Handle 0x1300, DMI type 19, 31 bytes
Memory Array Mapped Address
Starting Address: 0x00000000000
Ending Address: 0x000BFFFFFFF
Range Size: 3 GB
Physical Array Handle: 0x1000
Partition Width: 1

Handle 0x1301, DMI type 19, 31 bytes
Memory Array Mapped Address
Starting Address: 0x00100000000
Ending Address: 0x0013FFFFFFF
Range Size: 1 GB
Physical Array Handle: 0x1000
Partition Width: 1

Handle 0x2000, DMI type 32, 11 bytes
System Boot Information
Status: No errors detected

Handle 0x7F00, DMI type 127, 4 bytes
End Of Table

[root@izuf676tpj6wh2py3ogptyz ~]# man dmidecode

  1. ence each other. For example, processor records usually reference
  2. cache memory records using their handles.
  3. · A type. The SMBIOS specification defines different types of elements
  4. a computer can be made of. In this example, the type is 2, which
  5. means that the record contains "Base Board Information".
  6. · A size. Each record has a 4-byte header (2 for the handle, 1 for the
  7. type, 1 for the size), the rest is used by the record data. This
  8. value doesn't take text strings into account (these are placed at the
  9. end of the record), so the actual length of the record may be (and is
  10. often) greater than the displayed value.
  11. · Decoded values. The information presented of course depends on the
  12. type of record. Here, we learn about the board's manufacturer, model,
  13. version and serial number.

OPTIONS
-d, —dev-mem FILE
Read memory from device FILE (default: /dev/mem)

  1. -q, --quiet
  2. Be less verbose. Unknown, inactive and OEM-specific entries are
  3. not displayed. Meta-data and handle references are hidden.
  4. -s, --string KEYWORD
  5. Only display the value of the DMI string identified by KEYWORD.
  6. KEYWORD must be a keyword from the following list: bios-vendor,
  7. bios-version, bios-release-date, system-manufacturer, system-
  8. product-name, system-version, system-serial-number, system-uuid,
  9. baseboard-manufacturer, baseboard-product-name, baseboard-ver
  10. sion, baseboard-serial-number, baseboard-asset-tag, chassis-man
  11. ufacturer, chassis-type, chassis-version, chassis-serial-number,
  12. chassis-asset-tag, processor-family, processor-manufacturer,
  13. processor-version, processor-frequency. Each keyword corre
  14. sponds to a given DMI type and a given offset within this entry
  15. type. Not all strings may be meaningful or even defined on all
  16. systems. Some keywords may return more than one result on some
  17. systems (e.g. processor-version on a multi-processor system).
  18. If KEYWORD is not provided or not valid, a list of all valid
  19. keywords is printed and dmidecode exits with an error. This
  20. option cannot be used more than once.
  21. Note: on Linux, most of these strings can alternatively be read
  22. directly from sysfs, typically from files under
  23. /sys/devices/virtual/dmi/id. Most of these files are even read
  24. able by regular users.

-t, —type TYPE
Only display the entries of type TYPE. TYPE can be either a DMI
type number, or a comma-separated list of type numbers, or a
keyword from the following list: bios, system, baseboard, chas‐
sis, processor, memory, cache, connector, slot. Refer to the DMI
TYPES section below for details. If this option is used more
than once, the set of displayed entries will be the union of all
the given types. If TYPE is not provided or not valid, a list
of all valid keywords is printed and dmidecode exits with an
error.
-u, —dump
Do not decode the entries, dump their contents as hexadecimal
instead. Note that this is still a text output, no binary data
will be thrown upon you. The strings attached to each entry are
displayed as both hexadecimal and ASCII. This option is mainly
useful for debugging.

  1. --dump-bin FILE
  2. Do not decode the entries, instead dump the DMI data to a file
  3. in binary form. The generated file is suitable to pass to
  4. --from-dump later.
  5. --from-dump FILE
  6. Read the DMI data from a binary file previously generated using
  7. --dump-bin.
  8. --no-sysfs
  9. Do not attempt to read DMI data from sysfs files. This is mainly
  10. useful for debugging.

-h, —help
Display usage information and exit
-V, —version
Display the version and exit
Options —string, —type and —dump-bin determine the output format and
are mutually exclusive.
Please note in case of dmidecode is run on a system with BIOS that
boasts new SMBIOS specification, which is not supported by the tool
yet, it will print out relevant message in addition to requested data
on the very top of the output. Thus informs the output data is not
reliable.
Last login: Sat Jun 29 15:49:02 on ttys031
gaofeideMacBook:~ gaofei$ ssh root@47.100.119.187
root@47.100.119.187’s password:
Last login: Sat Jun 29 15:49:56 2019 from 112.23.112.125

Welcome to Alibaba Cloud Elastic Compute Service !

[root@izuf676tpj6wh2py3ogptyz ~]# dmideode
-bash: dmideode: 未找到命令
[root@izuf676tpj6wh2py3ogptyz ~]# dmidecode

dmidecode 3.0

Getting SMBIOS data from sysfs.
SMBIOS 2.8 present.
10 structures occupying 515 bytes.
Table at 0x000F0C80.

Handle 0x0000, DMI type 0, 24 bytes
BIOS Information
Vendor: SeaBIOS
Version: rel-1.7.5-0-ge51488c-20140602_164612-nilsson.home.kraxel.org
Release Date: 04/01/2014
Address: 0xE8000
Runtime Size: 96 kB
ROM Size: 64 kB
Characteristics:
BIOS characteristics not supported
Targeted content distribution is supported
BIOS Revision: 0.0

Handle 0x0100, DMI type 1, 27 bytes
System Information
Manufacturer: Alibaba Cloud
Product Name: Alibaba Cloud ECS
Version: pc-i440fx-2.1
Serial Number: 12d54642-06a9-4c27-861b-d230c27eb4f0
UUID: 12D54642-06A9-4C27-861B-D230C27EB4F0
Wake-up Type: Power Switch
SKU Number: Not Specified
Family: Not Specified

Handle 0x0300, DMI type 3, 21 bytes
Chassis Information
Manufacturer: Alibaba Cloud
Type: Other
Lock: Not Present
Version: pc-i440fx-2.1
Serial Number: Not Specified
Asset Tag: Not Specified
Boot-up State: Safe
Power Supply State: Safe
Thermal State: Safe
Security Status: Unknown
OEM Information: 0x00000000
Height: Unspecified
Number Of Power Cords: Unspecified
Contained Elements: 0

Handle 0x0400, DMI type 4, 42 bytes
Processor Information
Socket Designation: CPU 0
Type: Central Processor
Family: Other
Manufacturer: Alibaba Cloud
ID: 54 06 05 00 FF FB 8B 0F
Version: pc-i440fx-2.1
Voltage: Unknown
External Clock: Unknown
Max Speed: Unknown
Current Speed: Unknown
Status: Populated, Enabled
Upgrade: Other
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
Core Count: 1
Core Enabled: 1
Thread Count: 2
Characteristics: None

Handle 0x1000, DMI type 16, 23 bytes
Physical Memory Array
Location: Other
Use: System Memory
Error Correction Type: Multi-bit ECC
Maximum Capacity: 4 GB
Error Information Handle: Not Provided
Number Of Devices: 1

Handle 0x1100, DMI type 17, 40 bytes
Memory Device
Array Handle: 0x1000
Error Information Handle: Not Provided
Total Width: Unknown
Data Width: Unknown
Size: 4096 MB
Form Factor: DIMM
Set: None
Locator: DIMM 0
Bank Locator: Not Specified
Type: RAM
Type Detail: Other
Speed: Unknown
Manufacturer: Alibaba Cloud
Serial Number: Not Specified
Asset Tag: Not Specified
Part Number: Not Specified
Rank: Unknown
Configured Clock Speed: Unknown
Minimum Voltage: Unknown
Maximum Voltage: Unknown
Configured Voltage: Unknown

Handle 0x1300, DMI type 19, 31 bytes
Memory Array Mapped Address
Starting Address: 0x00000000000
Ending Address: 0x000BFFFFFFF
Range Size: 3 GB
Physical Array Handle: 0x1000
Partition Width: 1

Handle 0x1301, DMI type 19, 31 bytes
Memory Array Mapped Address
Starting Address: 0x00100000000
Ending Address: 0x0013FFFFFFF
Range Size: 1 GB
Physical Array Handle: 0x1000
Partition Width: 1

Handle 0x2000, DMI type 32, 11 bytes
System Boot Information
Status: No errors detected

Handle 0x7F00, DMI type 127, 4 bytes
End Of Table

[root@izuf676tpj6wh2py3ogptyz ~]# man dmidecode

  1. dmidecode will display these entries by default, but it can only decode
  2. them when the vendors have contributed documentation or code for them.
  3. Keywords can be used instead of type numbers with --type. Each keyword
  4. is equivalent to a list of type numbers:
  5. Keyword Types
  6. ──────────────────────────────
  7. bios 0, 13
  8. system 1, 12, 15, 23, 32
  9. baseboard 2, 10, 41
  10. chassis 3
  11. processor 4
  12. memory 5, 6, 16, 17
  13. cache 7
  14. connector 8
  15. slot 9
  16. Keywords are matched case-insensitively. The following command lines
  17. are equivalent:
  18. · dmidecode --type 0 --type 13
  19. · dmidecode --type 0,13
  20. · dmidecode --type bios
  21. · dmidecode --type BIOS

BINARY DUMP FILE FORMAT
The binary dump files generated by —dump-bin and read using —from-
dump are formatted as follows:

  1. · The SMBIOS or DMI entry point is located at offset 0x00. It is
  2. crafted to hard-code the table address at offset 0x20.
  3. · The DMI table is located at offset 0x20.

FILES
/dev/mem /sys/firmware/dmi/tables/smbios_entry_point (Linux only)
/sys/firmware/dmi/tables/DMI (Linux only)