{"id":676,"date":"2024-11-12T10:14:17","date_gmt":"2024-11-12T10:14:17","guid":{"rendered":"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/?p=676"},"modified":"2024-12-04T10:30:37","modified_gmt":"2024-12-04T10:30:37","slug":"dmidecode-command-in-linux","status":"publish","type":"post","link":"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/dmidecode-command-in-linux\/","title":{"rendered":"How to Get Hardware Information with Dmidecode Command on Linux"},"content":{"rendered":"<p>In this article we\u2019ll see how we can use <strong>Dmidecode<\/strong> command to retrieve hardware information of any <a href=\"https:\/\/www.squarebrothers.com\/linux-hosting-india\/\" target=\"_blank\" rel=\"noopener\">Linux system<\/a>. Suppose if we want to upgrade a system we need to gather information like <strong>Memory<\/strong>, <strong>BIOS<\/strong> and <strong>CPU<\/strong> etc. With help of <strong>Dmidecode<\/strong> command we will come to know the details without opening system chasis. <strong>Dmidecode<\/strong> command works for <strong>RHEL<\/strong>\/<strong>Almalinux<\/strong>\/<strong>Fedora<\/strong>\/<strong>Ubuntu<\/strong> Linux.<\/p>\n<p><code>dmidecode<\/code> is a command-line tool in Linux used to retrieve hardware information directly from the system\u2019s Desktop Management Interface (DMI) table. It allows you to view details about your system&#8217;s hardware components, such as BIOS version, processor, memory, cache, and system serial numbers, without having to open the system casing.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_83 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/dmidecode-command-in-linux\/#1_Basic_Output_of_Demidecode\" >1. Basic Output of Demidecode<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/dmidecode-command-in-linux\/#2_How_to_Get_DMI_Types\" >2. How to Get DMI Types<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/dmidecode-command-in-linux\/#3_How_to_Get_Memory_Information\" >3. How to Get Memory Information<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/dmidecode-command-in-linux\/#4_How_Do_I_Get_BIOS_information\" >4. How Do I Get BIOS information?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/dmidecode-command-in-linux\/#5_How_Do_I_Get_the_Manufacturer_Model_and_Serial_Number\" >5. How Do I Get the Manufacturer, Model and Serial Number?<\/a><\/li><\/ul><\/nav><\/div>\n<h3><span class=\"ez-toc-section\" id=\"1_Basic_Output_of_Demidecode\"><\/span>1. Basic Output of Demidecode<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Below is the Demidecode command sample output.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-677\" src=\"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/11\/dmidecode-6.png\" alt=\"\" width=\"364\" height=\"101\" srcset=\"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/11\/dmidecode-6.png 364w, https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/11\/dmidecode-6-300x83.png 300w\" sizes=\"auto, (max-width: 364px) 100vw, 364px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h3><span class=\"ez-toc-section\" id=\"2_How_to_Get_DMI_Types\"><\/span>2. How to Get DMI Types<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><strong>DMI Id<\/strong> give us particular hardware information of system. Dmidecode with options \u2018<strong>-t<\/strong> \u2018or \u2018<strong>\u2013type<\/strong>\u2018 and \u2018<strong>Id<\/strong>\u2018 will provide us the exact infromation. Id <strong>6<\/strong> will give us <strong>Memory Module<\/strong> information.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-677\" src=\"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/11\/dmidecode-6.png\" alt=\"\" width=\"364\" height=\"101\" srcset=\"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/11\/dmidecode-6.png 364w, https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/11\/dmidecode-6-300x83.png 300w\" sizes=\"auto, (max-width: 364px) 100vw, 364px\" \/><\/p>\n<p>Following are the <strong>DMI<\/strong> types details.<\/p>\n<pre>Type\u00a0 \u00a0Information\r\n----------------------------------------\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 0 BIOS\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 1 System\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 2 Base Board\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 3 Chassis\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 4 Processor\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 5 Memory Controller\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 6 Memory Module\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 7 Cache\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 8 Port Connector\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 9 System Slots\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a010 On Board Devices\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a011 OEM Strings\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a012 System Configuration Options\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a013 BIOS Language\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a014 Group Associations\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a015 System Event Log\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a016 Physical Memory Array\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a017 Memory Device\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a018 32-bit Memory Error\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a019 Memory Array Mapped Address\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a020 Memory Device Mapped Address\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a021 Built-in Pointing Device\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a022 Portable Battery\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a023 System Reset\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a024 Hardware Security\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a025 System Power Controls\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a026 Voltage Probe\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a027 Cooling Device\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a028 Temperature Probe\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a029 Electrical Current Probe\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a030 Out-of-band Remote Access\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a031 Boot Integrity Services\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a032 System Boot\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a033 64-bit Memory Error\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a034 Management Device\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a035 Management Device Component\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a036 Management Device Threshold Data\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a037 Memory Channel\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a038 IPMI Device\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a039 Power Supply<\/pre>\n<p>Instead of going with \u2018<strong>type_id<\/strong>\u2018 you can also use keyword with \u2018<strong>-t<\/strong>\u2018 argument to the dmidecode command. Following are the list of available keywords.<\/p>\n<pre>Keyword Types\r\n------------------------------\r\nbios 0, 13\r\nsystem 1, 12, 15, 23, 32\r\nbaseboard 2, 10\r\nchassis 3\r\nprocessor 4\r\nmemory 5, 6, 16, 17\r\ncache 7\r\nconnector 8\r\nslot 9<\/pre>\n<p>For example, to get the <strong>Cache<\/strong> information on system, you can execute below command instead of Id <strong>7<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-678\" src=\"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/11\/dmideoce-7.png\" alt=\"\" width=\"611\" height=\"754\" srcset=\"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/11\/dmideoce-7.png 611w, https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/11\/dmideoce-7-243x300.png 243w\" sizes=\"auto, (max-width: 611px) 100vw, 611px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h3><span class=\"ez-toc-section\" id=\"3_How_to_Get_Memory_Information\"><\/span>3. How to Get Memory Information<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>How do i get <strong>Memory<\/strong> information on system and how much memory is supported by system? The following command shows that the system can support maximum <strong>32GB<\/strong> of <strong>RAM<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-679\" src=\"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/11\/dmidecode-16.png\" alt=\"\" width=\"528\" height=\"252\" srcset=\"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/11\/dmidecode-16.png 528w, https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/11\/dmidecode-16-300x143.png 300w\" sizes=\"auto, (max-width: 528px) 100vw, 528px\" \/><\/p>\n<p><strong>Note:<\/strong> From the keyword list the <strong>memory<\/strong> related information IDs are <strong>5<\/strong>, <strong>6<\/strong>, <strong>16<\/strong> and <strong>17<\/strong>.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"4_How_Do_I_Get_BIOS_information\"><\/span>4. How Do I Get BIOS information?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>To get the <strong>BIOS<\/strong> information of the system, run the following command with <strong>\u2018-t\u2019<\/strong> option.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-680\" src=\"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/11\/dmidecode-bios.png\" alt=\"\" width=\"643\" height=\"716\" srcset=\"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/11\/dmidecode-bios.png 643w, https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/11\/dmidecode-bios-269x300.png 269w\" sizes=\"auto, (max-width: 643px) 100vw, 643px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"5_How_Do_I_Get_the_Manufacturer_Model_and_Serial_Number\"><\/span>5. How Do I Get the Manufacturer, Model and Serial Number?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>To get the information about <strong>Manufacturer<\/strong>, <strong>Model<\/strong> and <strong>Serial Number<\/strong> of system, use the following command as shown below.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-681\" src=\"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/11\/dmidecode-system.png\" alt=\"\" width=\"670\" height=\"755\" srcset=\"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/11\/dmidecode-system.png 670w, https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-content\/uploads\/2024\/11\/dmidecode-system-266x300.png 266w\" sizes=\"auto, (max-width: 670px) 100vw, 670px\" \/><\/p>\n<p>Please run \u2018<strong>man dmidecode<\/strong>\u2018 from terminal or command prompt to know more about dmidecode.<\/p>\n<p>I hope this article will explained how to use dmidecode command. To know about configuration of sql server to listen on a specific port <a href=\"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/configure-sql-server-to-listen-on-a-specific-tcp-port\/\">click here.<\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article we\u2019ll see how we can use Dmidecode command to retrieve hardware information of any Linux system. Suppose if we want to upgrade a system we need to gather information like Memory, BIOS and CPU etc. With help of Dmidecode command we will come to know the details without opening system chasis. Dmidecode [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-676","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-json\/wp\/v2\/posts\/676","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-json\/wp\/v2\/comments?post=676"}],"version-history":[{"count":7,"href":"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-json\/wp\/v2\/posts\/676\/revisions"}],"predecessor-version":[{"id":688,"href":"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-json\/wp\/v2\/posts\/676\/revisions\/688"}],"wp:attachment":[{"href":"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-json\/wp\/v2\/media?parent=676"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-json\/wp\/v2\/categories?post=676"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hyderabadwebhosting.co.in\/tutorials\/wp-json\/wp\/v2\/tags?post=676"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}