<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to get Serial number in Linux w/o using dmidecode in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/how-to-get-serial-number-in-linux-w-o-using-dmidecode/m-p/6373695#M54521</link>
    <description>&lt;P&gt;If you run dmidecode without any options can you see the serial number and other text output OK?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just ran&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;dmidecode -s system-serial-number&amp;nbsp;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;dmidecode | grep "Serial Number:"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;They both show the serial number of the system&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 13 Feb 2014 02:45:48 GMT</pubDate>
    <dc:creator>Jimmy Vance</dc:creator>
    <dc:date>2014-02-13T02:45:48Z</dc:date>
    <item>
      <title>How to get Serial number in Linux w/o using dmidecode</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-get-serial-number-in-linux-w-o-using-dmidecode/m-p/6372623#M54518</link>
      <description>&lt;P&gt;Hello Gurus,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My dmidecode is not helpfull to get the Serial number of my server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Server details:&lt;/P&gt;&lt;P&gt;[root@server1 ~]# uname -a&lt;BR /&gt;Linux server1 2.6.18-348.1.1.el5 #1 SMP Fri Dec 14 05:26:02 EST 2012 i686 i686 i386 GNU/Linux&lt;BR /&gt;[root@server1 ~]#&lt;BR /&gt;[root@server1 ~]# cat /etc/redhat-rel*&lt;BR /&gt;Red Hat Enterprise Linux Server release 5.9 (Tikanga)&lt;BR /&gt;[root@server1 ~]#&lt;BR /&gt;[root@server1 ~]# rpm -qa | grep -i release&lt;BR /&gt;redhat-release-notes-5Server-46&lt;BR /&gt;redhat-release-5Server-5.9.0.2&lt;BR /&gt;[root@server1 ~]#&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I use dmidecode I gets the below o/p.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;[root@server1 ~]# dmidecode -s system-serial-number&lt;BR /&gt;%..#&amp;amp;.....{a.y&lt;BR /&gt;[root@server1 ~]#&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is there any other ways to get the serila number info?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sree&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2014 09:30:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-get-serial-number-in-linux-w-o-using-dmidecode/m-p/6372623#M54518</guid>
      <dc:creator>Sreer</dc:creator>
      <dc:date>2014-02-12T09:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Serial number in Linux w/o using dmidecode</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-get-serial-number-in-linux-w-o-using-dmidecode/m-p/6373695#M54521</link>
      <description>&lt;P&gt;If you run dmidecode without any options can you see the serial number and other text output OK?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just ran&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;dmidecode -s system-serial-number&amp;nbsp;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;dmidecode | grep "Serial Number:"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;They both show the serial number of the system&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2014 02:45:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-get-serial-number-in-linux-w-o-using-dmidecode/m-p/6373695#M54521</guid>
      <dc:creator>Jimmy Vance</dc:creator>
      <dc:date>2014-02-13T02:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Serial number in Linux w/o using dmidecode</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-get-serial-number-in-linux-w-o-using-dmidecode/m-p/6375121#M54522</link>
      <description>&lt;P&gt;Dear..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Install "lshw OR hardinfo" pkgs in your system.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This &amp;nbsp;two utilies find serial number.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2014 11:46:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-get-serial-number-in-linux-w-o-using-dmidecode/m-p/6375121#M54522</guid>
      <dc:creator>panchalchetan</dc:creator>
      <dc:date>2014-02-14T11:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Serial number in Linux w/o using dmidecode</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-get-serial-number-in-linux-w-o-using-dmidecode/m-p/6409458#M54547</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me add another, not well-known tool - facter.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is an example from my own CentOS 6.5 server.&lt;/P&gt;
