Operating System - HP-UX
1752781 Members
6148 Online
108789 Solutions
New Discussion

How to detect CPU serial Number?

 
yang shaohua
Frequent Advisor

How to detect CPU serial Number?

I want to detect CPU serial number, so I used the "machinfo" in IA64 platform, the output includes:

 

bash-3.2$ machinfo
CPU info:
   Number of CPUs = 2
   Clock speed = 1600 MHz
   Bus speed   = 400 MT/s
   CPUID registers
      vendor information =       "GenuineIntel"
      processor serial number =  0x0000000000000000
      processor version info =   0x000000001f020204
         architecture revision:       0
         processor family:           31   Intel(R) Itanium 2 Family Processors
         processor model:             2   Intel(R) Itanium 2 processor
         processor revision:          2   Stepping A2
         largest CPUID reg:           4
      processor capabilities =   0x0000000000000001

the serial number is 0

 

And I used the command "cstm", "selclass qualifier memory;info;wait;il", the output includes:

 

PIM Revision                 = 0x0000000000000000
CPU ID                       = 0x0000000000000000
CPU Revision                 = 0x0000000000000000
Cpu Serial Number            = 0x0000000000000000
Check Summary                = 0x0000000000000000

 

 

my question is why CPU serial number is always zero? I think it should be q unique number.

 

somebody can help? thanks

 

18 REPLIES 18
Torsten.
Acclaimed Contributor

Re: How to detect CPU serial Number?

Try the display fru (df) command from MP:CM>


Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
yang shaohua
Frequent Advisor

Re: How to detect CPU serial Number?

could you please indicate more clearly, I am confused how to use the command, thanks

Torsten.
Acclaimed Contributor

Re: How to detect CPU serial Number?

What server model do you have?

 

"machinfo" or "model" will tell.

 

 

Connect to the MP, change to CM menu and run "df".

 

MP> cm

 

MP:CM> df

...


Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
yang shaohua
Frequent Advisor

Re: How to detect CPU serial Number?

thanks for your quickly response.

I am sorry ,  I think I haven't clarified my problem clearly.

In face, what I want is running an application on HPUnix, the application can detect CPU serial number via HPUnix API or command.

my application is not possible to run on MP console, So, maybe we need to think other way.

anyway, thanks for your help.

Torsten.
Acclaimed Contributor

Re: How to detect CPU serial Number?

You obviously running 11.23, so do

 

cstm>sel dev all;info;wait;il
-- Updating Map --
Updating Map...
-- Converting multiple raw log files to text. --
Preparing the Information Tool Log for each selected device...

...

Field Replaceable Unit Identification (FRUID):
------------------------------------------------------------------------------
ID: 0x24        FRU Name: Processor 0 RAM
BOARD INFO:
 Mfg Date/Time: 0
 Manufacturer :
 Product Name : MONT C2 14 12 4M
 S/N          : PR10735123 
 Part Number  : AD271-2101B
 FRU File ID  : B  

 

 

 

OK?

 


Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Bill Hassell
Honored Contributor

Re: How to detect CPU serial Number?

The normal output from machinfo looks like this:

 

 

 

# machinfo
CPU info:
   Intel(R) Itanium 2 9100 series processor (1.67 GHz, 18 MB)
   2 cores, 4 logical processors per socket
   666 MT/s bus, CPU version A1
          Active processor count:
          1 socket
          2 cores (2 per socket)
          2 logical processors (2 per socket)
          LCPU attribute is disabled

Memory: 8170 MB (7.98 GB)

Firmware info:
   Firmware revision:  04.11
   FP SWA driver revision: 1.18
   IPMI is supported on this system.
   BMC firmware revision: 5.25

Platform info:
   Model:                  "ia64 hp server rx2660"
   Machine ID number:      a7cfdfb6-8cbb-11dd-ab98-413d2c4b1b1b
   Machine serial number:  USE0808AEN

OS info:
   Nodename:  atl6
   Release:   HP-UX B.11.31
   Version:   U (unlimited-user license)
   Machine:   ia64
   ID Number: 2815418294
   vmunix _release_version:
@(#) $Revision: vmunix:    B.11.31_LR FLAVOR=perf

 It would appear that this machine was repaired and the system board was replaced. HP sends out replacement boards without serial numbers and only HP service can set the serial numbers. This is a reasonable requirement as a lot of priced software requires a unique serial number fror licensing. Call HP to have them fix your system.



Bill Hassell, sysadmin
Torsten.
Acclaimed Contributor

Re: How to detect CPU serial Number?

Don't mix up.


This is the output of an old rx2600:

# /usr/contrib/bin/machinfo
CPU info:
   Number of CPUs = 1
   Clock speed = 900 MHz
   Bus speed   = 400 MT/s
   CPUID registers
      vendor information =       "GenuineIntel"
      processor serial number =  0x0000000000000000
      processor version info =   0x000000001f000704
         architecture revision:       0
         processor family:           31   Intel(R) Itanium 2 Family Processors
         processor model:             0   Intel(R) Itanium 2 processor
         processor revision:          7   Stepping B3
         largest CPUID reg:           4
      processor capabilities =   0x0000000000000001

...



The processor serial number is all "0" - always.

The machine serial number is something different.


It is stored in 2 locations, so if you replace the system board with a "fresh" one, it will be cloned to the new board. Such board must be "factory new" with special values set, a "used" board will not work that way.


 

You can check this from EFI:

 

Shell> sysmode service
Current System Mode: ADMIN

You are now in SERVICE mode.

Shell> sysset
System Information:
  Manufacturer: hp
  Product Name: server rx2660
  Product Number: AD245A
  Secondary Product Number is Identical
  Serial number: DEH1234567
  Secondary Serial Number is Identical

...

 

For BL8x0i2 and rx2800i2 servers the "sysset" command has been moved to the MP:

 

CM:hpiLO-> sysset

 

SYSSET

Current System Information Parameters:

   Manufacturer             : HP

   Product Name (prodname)  : Integrity rx2800 i2

   Secondary Product Name   : Integrity rx2800 i2

   Product Number (prodnum) : AH395A

   Secondary Product Number : AH395A

   Serial number (serial)   : CZ31234567

   Secondary Serial Number  : CZ31234567

...
 

 

 

 

On a system running 11.31 try this to get the processor serial numbers:

 

# /opt/propplus/bin/cprop -detail -c "Processors"

 



By the way Bill, your system is running old firmware ... ;-)


Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
yang shaohua
Frequent Advisor

Re: How to detect CPU serial Number?

Torsten and Bill, thank you all, I am so appricaited for your help.

during my testing , I found the following problem:

1) I cannot find the

# /opt/propplus/bin/cprop -detail -c "Processors"

there are no "propplus" under my 11.31 machine, so, it is installed package?

2) does it mean "machinfo" command is impossible to get the CPU serial number? because it always return 0x0000

3)I run "cstm>sel dev all;wait;il" on HPUX11.23 hppa

   the partial output is as below:

=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=


CPU Information:
   Number of CPUs in the system = 2

CPU Map
cpu  -----------------------------------------
slot | 00 | 01 | 02 | 03 | 04 | 05 | 06 | 07 |
state|caM |ca  |    |    |    |    |    |    |
     -----------------------------------------
     | 08 | 09 | 10 | 11 | 12 | 13 | 14 | 15 |
state|    |    |    |    |    |    |    |    |
     -----------------------------------------
     c - Configured                  (CPU powered on)
     d - De-configured               (CPU powered off)
     a - Active                      (configured and processes running)
     i - Inactive                    (configured and idle)
     f - Inactive with fail          (inactive because of a CPU failure)
     M - Monarch CPU                 (always Active)
     C - Marked for re-configuration (Configured after next boot)
     D - Marked for de-configuration (De-configured after next boot)


=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=


Compute Cabinet 0

Cabinet 0 Hardware Inventory:
   Component                         Slots    Present   Failure    State
   ---------                        -------   -------   -------   -------
   Cabinet Fans (blowers)               8         7         0          NA
   Cabinet Power Supplies               2         1         0          NA

=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=-+-=

 

 .....

------------------------------------------------------------------------------
ID: 0x24        FRU Name: Processor 0 RAM
BOARD INFO:
 Mfg Date/Time: 0
 Manufacturer :
 Product Name : MAKO-0800      
 S/N          : (for your security, I have removed the serial number from your post above - that's information you probably don't want to make publicly available. Forum Moderator

 Part Number  : AB534-62001
 FRU File ID  : B  
 Board Rev    :
 Date Code    : 4443
 Artwork Rev  : A4
 Cpu Speed    : 800 Mhz
------------------------------------------------------------------------------

obviously, the machine have two active CPUs, Why there is just one Process information ?

"ID: 0x24        FRU Name: Processor 0 RAM"

 

4) I run "cstm>sel dev all;wait;il" on HPUX11.23, HPUX11.31, ITA64

    I found there are no CPU information in the output, Why?

 

 

please indicate me, thanks!

Dennis Handly
Acclaimed Contributor

Re: How to detect CPU serial Number?

>2) does it mean machinfo command is impossible to get the CPU serial number?

 

I don't even see that in my 11.31 PHCO_40404 version.