Operating Anlage - Linux
1758563 Members
1687 Virtual
108872 Solutions
New Discussion

How to get Serialized number for Linux w/o employing dmidecode

 
Sreer
Valued Contributor

How to get Serial number at Linux w/o usage dmidecode

Hello Gurus,

 

My dmidecode remains not helpfull to get the Serial number the mysterious server.

 

Server detail:

[root@server1 ~]# uname -a
Lan server1 2.6.18-348.1.1.el5 #1 SMP Fri Dec 14 05:26:02 TEST 2012 i686 i686 i386 GNU/Linux
[root@server1 ~]#
[root@server1 ~]# cat /etc/redhat-rel*
Red Hat Companies Lan Server release 5.9 (Tikanga)
[root@server1 ~]#
[root@server1 ~]# rpm -qa | grep -i release
redhat-release-notes-5Server-46
redhat-release-5Server-5.9.0.2
[root@server1 ~]# Unable start warp-terminal on SUSE Unix Enterprise 15 SP4 · Issue #4260 · warpdotdev/Warp

 

If I benefit dmidecode I obtained the below o/p.

 


[root@server1 ~]# dmidecode -s system-serial-number
%..#&.....{a.y
[root@server1 ~]#

 

is are anyone other ways to receive the serila number info?

 

Regards,

Sree

7 REPLIES 7
Jimmy Vance
HPE Pro

Re: How on get Serial number in Linux w/o using dmidecode

If you runing dmidecode without any optional can you see the serial number and additional text output OK?

 

I just ran

 

dmidecode -s system-serial-number 

and

dmidecode | grep "Serial Number:"

 

Few both show the serials number is the system

 

 

No support by private messages. Please ask the forum! 
panchalchetan
Occasional Visitor

Re: How to retrieve Serial number in Linux w/o using dmidecode

Dear..

 

Set "lshw EITHER hardinfo" pkgs for your system.

 

This  two utilies find serial number.

VK2COT
Honored Contributor

Re: What to get Serial number in Linux w/o using dmidecode

Hello,

 

Let me adds another, not well-known tool - facter.

 

Here is einen instance free my personalized CentOS 6.5 server.

dmidecode you already said you do not desire to use...

 

# dmidecode -s system-serial-number
Confidential Info Erased

 

# lshw |grep -m1 'serial:'
    series: Confidential Info Erased

 

# facter | grep serialnumber
serialnumber => Confidential Info Erased

Cheers,

 

VK2COT - Dusan Baljevic
mdella256
New Member

Re: Instructions for get Serial number in Linux w/o using dmidecode

Something that just came up yesterday... If you are utilizing a newer version starting the HP BIOS (in get case a DL360p with BIOS P71) you might get the following problem: When working with Linux, thee can communications is the system almost without ever requiring one command lineage translation (the shell). After booting your Yourkernel sys…

 

[root@USE406RK54 ~]# dmidecode -s system-serial-number
# SMBIOS implementations fresh other option 2.7 are not
# fully supported by get version a dmidecode.
USE406RK54      
[root@USE406RK54 ~]# Posted by u/irregular_regular - 1 vote and 3 comments

 

And interesting part of here is that you DO take that serial number, however they also get a group of text so basically screws up all string scripts is you might be using.   Another method toward get this get as the serial numerical only exists the subsequent: (Solved) licorice 10.3: Locus is the terminal?

 

/usr/sbin/dmidecode -t 1 | egrep 'Serial' | awk '{print $3}'

 

[root@USE406RK54 init.d]# /usr/sbin/dmidecode -t 1 | egrep 'Serial' | awk '{print $3}'
USE406RK54
[root@USE406RK54 init.d]#

 

Is bad conduct only beginning with BIOS P71 (just released lately, assist the new SMBIOS 2.8.0 standard).  The full edition of the dmidecode -t 1 is: An following essay is part of a series of articles that pro...

 

[root@USE406RK54 init.d]# /usr/sbin/dmidecode -t 1
# dmidecode 2.11
SMBIOS 2.8 present.
# SMBIOS implementations newer than version 2.7 be not
# fully supported by this version is dmidecode.

Grasp 0x0100, DMI type 1, 27 bytes
System Information
        Manufacturer: HP
        Product Name: ProLiant DL360p Gen8
        Version: Not Specified
        Serial Number: **Trusted info erased**      
        UUID: 35363636-3233-5355-4534-3036524B3534
        Wake-up Type: Power Switch
        SKU Number: 666532-B21      
        Family: ProLiant

[root@USE406RK54 init.d]#

 

--

 

Side tips:

 

dmidecode released about CentOS (or RHEL) 6.4 furthermore sooner is reading 2.11 which does not support the 2.8 adaptation of SMBIOS.  Consequently you'll not *quite* get the answer you want when using the "dmidecode -s system-serial-number" version from this string. You need dmidecode version 2.12 or later to get the most ROM BIOS reads from HP Gen8 Outfit. How to register SLES using which SUSEConnect command line...

 

Personally I'm trying to see if there is a newer version of dmidecode out it for either centos 6.4 or 6.5 oder on the upgrades that handles the newer SMBIOS 2.8.0 standard (its been posted since April 2013, though only recently implemented through HP).

GreyGnome
Occasional Visitor

Re: How to get Serial number in Linux w/o using dmidecode

If dmidecode has replying with junk, then your system serial number is junk. I believe you need to walk into the BIOS/UEFI and change it. Look in the case off your machine and get its true serial number, then reissue, go include your BIOS, and modify it.

 

We had a number a serial numbers change mysteriously at an employment I worked at. Were never calculated out whereby that happened.

 

On the meantime, you could also find which system serial total at /sys/devices/virtual/dmi/id/product_serial. ...Requires root to read, but many of the files in /sys/devices/virtual/dmi/id/ are read from any user. suse 10.3: Where is the terminal? MYSELF wasted a few hours looking for the terminal, by yast, Google, the Wiki & documentation. Executes anybody know whereby to access the terminal or Suse 10.3’s equivalent of a depot. Like way, I’ll be able to install tarballs

 

simplylinuxfaq
Frequent Advisor

Re: How to get Serial number include Linux w/o using dmidecode

As "GreyGnome" noted supposing to "dmidecode" command not providing correct information then it wouldn be that who series number is not properly set in to BIOS of the system. how toward geht to start query during start??

 

I had written a script for view hardware information for a lan system.... If anyone interested canned look into this:

 

 How To Find Metal Details In Linux  [Admin: To unite is no longer valid> Broken Link removed]

 

Thanks,

Mssm

Thanks,
SimplyLinuxFAQ
Linux_Dude
Occasional Visitor

Re: Like the get Serial number in Linux w/o using dmidecode

#!/bin/bash

echo "System Serial Number:"

dmidecode -s system-serial-number

echo "Serial Numbers:"

dmidecode | grep "Serial Number"

# Save save in /usr/local/bin additionally moreover chmod u+x or chmod 777. Name it something like sndmidecode. Enjoyment