HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Check HP-UX system serial number

 
Sumant M Kumar
Frequent Advisor

Check HP-UX system serial number

Hi,

Is there any command to check system serial number in hp-ux.I dont want to check while booting or on ILO.

In VMS - $show cpu/full

Regards,
Sumant
10 REPLIES
Steven Schweda
Honored Contributor

Re: Check HP-UX system serial number

You mean like this?:

dyi # getconf MACHINE_SERIAL
TW23900053

dyi # getconf CS_MACHINE_SERIAL
TW23900053

dyi # machinfo | grep serial
Machine serial number: TW23900053


If I had an HP-UX question, then a VMS forum
is unlikely to be the first place I'd ask it.

An HP-UX Forum search for
serial
should find some things. That's where I
found the things shown above.

> In VMS - $show cpu/full

Sometimes, perhaps. Around here:

alp $ pipe show cpu /full | search sys$input serial
Primary CPU = 0
HWRPB CPUs = 4
Page Size = 8192
Revision Code =
Serial Number =
Serial Number..:
Raj D.
Honored Contributor

Re: Check HP-UX system serial number

Sumant M Kumar,

Check this out:


To find the system serial number:
- on 11iv1, (+ v2, v3 )

# ( echo "selclass qualifier system;info;wait;infolog" | /usr/sbin/cstm ) | grep -i "System serial"





- on v2 v3 :(11.23 & 11.31 )
# machinfo | grep "Machine serial"
Machine serial number: USE7400AN6



Cheers,
Raj.




(*Dont forget to assign the pending points. )

" If u think u can , If u think u cannot , - You are always Right . "
Sumant M Kumar
Frequent Advisor

Re: Check HP-UX system serial number

Thanks a lot Steven and Raj...its worked for me.

Regards,
Sumant
Suraj K Sankari
Honored Contributor

Re: Check HP-UX system serial number

Hi,
>>Is there any command to check system serial number in hp-ux.I dont want to check while booting or on ILO.

#machinfo
and
#echo "selclass qualifier system;info;wait;infolog" | cstm | grep -i serial

Suraj

Tingli
Esteemed Contributor

Re: Check HP-UX system serial number

Best way is to look at the system itself as sometimes those command will bring up a wrong SN, especially if the system is cloned one.
Viveki
Trusted Contributor

Re: Check HP-UX system serial number

Yes, Tingly came up with a right point.

The serial number of a system may vary from the label physically present. The feild engineer needs to re enter the parameters like serial number, product number etc. while replacing parts mainly the system board.
Torsten.
Acclaimed Contributor

Re: Check HP-UX system serial number

Best way is to look at the system itself as sometimes those command will bring up a wrong SN, especially if the system is cloned one.


This cannot be, because the number is directly read from the system, this data isn't stored on a disk.


OK, a "repaired" system may have a wrong value, but I would not call this "repaired" at all ... and you would see other strange things in this case.


Easy way

# machinfo
(if available)

or

# echo "sel dev 1; info;wait;il"|cstm

and grep for the serial number.

Remember, older systems do not store this at all.

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!   
kamaleswaran
Occasional Advisor

Re: Check HP-UX system serial number

Find Below listed command are help full to get serial number.

1) #print_manifest

2) #machinfo

3) #cstm
cstm>selall
cstm>infolog


q for quit.

Tingli
Esteemed Contributor

Re: Check HP-UX system serial number

As far as I can remember, that I had a system with wrong SN from those commands. It rarely happens and it does happen.
Matti_Kurkela
Honored Contributor

Re: Check HP-UX system serial number

The print_manifest may display a wrong serial number if the system was cloned using something other than Ignite, because print_manifest just outputs the information gathered at the time the system installation was run.

Ignite cloning will re-write that information, but other cloning methods may not do that.

The STM diagnostics, "machinfo" (when available) and "getconf MACHINE_SERIAL" methods on the other hand will read the hardware directly, so the cloning is unlikely to fool them. Unfortunately, some old PA-RISC servers do not have a software-readable serial number, so these commands will not return any information.

On the other hand, if someone swapped the machine's system board and did not use the proper maintenance commands to update the serial number information in the system's NVRAM, the system board may have a different serial number than the one printed on the chassis. But at *that* point, it's uncertain which serial number is the "real" one: the one printed on the chassis or the one reported by the system board?

I've understood that HP's original system boards sold as spare parts will now come without a serial number. The firmware will allow (and require) to set the serial number - but only one time. Once the serial number is set, it cannot be changed any more.

If you really have a system where STM and/or "getconf MACHINE_SERIAL" will display a _wrong_ serial number, I would suggest to check the machine's model, HP-UX version and service history.

MK
MK