Home > linux > How to: Find the model and serial number of a Linux server

How to: Find the model and serial number of a Linux server

We all know how to get the cpu and memory details from our Linux servers.  However, I recently found myself looking for the actual model as well as serial number of one of our remote Linux servers.  Not wanting to travel to data center, I started looking for commands that would give me the type of info I was looking for (i.e  HP DL360).

So I came across the command dmidecode.  Simply type the following as root to get your system’s model type:

# dmidecode -t system

SMBIOS 2.3 present.

Handle 0x0100, DMI type 1, 25 bytes.
System Information
        Manufacturer: HP
        Product Name: ProLiant DL380 G4
        Version: Not Specified
        Serial Number: XXXXXXXXXXX
        Wake-up Type: Power Switch

Handle 0x2000, DMI type 32, 11 bytes.
System Boot Information
        Status: No errors detected

As you can see above, I’ve X’d out the Serial # and UUID to protect the identify of the server. The rest simply states what you’re looking for…HP DL380 G4.

The following is what you can use with exchange for ‘system’ with a -t argument:


So to find out, the memory allocation per slot just type dmidecode -t memory.

Categories: linux Tags:
  1. CMS Application
    March 25th, 2011 at 00:26 | #1

    Awesome post! It really helped me a lot! Thanks for sharing it.

  2. Bob Dobbs
    March 28th, 2011 at 10:09 | #2

    You’ve just saved me an afternoon of crawling around three different data centres trying to decipher tiny numbers. Much appreciated.

  3. mintt2
    May 8th, 2011 at 23:45 | #3

    thank you very much.
    hwinfo only works with hp xt but not hp server

  4. Jagan M
    October 20th, 2011 at 03:51 | #4

    awesome job..its very useful

  5. mahesh
    November 20th, 2011 at 20:34 | #5

    hey thank u a lot this saved me $100,other wise i need to go site to verify .

  6. Qabdul
    April 4th, 2012 at 01:33 | #6

    Qabdul :
    Thanks a bunch, it save my time to request support guys and get response in atleast one day.

  7. krish
    April 24th, 2012 at 19:49 | #7

    It was really helped me… Thanks :)

  8. Lesly
    March 6th, 2013 at 19:52 | #8

    Thank You

  1. No trackbacks yet.