&lt;P&gt;dmidecode you already said you do not want to use...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;# dmidecode -s system-serial-number&lt;BR /&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;STRIKE&gt;&lt;U&gt;Confidential Info Erased&lt;/U&gt;&lt;/STRIKE&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;# lshw |grep -m1 'serial:'&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; serial: &lt;STRIKE&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;U&gt;Confidential Info Erased&lt;/U&gt;&lt;/FONT&gt;&lt;/STRIKE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;# facter | grep serialnumber&lt;BR /&gt;serialnumber =&amp;gt;&lt;STRIKE&gt; &lt;FONT size="1 2 3 4 5 6 7"&gt;&lt;U&gt;Confidential Info Erased&lt;/U&gt;&lt;/FONT&gt;&lt;/STRIKE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 14:53:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-get-serial-number-in-linux-w-o-using-dmidecode/m-p/6409458#M54547</guid>
      <dc:creator>VK2COT</dc:creator>
      <dc:date>2022-03-30T14:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Serial number in Linux w/o using dmidecode</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-get-serial-number-in-linux-w-o-using-dmidecode/m-p/6421524#M54558</link>
      <description>&lt;P&gt;Something that just came up yesterday... If you are using a newer version of the HP BIOS (in this case a DL360p with BIOS P71) you might get the following problem:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[root@USE406RK54 ~]# dmidecode -s system-serial-number&lt;BR /&gt;# SMBIOS implementations newer than version 2.7 are not&lt;BR /&gt;# fully supported by this version of dmidecode.&lt;BR /&gt;USE406RK54&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;[root@USE406RK54 ~]#&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The interesting part of this is that you DO get the serial number, however you also get a bunch of text that basically screws up any string scripts that you might be using.&amp;nbsp;&amp;nbsp; Another way to get this information as the serial number only is the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/usr/sbin/dmidecode -t 1 | egrep 'Serial' | awk '{print $3}'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[root@USE406RK54 init.d]# /usr/sbin/dmidecode -t 1 | egrep 'Serial' | awk '{print $3}'&lt;BR /&gt;USE406RK54&lt;BR /&gt;[root@USE406RK54 init.d]#&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This bad behaviour only started with BIOS P71 (just released recently, supporting the new SMBIOS 2.8.0 standard).&amp;nbsp; The full output of the dmidecode -t 1 is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[root@USE406RK54 init.d]# /usr/sbin/dmidecode -t 1&lt;BR /&gt;# dmidecode 2.11&lt;BR /&gt;SMBIOS 2.8 present.&lt;BR /&gt;# SMBIOS implementations newer than version 2.7 are not&lt;BR /&gt;# fully supported by this version of dmidecode.&lt;BR /&gt;&lt;BR /&gt;Handle 0x0100, DMI type 1, 27 bytes&lt;BR /&gt;System Information&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Manufacturer: HP&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Product Name: ProLiant DL360p Gen8&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Version: Not Specified&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Serial Number: **&lt;FONT size="2"&gt;&lt;STRIKE&gt;Confidential info erased&lt;/STRIKE&gt;&lt;/FONT&gt;**&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UUID: 35363636-3233-5355-4534-3036524B3534&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Wake-up Type: Power Switch&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SKU Number: 666532-B21&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Family: ProLiant&lt;BR /&gt;&lt;BR /&gt;[root@USE406RK54 init.d]#&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;--&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Side notes:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;dmidecode released with CentOS (or RHEL) 6.4 and earlier is version 2.11 which does not support the 2.8 version of SMBIOS.&amp;nbsp; So you'll not *quite* get the answer you want when using the "dmidecode -s system-serial-number" version of this string. You need dmidecode version 2.12 or later to get the latest ROM BIOS reads from HP Gen8 Gear.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Personally I'm trying to see if there is a newer version of dmidecode out there for either centos 6.4 or 6.5 or on the updates that handles the newer SMBIOS 2.8.0 standard (its been published since April 2013, but only recently implemented by HP).&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2024 10:29:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-get-serial-number-in-linux-w-o-using-dmidecode/m-p/6421524#M54558</guid>
      <dc:creator>mdella256</dc:creator>
      <dc:date>2024-01-05T10:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Serial number in Linux w/o using dmidecode</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-get-serial-number-in-linux-w-o-using-dmidecode/m-p/6682949#M54672</link>
      <description>&lt;P&gt;If dmidecode is replying with junk, then your system serial number is junk. I believe you need to go into the BIOS/UEFI and change it. Look on the case of your machine and get its true serial number, then reboot, go into your BIOS, and modify it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We had a number of serial numbers change mysteriously at a job I worked at. We never figured out how that happened.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the meantime, you can also find the system serial number at /sys/devices/virtual/dmi/id/product_serial. ...Requires root to read, but many of the files in /sys/devices/virtual/dmi/id/ are readable by any user.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Dec 2014 15:46:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-get-serial-number-in-linux-w-o-using-dmidecode/m-p/6682949#M54672</guid>
      <dc:creator>GreyGnome</dc:creator>
      <dc:date>2014-12-09T15:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Serial number in Linux w/o using dmidecode</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-get-serial-number-in-linux-w-o-using-dmidecode/m-p/6695217#M54694</link>
      <description>&lt;P&gt;As "GreyGnome" noted if the "dmidecode" command not providing correct information then it would be that the serial number is not properly set in the BIOS of the system.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I had written a script to view hardware information on a linux system.... If anyone interested can look into this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;U&gt;&lt;STRIKE&gt;&lt;A title="How To Find Hardware Details In Linux" target="_blank" rel="noopener"&gt;How To Find Hardware Details In Linux&amp;nbsp;&amp;nbsp;&lt;/A&gt;&lt;/STRIKE&gt;&lt;/U&gt;[&lt;FONT color="#008000"&gt;&lt;STRONG&gt;Admin: The link is no longer valid&amp;gt; Broken Link removed&lt;/STRONG&gt;&lt;/FONT&gt;]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Mssm&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:18:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-get-serial-number-in-linux-w-o-using-dmidecode/m-p/6695217#M54694</guid>
      <dc:creator>simplylinuxfaq</dc:creator>
      <dc:date>2020-09-29T12:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Serial number in Linux w/o using dmidecode</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-get-serial-number-in-linux-w-o-using-dmidecode/m-p/6979819#M55042</link>
      <description>&lt;P&gt;#!/bin/bash&lt;/P&gt;&lt;P&gt;echo "System Serial Number:"&lt;/P&gt;&lt;P&gt;dmidecode -s system-serial-number&lt;/P&gt;&lt;P&gt;echo "Serial Numbers:"&lt;/P&gt;&lt;P&gt;dmidecode | grep "Serial Number"&lt;/P&gt;&lt;P&gt;# Save this in /usr/local/bin and either chmod u+x or chmod 777. Name it something like sndmidecode. Enjoy&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 13:56:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-get-serial-number-in-linux-w-o-using-dmidecode/m-p/6979819#M55042</guid>
      <dc:creator>Linux_Dude</dc:creator>
      <dc:date>2017-10-12T13:56:52Z</dc:date>
    </item>
  </channel>
</rss>

