Operating System - HP-UX
1752636 Members
6047 Online
108788 Solutions
New Discussion юеВ

Re: how to find machine serial number on hp-ux 11.00

 
SOLVED
Go to solution
Rohinton Daruwala_1
Occasional Contributor

how to find machine serial number on hp-ux 11.00

Hi
I need to extract the machine serial number on hp-ux 11.00
I know that using confstr(_CS_MACHINE_SERIAL....) or using cstm works on hp-ux 11.11
But neither of these methods seems to work on 11.00
Is there any alternative way to extract the machine serial number?
Any help would be appreciated.

Thanks
Rohinton Daruwala
13 REPLIES 13
Rajeev  Shukla
Honored Contributor

Re: how to find machine serial number on hp-ux 11.00

Are you talking about the machine Identification number returned by 'uname -a'

Rajeev
twang
Honored Contributor

Re: how to find machine serial number on hp-ux 11.00

# echo "sel path system\ninfolog\nexit"|cstm|grep "System Serial Number"
Massimo Bianchi
Honored Contributor

Re: how to find machine serial number on hp-ux 11.00

Hi,
in tis thread the solution:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xc2d3506d69a7d711abdc0090277a778c,00.html

They didn't specify the OS, so i suppose that is valid the same

Massimo
twang
Honored Contributor

Re: how to find machine serial number on hp-ux 11.00

Or you may take a look at the physical machine, I think the serialnumber should be on a label on the back of the box.
RolandH
Honored Contributor

Re: how to find machine serial number on hp-ux 11.00

This works on my 11.00 system.

# echo "sel dev 1;info; wait;il"|cstm |grep -i "system serial"
System Serial Number...: USXXXXXXXXXX

But could it be that your system is not a new one? These procedures only working at A/L/N systems. If you have a old one like D/K/T etc. This is not working. Sorry, you have to go to system and read the tag.

HTH
Roland
Sometimes you lose and sometimes the others win
RAC_1
Honored Contributor

Re: how to find machine serial number on hp-ux 11.00

If you have ignite installed, then print_manifest command.

OR

echo "selall qualifier;info;wait;infolog"|cstm | grep -i "serial no."

There is no substitute to HARDWORK
Rohinton Daruwala_1
Occasional Contributor

Re: how to find machine serial number on hp-ux 11.00

I need to read the machine serial number from a program.
I don't seem to have cstm on my 11.00 machine.
Can it be done without cstm or confstr?
Massimo Bianchi
Honored Contributor
Solution

Re: how to find machine serial number on hp-ux 11.00

Hi,
cstm is freely installable and is very usefull for many purpose.


It comes with the diagnostic tool, in the Quarterly patch bundle cdrom.

Or freely downloadable from http://software.hp.com

Massimo
twang
Honored Contributor

Re: how to find machine serial number on hp-ux 11.00

stm is a common Diagnostic and Support Tools for the HP 9000 machines, i think you should install:

http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=B6191AAE