How to retrieve HP Proliant server serial number remotely

Date: April 20th, 2010
Author: Stefan Batanov

Not sure why I added in the title remotely because I’m absolutely positive that you know how to the HP Proliant server serial number when you are at the server room. But anyway for all of the other system administrators I will give you guides how you can get the Proliant server serial number when you do not have physical access to the server. Probably this covers about ninety-nine percent of the servers in the world. There are basically two approaches to get the serial number of a HP Proliant server. First one is from the ILO 2 and the second one that I know of is from Hewlett-Packard Advanced Server Management Command Line Interface or shorten hpasmcli.

There are two ways to get the HP Proliant server serial number from ILO. First one is from the web interface directly and this is probably the easiest and most intuitive way.
Once you login to the ILO 2 web interface on the status page you will have the server serial number.

How to retrieve HP Proliant server serial number remotely

The second Way to get HP Proliant server serial number from ILO is from ILO ssh. It is harder I know but still you can get the needed info from there. In case you have only limited connectiovoty to the server IP network this is still a good approach.

Once you login to the ILO you need to run show /system1 command. The Serial number is under Properties-> number. First 6 digits in the value are the product ID and the rest is your HP server serial number

  1. [root@stats1 ~]# ssh 192.168.196.148
  2. root@192.168.196.148's password:
  3. User:root logged-in to ussddatabase2-server.(192.168.196.148)
  4. iLO Advanced 1.30 at 15:04:45 Jun 01 2007
  5. Server Name: db2
  6. Server Power: On
  7.  
  8. </>hpiLO-> show /system1
  9. status=0
  10. status_tag=COMMAND COMPLETED
  11.  
  12.  
  13. /system1
  14.  Targets
  15.    firmware
  16.    bootconfig1
  17.    log1
  18.    led1
  19.    oemhp_vsp1
  20.    cpu1
  21.    cpu2
  22.    memory1
  23.    memory2
  24.    memory3
  25.    memory4
  26.    memory5
  27.    memory6
  28.    memory7
  29.    memory8
  30.    slot1
  31.    slot2
  32.    slot3
  33.    slot4
  34.    slot5
  35.    fan1
  36.    fan2
  37.    fan3
  38.    fan4
  39.    fan5
  40.    fan6
  41.    sensor1
  42.    sensor2
  43.    sensor3
  44.    sensor4
  45.    sensor5
  46.    sensor6
  47.    sensor7
  48.    sensor8
  49.    sensor9
  50.    powersupply1
  51.    powersupply2
  52.  Properties
  53.    name=ProLiant DL380 G5
  54.    number=418315CZC7270XYZ
  55.    oemhp_server_name=db2
  56.    enabledstate=enabled
  57.    oemhp_powerreg=OS control
  58.    processor_number=4
  59.    pstate_number=2
  60.    oemhp_pwrcap=not set
  61.  Verbs
  62.    cd version exit show reset set start stop
  63.  
  64.  
  65. </>hpiLO->

The third way that I will demonstrate is by using hpasmcli command inside the server operating system. The command is available for Linux OS only. It has some dependencies so it is not always available for usage. Generally what you need to do is run hpasmcli and then type show server. The needed info is on the second line : Serial No.

  1. [root@stats1 ~]# hpasmcli
  2. HP management CLI for Linux (v1.0)
  3. Copyright 2004 Hewlett-Packard Development Group, L.P.
  4.  
  5. ————————————————————————–
  6. NOTE: Some hpasmcli commands may not be supported on all Proliant servers.
  7.       Type 'help' to get a list of all top level commands.
  8. ————————————————————————–
  9. hpasmcli> show server
  10. System        : ProLiant DL380 G5
  11. Serial No.    : CZC7270XYZ      
  12. ROM version   : P56 05/01/2007
  13. iLo present   : Yes
  14. Embedded NICs : 2
  15.  NIC1 MAC: 00:1b:78:3b:00:74
  16.  NIC2 MAC: 00:1b:78:3b:00:72
  17.  
  18. Processor: 0
  19.  Name         : Intel Xeon
  20.  Stepping     : 6
  21.  Speed        : 3000 MHz
  22.  Bus          : 1333 MHz
  23.  Core         : 2
  24.  Thread       : 2
  25.  Socket       : 1
  26.  Level2 Cache : 4096 KBytes
  27.  Status       : Ok
  28.  
  29. Processor: 1
  30.  Name         : Intel Xeon
  31.  Stepping     : 6
  32.  Speed        : 3000 MHz
  33.  Bus          : 1333 MHz
  34.  Core         : 2
  35.  Thread       : 2
  36.  Socket       : 2
  37.  Level2 Cache : 4096 KBytes
  38.  Status       : Ok
  39.  
  40. Processor total  : 2
  41.  
  42. Memory installed : 4096 MBytes
  43. ECC supported    : Yes
VN:F [1.9.18_1163]
Rating: 7.7/10 (3 votes cast)
How to retrieve HP Proliant server serial number remotely, 7.7 out of 10 based on 3 ratings

5 Responses to “How to retrieve HP Proliant server serial number remotely”

  • Q says:

    If you are on Windows, the easiest way is probably to do a lookup via wmi.

    Start a commandline window and execute the command:
    “wmic /node:SERVERNAME bios get serialnumber”

    Where SERVERNAME is the node whos serial you want to check.

  • David Shults says:

    This is the best blog for anyone who wants to find out about this topic. You realize so much its nearly exhausting to argue with you (not that I truly would want…HaHa). You positively put a new spin on a subject thats been written about for years. Nice stuff, just nice!

  • qwiat says:

    Under linux you may use lshw command

  • Jan P says:

    Or use in Linux: dmidecode
    # dmidecode|grep Product
    Product Name: ProLiant DL360 G5
    String 1: Product ID: 43XXXXX-42X

  • Tales says:

    Genial! Valew!

Leave a Reply