{"id":7073,"date":"2017-10-11T18:30:47","date_gmt":"2017-10-11T10:30:47","guid":{"rendered":"http:\/\/rmohan.com\/?p=7073"},"modified":"2017-10-11T18:30:47","modified_gmt":"2017-10-11T10:30:47","slug":"hardware-serial-numbers-linux-command-to-retrieve","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=7073","title":{"rendered":"Hardware Serial Numbers Linux Command to Retrieve"},"content":{"rendered":"<p>Hardware Serial Numbers Linux Command to Retrieve<\/p>\n<p>Ever needed to obtain the serial number (or other details) for a remote server? Couldn\u2019t be bothered to walk\/run\/drive\/fly all the way there just to read a sticky label on the back or bottom of said server? Read on then.<br \/>\nThe command you want to run, as root, is dmidecode. For example, to get the make and model and serial number of a server, do this:<br \/>\ndmidecode -t system<br \/>\nThe result will be similar to:<br \/>\n# dmidecode 2.11<br \/>\nSMBIOS 2.5 present.<\/p>\n<p>Handle 0x0002, DMI type 1, 27 bytes<br \/>\nSystem Information<br \/>\n        Manufacturer: Dell Inc.<br \/>\n        Product Name: Vostro 1720<br \/>\n        Version: Null<br \/>\n        Serial Number: 996C4L1<br \/>\n        UUID: Not Settable<br \/>\n        Wake-up Type: Power Switch<br \/>\n        SKU Number: Null<br \/>\n        Family: Vostro<\/p>\n<p>Handle 0x000F, DMI type 12, 5 bytes<br \/>\nSystem Configuration Options<br \/>\n        Option 1: Jumper settings can be described here.<\/p>\n<p>Handle 0x0018, DMI type 32, 20 bytes<br \/>\nSystem Boot Information<br \/>\n        Status: No errors detected<br \/>\nOther options for the -t parameter are:<br \/>\nbios \u2013 tells you all about your bios.<br \/>\nsystem \u2013 tells you about the system hardware.<br \/>\nbaseboard \u2013 all about the mother board.<br \/>\nchassis \u2013 all you need to know about the \u201cbox\u201d the system is made up of.<br \/>\nprocessor \u2013 fairly obvious.<br \/>\nmemory \u2013 again, fairly obvious.<br \/>\ncache \u2013 information about your CPU cache.<br \/>\nconnector \u2013 what sockets are present on the computer. USB, firewire, ethernet etc.<br \/>\nslot \u2013 appears to be the bus information, and voltages present, supplied etc.<br \/>\nThere\u2019s brief help available:<br \/>\ndmidecode &#8211;help<\/p>\n<p>Usage: dmidecode [OPTIONS]<br \/>\nOptions are:<br \/>\n -d, &#8211;dev-mem FILE     Read memory from device FILE (default: \/dev\/mem)<br \/>\n -h, &#8211;help             Display this help text and exit<br \/>\n -q, &#8211;quiet            Less verbose output<br \/>\n -s, &#8211;string KEYWORD   Only display the value of the given DMI string<br \/>\n -t, &#8211;type TYPE        Only display the entries of given type<br \/>\n -u, &#8211;dump             Do not decode the entries<br \/>\n     &#8211;dump-bin FILE    Dump the DMI data to a binary file<br \/>\n     &#8211;from-dump FILE   Read the DMI data from a binary file<br \/>\n -V, &#8211;version          Display the version and exit<br \/>\nHowever, to find out the different types you can supply, you need to supply an erroneous type:<br \/>\ndmidecode -t left_leg<\/p>\n<p>Invalid type keyword: left_leg<br \/>\nValid type keywords are:<br \/>\n  bios<br \/>\n  system<br \/>\n  baseboard<br \/>\n  chassis<br \/>\n  processor<br \/>\n  memory<br \/>\n  cache<br \/>\n  connector<br \/>\n  slot<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hardware Serial Numbers Linux Command to Retrieve<\/p>\n<p>Ever needed to obtain the serial number (or other details) for a remote server? Couldn\u2019t be bothered to walk\/run\/drive\/fly all the way there just to read a sticky label on the back or bottom of said server? Read on then. The command you want to run, as root, [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/7073"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7073"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/7073\/revisions"}],"predecessor-version":[{"id":7074,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/7073\/revisions\/7074"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7073"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7073"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7073"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}