Get your Dell Service Tag number via the Linux command-line

Posted on October 2nd, 2007 in General by Brandon

When your server is located in a data center far away, it makes it difficult to walk over to the box and read the service tag off of it. Fortunately, the Service Tag is stored somewhere in the system BIOS, and is accessible with the ‘dmidecode’ utility.

[root@host ~]# dmidecode|grep "Serial Number"
                Serial Number: 80NZV71

You’ll probably see several other serial numbers in there as well for things like your hard drives or other devices. The Dell shouldn’t be too difficult to pick out. I think they are always 7 digits and have letters in middle. There is lots of other interesting things in the ‘dmidecode’ output too, like the speed and type of each RAM module installed, and a description of all of the onboard devices (ie: video and network cards)

With Windows

Thanks to @kleinbaas who commented below how to do the same thing on a Windows machine:

  C:\Documents and Settings\brandon>wmic bios get serialnumber
  SerialNumber
  GX245D1

7 Responses to 'Get your Dell Service Tag number via the Linux command-line'

Subscribe to comments with RSS or TrackBack to 'Get your Dell Service Tag number via the Linux command-line'.


  1. on October 30th, 2007 at 9:25 pm

    Looks good. The Manpage is slightly less optimistic:

    BUGS
    More often than not, information contained in the DMI tables is inaccurate, incomplete or simply wrong.

    However, it is certainly better than nothing, and if it gives the right answer at 3.45am when nobody is around to read the label, this is invaluable information! Thumbs up!

  2. Eric said,

    on October 30th, 2007 at 10:06 pm

    Cool, Not sure if I will need this but very cool to add to the list. Thanks!


  3. on November 5th, 2007 at 4:28 am

    [...] article helps me a lot. My server is somewhere 300km from home, so what I did is using this line of [...]

  4. John said,

    on April 8th, 2008 at 9:37 am

    ‘dmidecode -s system-serial-number’ works for me as well.

  5. Frans said,

    on April 14th, 2009 at 7:15 am

    Thank you for this cool command !!!

  6. kleinbaas said,

    on May 26th, 2009 at 7:32 am

    If (like me) you found this website (in Google) while looking for a way to get your Dell Service Tag number via the Windows command-line, here’s how you do it:
    Type wmic bios get serialnumber in the command prompt on a Dell machine.
    For more information, go to http://www.brightvisions.co.uk/IT-FAQ-s/Dell-Service-Tag-Command-Line.html
    http://www.set8.net

  7. Sarah said,

    on October 4th, 2010 at 4:08 pm

    How can you do this remotely?

Post a comment

Please copy the string j5hQgC to the field below: