Helpful dmidecode Instructions for Linux


Prime 40 Helpful dmidecode Instructions for Linux

The dmidecode command in Linux permits customers to retrieve delicate hardware-related info immediately from the command line. This fashion, customers can receive helpful info like serial numbers and processor cache values with out taking aside their CPUs. In Linux, the dmidecode is called the DMI desk decoder, and it merely decodes {hardware} info from the SMBIOS (System Administration BIOS) of your system. When used rigorously, dmidecode can present an in depth quantity of fascinating info. That’s why we have now curated this information outlining among the most superb issues you possibly can do with dmidecode. Proceed studying to grasp these instructions completely.

dmidecode Instructions for Linux Geeks

We will get a plethora of data associated to the system, bios, processor, reminiscence, baseboard, and different important {hardware} elements utilizing dmidecode. Though most instructions are fairly easy and self-explanatory, new customers typically discover them arduous, primarily as a consequence of unfamiliarity. You’ll be able to take a look at the beneath instructions to be taught the workings of dmidecode in additional element.


1. Print Whole DMI Data

The only software of the dmidecode command gives all the knowledge obtainable in your DMI (Desktop Administration Interface) desk. This command merely fetches the binary encoded information and decodes it earlier than presenting the textual content values in your Linux terminal emulator.

$ sudo dmidecode

You’ll require sudo privilege or might even use your root account for testing these instructions. The DMI desk incorporates entries for greater than forty varieties. Every kind normally incorporates info associated to a selected {hardware} element. You’ll know extra about them as you progress.

2. Scroll By way of DMI Contents

As it’s best to already discover, merely operating dmidecode yields plenty of info. It typically proves tough to discover via this huge quantity of knowledge and discover the knowledge we’re fascinated about. Fortunately, we are able to pipe this information via instructions like much less/extra and scroll over them with some management.

$ sudo dmidecode | much less
$ sudo dmidecode | extra

We discovered much less to be extra helpful since we are able to then scroll over the dmidecode output utilizing PageUp and PageDown.

3. Suppress Unreliable Information

Because the DMI desk incorporates many unknown/non-existing entries, customers would possibly need to scale back these fields as a lot potential. Fortunately, we are able to make the most of the -q or –quiet choice to do precisely this. Check out the subsequent command to see how this works.

$ sudo dmidecode -q | much less
$ sudo dmidecode --quiet | much less

Now, dmidecode will turn out to be much less verbose and omit plenty of non-specified info. Most metadata and deal with references will disappear from its output.

4. Dump DMI Contents in Hexadecimal

Linux dmidecode permits customers to dump the contents of the DMI with out decoding them. This fashion, you’re going to get hexadecimal information, that are very helpful in debugging CPU points. Observe that, dmidecode is not going to output binary information in such circumstances, however easy textual content with hexadecimal and ASCII contents.

$ sudo dmidecode -u | much less
$ sudo dmidecode --dump | much less

So, merely including the -u or –-dump choice to dmidecode will do that job. You’ll be able to scroll over the output to see the way it appears. It ought to include each hex and string values.

5. Dump Binary Output

It can save you the contents of your DMI desk in a binary format utilizing dmidecode. This will turn out to be useful in various conditions. For one, you may relocate your DMI information amongst completely different workstations and possibly examine them later. Check out the beneath illustration to grasp this in additional element.

$ sudo dmidecode --dump-bin TEST

Now the DMI values will probably be saved within the file referred to as TEST in a binary format. You need to use customary Linux instruments like cat and file to confirm this information.

6. Learn Saved Information

Linux and BSD customers may retrieve DMI entries from pre-stored binary information. The beneath command demonstrates learn the {hardware} info saved within the earlier instance. We might want to use the –from-dump choice to allow this.

$ sudo dmidecode --from-dump TEST

This command tells dmidecode to learn the binary file TEST and decode the DMI information encoded on this doc. It’s typically helpful for debugging legacy machines and lots of different circumstances.

7. Specify System File

