Operating System - HP-UX
1834828 Members
2177 Online
110070 Solutions
New Discussion

Re: Determining machine serial number

 
SOLVED
Go to solution
Sonison James
Frequent Advisor

Determining machine serial number

Hello,

How do I get the machine serial number? I tried using getconf and confstr() but got a null string for machine serial number.

Thanks and regards
Sonison James
17 REPLIES 17
Bryan D. Quinn
Respected Contributor

Re: Determining machine serial number

Hello

I am not aware of a way to acquire the machine serial number from the OS. I don't beleive one exists.

-Bryan
Caesar_3
Esteemed Contributor

Re: Determining machine serial number

Hello!

The serial number alway writen on the machine box so it's not hard to find it.

Caesar
Patrick Wallek
Honored Contributor

Re: Determining machine serial number

Are you talking about the actual serial number or the 'uname -i' number? The most reliable way to get the serial number itself is to look on the machine.
Ron Thompson
Advisor

Re: Determining machine serial number

On the newer HP systems, you can find this information with "stm". Type in "mstm", then "o" for ok to the first message, then move to "system" and highlight it with a "return", then "tab" then 3 right arrows to "Tools" and "return" for "information" then return for "run". After a minute or so when the information shows up, go down the page using "down arrow" to "SYS_BD", "FRU Specific Info" and you will see the serial number at the end of that line.
Tim D Fulford
Honored Contributor

Re: Determining machine serial number

mstm, choose system() & it is usually refered to as FRU or Serial Number, alternatively if you have Ignite-UX print_manifest gives it

The above will ONLY work on newer systems (A500, N, L rpXXXX), if you have a K,D or older box get the tourch out & look at the back (& front) of your box...

Tim
-
Michael Steele_2
Honored Contributor

Re: Determining machine serial number

Unfortunately there's great deal of confusion about weather or not its a 'software' serial number embedded in the system board and used for licensing or the 'hardware' serial number linked to your system handle and required by HP to open a service call.

For sw serial numbers 'uname -i', print_manifest, or stm.

For hardware serial numbers needed to open up a HW call with HP they I'm afraid they appear only on the outside of the server. For K Class for instance they are behind the front panel. For L Class they appear in two places, either behind the bottom right panel or beneath the bottom front panel. Same with N class.

HW serial numbers also appear on your original shipping manifest or sales order invoice so if you know your channel partner or HP sales rep. then they should be able to look this up.
Support Fatherhood - Stop Family Law
Sonison James
Frequent Advisor

Re: Determining machine serial number

Hello,

I am interested in the "Hardware Serial Number" programatically. I followed a similar posting and was able to get "System Serial Number" using cstm. However, is there any other way of getting it, since cstm may not be availbale always (even though it is free). Any reason why confstr() returns a null string?

Thanks and regards
Sonison James
Romaric Guilloud
Regular Advisor

Re: Determining machine serial number

Hello James,
To get the HW ID, launch:
>/usr/bin/getconf CS_MACHINE_IDENT

To get the physical Serial Number you want, launch the attached executable "retrieve_serial".
That should make it for you.

Sincerely,

Romaric,
"And remember: There are no stupid questions; there are only stupid people." (To Homer Simpson, in "The Simpsons".)
Sonison James
Frequent Advisor

Re: Determining machine serial number

Hello Romaric,

I got a 404 error when I tried to download the file.

Regards
Sonison James
Romaric Guilloud
Regular Advisor

Re: Determining machine serial number

There it is again.
Sincerely,

Romaric.
"And remember: There are no stupid questions; there are only stupid people." (To Homer Simpson, in "The Simpsons".)
Romaric Guilloud
Regular Advisor

Re: Determining machine serial number

Indeed the attachement at itrc.hp.com fails for some reason on the web server side.
Give me an e-mail address or a ftp server that I can use as anonymous in order to send you this file.
Regards,

Romaric.
"And remember: There are no stupid questions; there are only stupid people." (To Homer Simpson, in "The Simpsons".)
Sonison James
Frequent Advisor

Re: Determining machine serial number

Hello Romaric,

My e-mail id is sonison_james@hotmail.com. It would be great if you could send me the source also (if possible).

Thanks and regards
Sonison James
Romaric Guilloud
Regular Advisor
Solution

Re: Determining machine serial number

I sent you the executable Sonison over e-mail, I don't have the source unfortunately.
Regards,

Romaric.
"And remember: There are no stupid questions; there are only stupid people." (To Homer Simpson, in "The Simpsons".)
Bernd Dittmar
Advisor

Re: Determining machine serial number

Do you mean somethin like that ?

System Information for (galilei)
HPUX Model Number......: L3000
HPUX Model String......: 9000/800/L3000-5x
Original Product Number: A6144A
Current Product Number.:
System Serial Number...: DEH41232PN
Hversion...............: 0x5db0
Sversion...............: 0x491
Software Capabilities..: 0x100000f0

The whole System documentation you can get with an tool called "cfg2htm"

regards Bernd
BaaN IV on HP-UX
RolandH
Honored Contributor

Re: Determining machine serial number

Do this,

echo "sel dev 1 ;info;wait;infolog" | cstm |grep -i "System Serial Number"


That is possible on all new servers.
Not on WS.

Roland
Sometimes you lose and sometimes the others win
Geoff Wild
Honored Contributor

Re: Determining machine serial number

You can also get the serial number with sysinfo204 - for newer boxes - in it they use:

/usr/local/sysinfo204/getsn

I attached sysinfo204.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Marlene Smith
Advisor

Re: Determining machine serial number

if you have ignite-ux on your box - you can also get the s/n from a print_manifest command - also handy to have "just in case" :)
HTH