{"id":32244,"date":"2022-05-01T22:55:56","date_gmt":"2022-05-01T20:55:56","guid":{"rendered":"https:\/\/www.linuxboxen.dk\/?p=32244"},"modified":"2022-05-01T22:55:56","modified_gmt":"2022-05-01T20:55:56","slug":"dmidecode","status":"publish","type":"post","link":"https:\/\/www.linuxboxen.dk\/?p=32244","title":{"rendered":"dmidecode"},"content":{"rendered":"<div class=\"headline_area\">\n<div class=\"byline\">Du kan bruge f\u00e5 BIOS- og hardwareoplysninger med kommandoen dmidecode p\u00e5 Linux. Ingen grund til at \u00e5bne din server eller genstarte boksen. \u00a0dmidecode\u00a0er et kommandolinjev\u00e6rkt\u00f8j til at analysere BIOS-hukommelsen og udskrive oplysninger om alle strukturer. Du kan finde ud af mere information om din hardware s\u00e5som:<\/div>\n<\/div>\n<div class=\"post_content\">\n<p>IPMI Device<br \/>\nType af memory og hastighed<br \/>\nChassis Information<br \/>\nTemperatur info<br \/>\nK\u00f8ling Device<br \/>\nElectrical Current Probe<br \/>\nProcessor og Memory Information<br \/>\nSerial nr<br \/>\nBIOS version<br \/>\nPCI \/ PCIe Slots og hastighed<br \/>\nSMBIOS (System Management BIOS)<br \/>\nSYSID<br \/>\nPNP (Plug og Play)<br \/>\nACPI (Advanced Configuration og Power Interface)<br \/>\nBIOS32 (BIOS32 Service Directory)<br \/>\nPIR (PCI IRQ Routing)<\/p>\n<p>I dette tip vil du l\u00e6re om afkodning af BIOS-data (dumping af en computers DMI) og f\u00e5 alle oplysninger om computer hardware uden at genstarte serveren.<br \/>\n<span id=\"more-1981\"><\/span><\/p>\n<h2>Mere om DMI tables<\/h2>\n<p>DMI-tabellen beskriver ikke kun, hvad systemet i \u00f8jeblikket er lavet af, den kan ogs\u00e5 rapportere de mulige udviklinger, s\u00e5som den hurtigste underst\u00f8ttede CPU eller den maksimale m\u00e6ngde hukommelse, der underst\u00f8ttes.<\/p>\n<h2>dmidecode \u2013 L\u00e6s biosdecode data i et l\u00e6sbart format.<\/h2>\n<div class=\"google-auto-placed ap_container\">Data leveret af biosdecode er ikke i et format, der kan l\u00e6ses af mennesker. Du skal bruge dmidecode-kommandoen til at dumpe en servers DMI (SMBIOS) tabelindhold p\u00e5 sk\u00e6rmen. Denne tabel indeholder en beskrivelse af systemets hardware komponenter samt andre nyttige oplysninger s\u00e5som serienumre og BIOS-revision. Takket v\u00e6re denne tabel kan du hente disse oplysninger uden at skulle s\u00f8ge efter den faktiske hardware. Lad os se nogle eksempler p\u00e5 dmidecode-kommandoer.<\/div>\n<h3>S\u00e5dan viser du oplysninger om IPMI Device<\/h3>\n<p><code># dmidecode --type 38<\/code><br \/>\nEksempel output:<\/p>\n<div class=\"wp-geshi-highlight-wrap5\">\n<div class=\"wp-geshi-highlight-wrap4\">\n<div class=\"wp-geshi-highlight-wrap3\">\n<div class=\"wp-geshi-highlight-wrap2\">\n<div class=\"wp-geshi-highlight-wrap\">\n<div class=\"wp-geshi-highlight\">\n<div class=\"ini\">\n<pre class=\"de1\"># dmidecode <span class=\"nu0\">2.7<\/span>\nSMBIOS <span class=\"nu0\">2.4<\/span> present.\n\u00a0\nHandle 0x0029, DMI type <span class=\"nu0\">38<\/span>, <span class=\"nu0\">18<\/span> bytes.\nIPMI Device Information\n        Interface Type: KCS <span class=\"br0\">(<\/span>Keyboard Control Style<span class=\"br0\">)<\/span>\n        Specification Version: <span class=\"nu0\">2.0<\/span>\n        I2C Slave Address: 0x10\n        NV Storage Device: Not Present\n        Base Address: 0x0000000000000CA2 <span class=\"br0\">(<\/span>I\/O<span class=\"br0\">)<\/span>\n        Register Spacing: Successive Byte Boundaries<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<h3>S\u00e5dan viser du oplysninger om PCI \/ PCIe Slots<\/h3>\n<p><code># dmidecode --type 9<\/code><br \/>\nOutputs:<\/p>\n<div class=\"wp-geshi-highlight-wrap5\">\n<div class=\"wp-geshi-highlight-wrap4\">\n<div class=\"wp-geshi-highlight-wrap3\">\n<div class=\"wp-geshi-highlight-wrap2\">\n<div class=\"wp-geshi-highlight-wrap\">\n<div class=\"wp-geshi-highlight\">\n<div class=\"ini\">\n<pre class=\"de1\"># dmidecode <span class=\"nu0\">2.7<\/span>\nSMBIOS <span class=\"nu0\">2.4<\/span> present.\n\u00a0\nHandle 0x000E, DMI type <span class=\"nu0\">9<\/span>, <span class=\"nu0\">13<\/span> bytes.\nSystem Slot Information\n        Designation: PCIX#<span class=\"nu0\">1<\/span>-133MHz\n        Type: <span class=\"nu0\">64<\/span>-bit PCI-X\n        Current Usage: Available\n        Length: Long\n        ID: <span class=\"nu0\">1<\/span>\n        Characteristics:\n                <span class=\"nu0\">3.3<\/span> V is provided\n\u00a0\nHandle 0x000F, DMI type <span class=\"nu0\">9<\/span>, <span class=\"nu0\">13<\/span> bytes.\nSystem Slot Information\n        Designation: PCIX#<span class=\"nu0\">2<\/span>-100MHz\n        Type: <span class=\"nu0\">64<\/span>-bit PCI-X\n        Current Usage: Available\n        Length: Long\n        ID: <span class=\"nu0\">2<\/span>\n        Characteristics:\n                <span class=\"nu0\">3.3<\/span> V is provided\n\u00a0\nHandle 0x0010, DMI type <span class=\"nu0\">9<\/span>, <span class=\"nu0\">13<\/span> bytes.\nSystem Slot Information\n        Designation: PCIE#<span class=\"nu0\">3<\/span>-x8\n        Type: Other\n        Current Usage: Available\n        Length: Other\n        Characteristics:\n                <span class=\"nu0\">3.3<\/span> V is provided\n\u00a0\nHandle 0x0011, DMI type <span class=\"nu0\">9<\/span>, <span class=\"nu0\">13<\/span> bytes.\nSystem Slot Information\n        Designation: PCIE#<span class=\"nu0\">4<\/span>-x8\n        Type: Other\n        Current Usage: Available\n        Length: Other\n        Characteristics:\n                <span class=\"nu0\">3.3<\/span> V is provided\n\u00a0\nHandle 0x0012, DMI type <span class=\"nu0\">9<\/span>, <span class=\"nu0\">13<\/span> bytes.\nSystem Slot Information\n        Designation: PCIE#<span class=\"nu0\">5<\/span>-x8\n        Type: Other\n        Current Usage: Available\n        Length: Other\n        Characteristics:\n                <span class=\"nu0\">3.3<\/span> V is provided<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<h3>Task: Find ud af noget om BIOS<\/h3>\n<p><code># dmidecode --type 0<\/code><br \/>\nOutput:<\/p>\n<pre># dmidecode 2.7\nSMBIOS 2.4 present.\nHandle 0x0000, DMI type 0, 24 bytes.\nBIOS Information\n        Vendor: Phoenix Technologies LTD\n        Version: 6.00\n        Release Date: 01\/26\/2007\n        Address: 0xE56C0\n        Runtime Size: 108864 bytes\n        ROM Size: 1024 kB\n        Characteristics:\n                PCI is supported\n                PNP is supported\n                BIOS is upgradeable\n                BIOS shadowing is allowed\n                ESCD support is available\n                Boot from CD is supported\n                Selectable boot is supported\n                EDD is supported\n                3.5\"\/2.88 MB floppy services are supported (int 13h)\n                ACPI is supported\n                USB legacy is supported\n                LS-120 boot is supported\n                ATAPI Zip drive boot is supported\n                BIOS boot specification is supported\n                Targeted content distribution is supported<\/pre>\n<h3>Forst\u00e5 BIOS ord<\/h3>\n<p>Syntax er:<br \/>\n<code>dmidecode --type {KEYWORD \/ Number }<\/code><br \/>\nDu skal sende dmidecode efter n\u00f8gleord:<\/p>\n<ul>\n<li>bios<\/li>\n<li>system<\/li>\n<li>baseboard<\/li>\n<li>chassis<\/li>\n<li>processor<\/li>\n<li>memory<\/li>\n<li>cache<\/li>\n<li>connector<\/li>\n<li>slot<\/li>\n<\/ul>\n<p>Alle DMI-typer du skal bruge med dmidecode \u2013type {Number}:<\/p>\n<table border=\"1\">\n<tbody>\n<tr>\n<td># Type<\/td>\n<td>Short Description<\/td>\n<\/tr>\n<tr>\n<td>0<\/td>\n<td>BIOS<\/td>\n<\/tr>\n<tr>\n<td>1<\/td>\n<td>System<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>Base Board<\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td>Chassis<\/td>\n<\/tr>\n<tr>\n<td>4<\/td>\n<td>Processor<\/td>\n<\/tr>\n<tr>\n<td>5<\/td>\n<td>Memory Controller<\/td>\n<\/tr>\n<tr>\n<td>6<\/td>\n<td>Memory Module<\/td>\n<\/tr>\n<tr>\n<td>7<\/td>\n<td>Cache<\/td>\n<\/tr>\n<tr>\n<td>8<\/td>\n<td>Port Connector<\/td>\n<\/tr>\n<tr>\n<td>9<\/td>\n<td>System Slots<\/td>\n<\/tr>\n<tr>\n<td>10<\/td>\n<td>On Board Devices<\/td>\n<\/tr>\n<tr>\n<td>11<\/td>\n<td>OEM Strings<\/td>\n<\/tr>\n<tr>\n<td>12<\/td>\n<td>System Configuration Options<\/td>\n<\/tr>\n<tr>\n<td>13<\/td>\n<td>BIOS Language<\/td>\n<\/tr>\n<tr>\n<td>14<\/td>\n<td>Group Associations<\/td>\n<\/tr>\n<tr>\n<td>15<\/td>\n<td>System Event Log<\/td>\n<\/tr>\n<tr>\n<td>16<\/td>\n<td>Physical Memory Array<\/td>\n<\/tr>\n<tr>\n<td>17<\/td>\n<td>Memory Device<\/td>\n<\/tr>\n<tr>\n<td>18<\/td>\n<td>32-bit Memory Error<\/td>\n<\/tr>\n<tr>\n<td>19<\/td>\n<td>Memory Array Mapped Address<\/td>\n<\/tr>\n<tr>\n<td>20<\/td>\n<td>Memory Device Mapped Address<\/td>\n<\/tr>\n<tr>\n<td>21<\/td>\n<td>Built-in Pointing Device<\/td>\n<\/tr>\n<tr>\n<td>22<\/td>\n<td>Portable Battery<\/td>\n<\/tr>\n<tr>\n<td>23<\/td>\n<td>System Reset<\/td>\n<\/tr>\n<tr>\n<td>24<\/td>\n<td>Hardware Security<\/td>\n<\/tr>\n<tr>\n<td>25<\/td>\n<td>System Power Controls<\/td>\n<\/tr>\n<tr>\n<td>26<\/td>\n<td>Voltage Probe<\/td>\n<\/tr>\n<tr>\n<td>27<\/td>\n<td>Cooling Device<\/td>\n<\/tr>\n<tr>\n<td>28<\/td>\n<td>Temperature Probe<\/td>\n<\/tr>\n<tr>\n<td>29<\/td>\n<td>Electrical Current Probe<\/td>\n<\/tr>\n<tr>\n<td>30<\/td>\n<td>Out-of-band Remote Access<\/td>\n<\/tr>\n<tr>\n<td>31<\/td>\n<td>Boot Integrity Services<\/td>\n<\/tr>\n<tr>\n<td>32<\/td>\n<td>System Boot<\/td>\n<\/tr>\n<tr>\n<td>33<\/td>\n<td>64-bit Memory Error<\/td>\n<\/tr>\n<tr>\n<td>34<\/td>\n<td>Management Device<\/td>\n<\/tr>\n<tr>\n<td>35<\/td>\n<td>Management Device Component<\/td>\n<\/tr>\n<tr>\n<td>36<\/td>\n<td>Management Device Threshold Data<\/td>\n<\/tr>\n<tr>\n<td>37<\/td>\n<td>Memory Channel<\/td>\n<\/tr>\n<tr>\n<td>38<\/td>\n<td>IPMI Device<\/td>\n<\/tr>\n<tr>\n<td>39<\/td>\n<td>Power Supply<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>For at f\u00e5 oplysninger om str\u00f8mforbrug, skriv:<\/h3>\n<p><code># dmidecode --type 39<\/code><\/p>\n<h3>For at f\u00e5 oplysninger om CPU informationer, skriv:<\/h3>\n<p><code># dmidecode --type processor<\/code><\/p>\n<div id=\"card-115606\" class=\"card\">\n<div class=\"card-body\">\n<div class=\"card-text\">Get BIOS info med serial nummer<\/div>\n<\/div>\n<\/div>\n<p><code># dmidecode -t System<\/code><\/p>\n<p>For mere information see man sider.<br \/>\n<code>$ man dmidecode<\/code><\/p>\n<\/div>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_32244\" class=\"pvc_stats all  \" data-element-id=\"32244\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/www.linuxboxen.dk\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Du kan bruge f\u00e5 BIOS- og hardwareoplysninger med kommandoen dmidecode p\u00e5 Linux. Ingen grund til at \u00e5bne din server eller genstarte boksen. \u00a0dmidecode\u00a0er et kommandolinjev\u00e6rkt\u00f8j til at analysere BIOS-hukommelsen og udskrive oplysninger om alle strukturer. Du kan finde ud af mere information om din hardware s\u00e5som: IPMI Device Type af memory og hastighed Chassis Information [&hellip;]<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_32244\" class=\"pvc_stats all  \" data-element-id=\"32244\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/www.linuxboxen.dk\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_sitemap_exclude":false,"_sitemap_priority":"","_sitemap_frequency":"","footnotes":""},"categories":[8],"tags":[],"class_list":["post-32244","post","type-post","status-publish","format-standard","hentry","category-shell"],"a3_pvc":{"activated":true,"total_views":32,"today_views":0},"_links":{"self":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/posts\/32244","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=32244"}],"version-history":[{"count":0,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/posts\/32244\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=32244"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=32244"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=32244"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}