By default, dmidecode reads the reminiscence info from the file /dev/mem. It is a low-level system file that gives entry to the bodily reminiscence of Linux machines. You’ll be able to inform dmidecode to learn a special gadget file utilizing the -d or –dev-mem possibility.

$ sudo dmidecode -d FILE
$ sudo dmidecode --dev-mem FILE

Nonetheless, we don’t encourage you to make use of completely different gadget information until you realize what you’re entering into. It stays an possibility, that’s all.

8. Show System Producer

One of many best but helpful usages of dmidecode will be illustrated utilizing a easy instance. You’ll be able to print out the identify of your system producer utilizing the -s or –string possibility. Check out the subsequent instance to see how this works.

$ sudo dmidecode -s system-manufacturer
$ sudo dmidecode --string system-manufacturer

So by sending the key phrase system-manufacturer because the argument to -s, we get the identify of the system producer.

9. Show Product Identify

The next command demonstrates one other utilization of the above possibility and prints out the identify of your system product. For example, this command will print out the mannequin variety of your laptop computer.

$ sudo dmidecode -s system-product-name
$ sudo dmidecode --string system-product-name

We will additionally get this information utilizing dmidecode varieties and filter out irrelevant info utilizing the Linux grep command. Attempt utilizing this command to retrieve the mannequin quantity your self.

10. Show Serial Quantity

One customary use of dmidecode command is to print out the serial variety of your system. You’ll be able to retrieve the serial variety of your laptops very simply utilizing the next dmidecode command.

$ sudo dmidecode -s system-serial-number
$ sudo dmidecode --string system-serial-number

This command prints out the serial variety of my Sony VAIO Pocket book. It ought to work effortlessly with different fashions too.

11. Show System UUID

The UUID is a Universally Distinctive Identifier used for system identification and different duties. You need to use dmidecode to print out your system UUID effortlessly. Check out the beneath command to see how this works intimately.

$ sudo dmidecode -s system-uuid
$ sudo dmidecode --string system-uuid

So that you simply have to go the key phrase system-uuid because the argument to the –string parameter to acquire the UUID worth.

12. Show BIOS Vendor

The BIOS (Fundamental Enter Output System) is chargeable for the initialization of our machines at boot time. There are a number of fashionable BIOS distributors on the market, together with American MegatrendsInsyde Software program, and Phoenix Applied sciences. The dmidecode software additionally permits customers to print out the identify of the BIOS vendor, as proven beneath.

$ sudo dmidecode -s bios-vendor
$ sudo dmidecode --string bios-vendor

After I run this command in my workstation, it exhibits that my BIOS was developed by Insyde Corp.

13. Show BIOS Model

BIOS model is helpful info for a lot of customers because it’s arduous to carry out some BIOS-specific operations with out figuring out this. It’s typically helpful when figuring out BIOS updates and so forth. The next command illustrates retrieve this info utilizing dmidecode.

$ sudo dmidecode -s bios-vendor
$ sudo dmidecode --string bios-vendor

It is a useful command with many sensible use circumstances. So take a great have a look at it.

14. Show BIOS Launch Date

We are actually illustrating using dmidecode in retrieving the discharge date of your system’s BIOS. This info will probably be useful for customers who need to replace or modify their firmware manually.

$ sudo dmidecode -s bios-release-date
$ sudo dmidecode --string bios-release-date

For example, I’ve simply came upon that my VAIO pocket book has a reasonably current firmware utilizing this command. Examine yours too, and see for your self.

15. Show Baseboard Identify

The motherboard or mainboard is likely one of the most vital {hardware} elements of your system. It is usually referred to as baseboard and system board. You’ll be able to go the key phrase baseboard-product-name as an argument to the –string parameter for acquiring this info.

$ sudo dmidecode -s baseboard-product-name
$ sudo dmidecode --string baseboard-product-name

Different helpful mainboard-related info offered by the dmidecode command are the serial quantity, model, and asset tag.

16. Show Baseboard Vendor

Just like the BIOS producer, dmidecode additionally gives us the seller identify for our mainboard. Take a fast have a look at the beneath illustration to see how this works.

