Red Hat / CentOS Linux Command To Find Dell Service Tag

in Categories , , , , , , last updated December 11, 2017

How do I find out my Dell server/deskop/laptop service tag using the command line option under a RHEL / Fedora / Red Hat / CentOS / Scientific Linux operating systems? How do I determine the serial number of a Dell laptop computer using the Fedora Linux operating system?

You need to use the dmidecode command to find out various info including Dell servers service tag. This command is used to analyse BIOS DMI data. If this command is not install type the following command to install it on a CentOS/RHEL using the yum command:

# yum -y install dmidecode
Sample outputs:

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base:
 * epel:
 * extras:
 * updates:
Resolving Dependencies
--> Running transaction check
---> Package dmidecode.x86_64 1:3.0-5.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
 Package              Arch              Version                   Repository       Size
 dmidecode            x86_64            1:3.0-5.el7               base             88 k
Transaction Summary
Install  1 Package
Total download size: 88 k
Installed size: 241 k
Is this ok [y/d/N]: y
Downloading packages:
dmidecode-3.0-5.el7.x86_64.rpm                                   |  88 kB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : 1:dmidecode-3.0-5.el7.x86_64                                         1/1 
  Verifying  : 1:dmidecode-3.0-5.el7.x86_64                                         1/1 
  dmidecode.x86_64 1:3.0-5.el7                                                          

If you are using a Fedora Linux, try dnf command to install dmidecode:
$ sudo dnf install dmidecode
If you are using an Ubuntu/Debian Linux based server try apt command or apt-get command to install dmidecode
$ sudo apt-get install dmidecode

Command To Find Out Dell Service Tag

Once installed type the following command to find out Dell service tag:
# dmidecode | grep -i serial
# dmidecode -t 1
Sample outputs:

# dmidecode 2.9
SMBIOS 2.6 present.

Handle 0x0100, DMI type 1, 27 bytes
System Information
	Manufacturer: Dell Inc.
	Product Name: PowerEdge T110                 
	Version: Not Specified
	Serial Number: XYZABC
	SKU Number: Not Specified

Here is another outputs:

Fig.01:  Determine the serial number (service) of a Dell computer using the Linux operating system
Fig.01: Determine the serial number (service) of a Dell computer using the Linux operating system

The following command will only display service tag:
# dmidecode -s system-serial-number
Sample outputs:

How Do I Find Out Dell Service Tag Remotely?

You need to ssh into remote Dell server and type the same command:
$ ssh root@your-remote-dell-server-domain-name-here
$ ssh root@
And type the above command:
# dmidecode -s system-serial-number
OR just pass the dmidecode command line option to ssh itself:
$ ssh dmidecode -s system-serial-number
For more info see the dmidecode man page by typing the following command:
$ man dmidecode

Posted by: Vivek Gite

The author is the creator of nixCraft and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.

Share this on (or read 4 comments/add one below):

4 comment

  1. You really should have Dell’s Open Manage software installed, its great stuff (compared to other vendors mgmt software such as HP “health” drivers).

    omreport chassis info

    With Open Manage installed you can check power supplies, memory errors, change BIOS setup etc.

    Have a question? Post it on our forum!