$ sudo dmidecode -s baseboard-manufacturer
$ sudo dmidecode --string baseboard-manufacturer

So, you may seize the identify of your motherboard’s producer by merely passing the baseboard-manufacturer key phrase because the argument for -s or –string. Bear in mind to prefix your command with sudo, or else it is not going to work.

17. Show Baseboard Serial Quantity

The serial variety of your baseboard is a novel identifier and will come helpful when troubleshooting {hardware} issues. You’ll be able to simply seize this serial utilizing dmidecode and use this info to see whether or not your product is genuine or not.

$ sudo dmidecode --string baseboard-serial-number

Nonetheless, many older programs might not include this worth of their DMI desk, and on this case, dmidecode can’t present the reply.

18. Show Processor Household

Processors are the core element of our system. They’re normally grouped in response to options and ranges. You’ll be able to simply discover out the processor household utilizing dmidecode. Take an in depth have a look at the subsequent instance to see this in motion.

$ sudo dmidecode -s processor-family
$ sudo dmidecode --string processor-family

For instance, I simply verified that my workstation is powered by a processor that belongs to the Intel Core i7 household. Do this your self and confirm whether or not you’re getting the anticipated consequence.

19. Show Processor Mannequin

As we have now already mentioned, the processor household is a generalized group and doesn’t present us the precise mannequin quantity. Fortunately, you should utilize dmidecode software to search out out the precise mannequin of your processor. See the beneath instance to learn the way this works.

$ sudo dmidecode -s processor-version
$ sudo dmidecode --string processor-version

So, we simply have to go the key phrase processor-version as the worth of the -s or –string parameter. It’s best to get the correct mannequin of your processor.

20. Show Processor Frequency

The clock charge or frequency of the processor is essential to its efficiency. Normally, efficiency will increase with a rise in frequency. Producers usually tune their merchandise in a means, in order that processor velocity is saved round a base velocity, which is commonly decrease than the processor’s functionality.

$ sudo dmidecode -s processor-frequency
$ sudo dmidecode --string processor-frequency

We will retrieve way more extra details about the processor utilizing the Linux dmidecode command. You’ll be taught extra about them as you proceed.

21. Show System Properties

We will additionally dump DMI entries based mostly on their varieties. The DMI desk incorporates 42 completely different DMI varieties, every representing elements just like the chassis, processor, reminiscence, and many others. Check out the subsequent instance and see retrieve system properties from the SMBIOS utilizing varieties.

$ sudo dmidecode -t 1
$ sudo dmidecode --type system

The -t or –kind possibility can take both a key phrase or a sort id. There are a number of kinds of ids for a number of elements. For instance, the system kind has ids 1, 12, 15, 23, 32. Kind 12 represents System Configuration Choices, 15 represents System Occasion Log, 23 represents System Reset, and System Boot is represented by 32.

22. Show Baseboard Properties

The baseboard properties are represented by DMI varieties 2, 10, and 41. Kind 2 gives total baseboard properties, whereas the latter two offers details about onboard units.

$ sudo dmidecode --type 2
$ sudo dmidecode --type baseboard

Nonetheless, there’s a small distinction within the output produced by the above instructions. When the sort id is used, dmidecode gives the precise DMI entries for that kind. However if you use the sort key phrase, all DMI entries related to that key phrase are displayed.

23. Show Processor Properties

The beneath instructions will illustrate retrieve processor info utilizing DMI varieties. The processor kind solely has one kind of id, specifically 4. So it’s fairly easy to fetch.

$ sudo dmidecode --type 4
$ sudo dmidecode --type processor

We get plenty of details about the processor just like the processor household, producer, kind, mannequin, energetic flags, advert so on. Additionally, you will discover out the utmost frequency supported by your processor and its at the moment set worth from this output.

24. Show Reminiscence Properties

The reminiscence elements embody the Reminiscence Controller, Reminiscence Module, Bodily Reminiscence Array, and Reminiscence Units. They’ve the next DMI varieties, respectively – 5, 6, 16, 17. Check out how we retrieve reminiscence properties utilizing dmidecode varieties.

$ sudo dmidecode --type reminiscence

This command gives details about the variety of put in RAMs, their type issue, kind, measurement, bus velocity, and lots of extra. Many SMBIOS doesn’t present anticipated information when kind ids are used. Thus, we advocate you to make use of the sort identifier for this command.

25. Show Cache Properties

The cache is likely one of the most necessary elements of your system. Though you could not know this, cache speeds have extra affect on efficiency than processing frequency. Trendy processors normally have a number of caches, divided into completely different ranges. We will simply seize the cache properties of Linux machines utilizing the beneath dmidecode command.

$ sudo dmidecode --type 7
$ sudo dmidecode --type cache

Each of those instructions present helpful info on caches reminiscent of their sizes, associativity, configuration, and lots of extra.

26. Show Chassis Properties

The chassis properties turn out to be useful if you plan system upgrades or need to troubleshoot potential {hardware} issues. Like different system elements, we are able to additionally retrieve chassis properties utilizing dmidecode kind. You’ll be able to both use the chassis key phrase or its kind, which is 3.

$ sudo dmidecode --type 3
$ sudo dmidecode --type chassis

They supply plenty of info reminiscent of chassis kind, producer, serial, boot state, thermal state, and so forth. Nonetheless, all SMBIOS doesn’t include correct chassis information. So make sure to confirm these information.

27. Show OEM Strings

You’ll be able to print out the OEM strings of your system utilizing dmidecode. These are free-form information saved by the SMBIOS and may change after firmware updates. Check out the next instructions to see them in motion.

$ sudo dmidecode --type 11

There isn’t any pre-defined key phrase for this DMI kind. So you’ll need to make use of the sort id as a substitute. OEM values normally include details about the unique system producer.

28. Show Bodily Vary of Reminiscence

One fascinating characteristic of dmidecode is that it permits us to visualise your complete bodily vary of your DIMM RAMs. You need to use the sort id 20 for that. It represents the DMI entry Reminiscence System Mapped Deal with.

$ sudo dmidecode --type 20

Operating this command will show your complete bodily vary of the DIMMs alongside their handles, row place, and interleaved positions. There isn’t any specified key phrase for this sort, so that you’ll want to make use of the id right here.

29. Show Boot Standing

The boot standing of your system incorporates helpful info just like the presence of errors and so forth. It’s typically a good suggestion to verify your boot standing when troubleshooting points like system boot failure, automated shutdown, and such. The beneath instance makes use of dmidecode varieties to carry out this job.

$ sudo dmidecode --type 32

You may also get this info utilizing the system key phrase. Nonetheless, that consequence will include extra extra info.

30. Show Core and Thread Depend

Trendy processors present a number of cores and threads for higher utilization of CPU sources. The core is an precise {hardware} element, whereas thread is a digital element. Processors permit multi-tasking skills utilizing these elements. The beneath dmidecode command retrieves the variety of processor cores and threads obtainable in your machine.

$ sudo dmidecode --type 4 | grep -iw depend

It’s best to get a transparent consequence after operating this command. We’ve merely used the Linux grep command to filter out the knowledge we’re fascinated about.

31. Show Processor Speeds

Linux and BSD customers can use dmidecode to print out the velocity of their processors. Processors normally have speeds in MHz or GHz. System producers typically tune down the processor velocity for stopping overheating and such. The beneath command prints out the max velocity supported by your processor and its present velocity.

$ sudo dmidecode --type 4 | grep -i velocity

This info will be helpful if you wish to overclock your processor or troubleshoot heating points. Nonetheless, it’s best to by no means overclock until you realize what you’re entering into.

32. Show Boot Choices

Linux boot loaders are chargeable for beginning your system in response to the boot desk. Trendy working programs provide a number of booting choices reminiscent of USB boot, CD boot, and community boots. You need to use the dmidecode utility to search out out what booting choices are supported by your BIOS.

$ sudo dmidecode --type 0 | grep -i boot

The above command notifies me that my BIOS helps selectable boot, boot from CD/USB, and community boot. Do this command in your favourite Linux terminal to see yours.

33. Show Cache Sizes

Trendy processors include a number of ranges of caches. Decrease degree caches are quicker however smaller. Larger-level caches are bigger however significantly slower. You need to use dmidecode to print out your cache ranges and their sizes. Check out the beneath command to see this in motion.

$ sudo dmidecode --type 7 | grep -i measurement

This command exhibits the put in measurement and most measurement of your processor caches. You’ll be able to substitute the scale parameter for grep and get extra particular information. Go to this information to be taught extra about Linux grep instructions.

34. Show RAM Speeds

RAM or Reminiscence is likely one of the most vital parts of any system. Many customers don’t set up the suitable RAM modules for his or her system. This leads to a efficiency lower. Use the beneath dmidecode command to see your RAM speeds.

$ sudo dmidecode --type 17 | grep -i velocity

It’ll present info on the variety of obtainable RAM slots, most supported velocity, and at the moment configured velocity. So should you’re trying to improve your reminiscence, quick verify your present reminiscence after which take your selections.

35. Show Most RAM Capability

Most programs can solely home a restricted quantity of RAM. It’s essential to know the utmost RAM capability supported by your system if you wish to improve your construct in a while. The next dmidecode instance can be utilized to retrieve this capability out of your favourite Linux shell.

$ sudo dmidecode --type 16 | grep -i most

It is a quite simple however efficient instance of dmidecode. Beginning Linux, customers can be taught loads about their system utilizing these helpful instructions.

36. Show Put in RAM Capability

We realized to view the utmost RAM capability supported by our machine within the earlier instance. The beneath instance demonstrates discover the scale of at the moment put in RAM.

$ sudo dmidecode --type 17 | grep -i measurement

This command will present you the at the moment put in RAM capability in your reminiscence slots. Most programs normally present multiple RAM slot. So, you may simply decide the quantity of extra RAM supported by your machine. If any of the slots doesn’t have any RAM put in in them, you’re going to get a notification saying no module put in.

37. Show Chassis Serial Quantity

The serial variety of your chassis works as a novel identifier. You’ll be able to view this quantity very simply by utilizing the next instructions.

$ sudo dmidecode --string chassis-serial-number
$ sudo dmidecode --type 3 | grep -i serial

So you should utilize both the –string parameter or the –kind parameter. The grep command is helpful for filtering out info from giant DMI outputs.

38. View dmidecode Model

You need to use the next terminal command to examine your dmidecode model quantity. New customers can use this command to confirm whether or not dmidecode is accessible from their present path.

$ dmidecode --version

Since most trendy Linux distributions include dmidecode, your system ought to have it put in already.

39. View Guide Web page

The dmidecode man web page incorporates all the knowledge required to grasp this software. You could find the record of all supported parameters and kinds right here. It’s best to check out this guide if you’re searching for an in-depth clarification of how dmidecode works.

$ man dmidecode

The guide can be accessible from the web. Nonetheless, there could also be some variations between Linux and BSD variations. So we encourage you to make use of the person command as a substitute.

40. View Assist Web page

The assistance web page incorporates a concise record of all supported parameters and their utilization. That is helpful in order for you a fast overview of the obtainable choices.

$ dmidecode --help

It’ll offer you summarized info of all parameters supported by the dmidecode utility.


Linux dmidecode instructions are helpful in various conditions, together with {hardware} troubleshoots and upgrades. Nonetheless, the knowledge offered by dmidecode isn’t all the time correct. It may well typically present some unknown, inactive, or OEM -specific entries that aren’t usable by on a regular basis customers. We’ve tried our greatest to pinpoint the instructions that work greatest in sensible administration work. Moreover, dmidecode requires sudo privileges because it interacts with the DMI desk immediately. You’ll be able to change to the basis person should you don’t need to kind in sudo every time. Depart us your feedback relating to this information and maintain coming again for extra Linux terminal instructions.

Source link