Operating System - HP-UX
1837455 Members
3893 Online
110117 Solutions
New Discussion

Re: which command can see the serial number of cpu on hp-ux

 
hongjing_zhang
Trusted Contributor

which command can see the serial number of cpu on hp-ux

which command can see the serial number of cpu on hp-ux

thanks for your answers
13 REPLIES 13
Karthik S S
Honored Contributor

Re: which command can see the serial number of cpu on hp-ux

I believe it is possible with STM. Not sure though.

-Karthik S S
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn
Patrick Wallek
Honored Contributor

Re: which command can see the serial number of cpu on hp-ux

Have a look at this thread. This worked for me on A, L, N and rp series machines. Anything older does not have the serial number available.

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=503181
hongjing_zhang
Trusted Contributor

Re: which command can see the serial number of cpu on hp-ux

I try to use stm,but no way
Sanjiv Sharma_1
Honored Contributor

Re: which command can see the serial number of cpu on hp-ux

Isralyn Manalac_1
Regular Advisor

Re: which command can see the serial number of cpu on hp-ux

you can try print_manifest
Shaikh Imran
Honored Contributor

Re: which command can see the serial number of cpu on hp-ux

Hi,
If you have A,L or N class i am sure it is XSTM or stm.Just see the information you will get the CPU ID/s and serial Number/s.

Regards,

I'll sleep when i am dead.
Senthil Kumar .A_1
Honored Contributor

Re: which command can see the serial number of cpu on hp-ux

hello there,

I know exactly the place you can find that info.First forget stm,cstm or even xstm. because if you can't find in stm...You can simply forget about seeing in cstm or Xstm so on and so forth ..because those are just different way of accessing the same utility.



The solution is GSP/MP prompt.You have different ways to go to this prompt based on the way GSP/MP is configured.The most easy way is If your server has Local console(mind you , not the graphical X server consoles)..hit ctrl+B to go to this prompt..You will be aske a username and password...assuming that u are the sysadmin i hope you have the username and the required password for gsp,though you can try username:Admin and password:Admin.Once you have logged in issue the CM command then issue df command. Voila!.... you are watching the FRU numbers and possibly serial numbers of all the hardware and adapters etc.. of your server.....

best of luck

senthil
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Leo Wong_1
Occasional Advisor

Re: which command can see the serial number of cpu on hp-ux

do "uname -a", the 5th column is model type and 6th column is serial no.
RolandH
Honored Contributor

Re: which command can see the serial number of cpu on hp-ux

As I understand you right you want to know the serial number of the cpu (NOT the system serial number)

you can get it with

# echo "selclass qualifier cpu;info;wait;infolog" | cstm |grep -i serial

Regards

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

Re: which command can see the serial number of cpu on hp-ux

If it's the system you want, then you can use something like sysinfo - which uses an executable called getsn....

Here's part of the output od sysinfo:

SysInfo 3.01 by HP ESSO

Configuration data for svr003
Collected on Fri Mar 12 13:02:58 MST 2004


SYSTEM DATA
===========

HOSTNAME: svr003
SYSTEM: 9000
MODEL: 9000/800/rp7410
SERIAL #: USR12345W1
SYSTEM ID: 2501234527
CPU SPEED: 750 MHz
CPUS: 6 active processor(s)
MEMORY: 10080 Mbytes of memory.
HP-UX VERSION: B.11.11 64 Bit
USER LICENSE: unlimited-user license
LAST BOOT: Jan 31 20:24
LAST PATCH: Aug 31 2003
VOLUME MANAGER: Logical Volume Manager (LVM)


=== END Basic System Data ===

I run it from cron like:

# Run the sysinfo script
0 6 1 * * /usr/local/sysinfo/sysinfo -a -b -o /usr/tmp/`hostname`.sysinfo >/tmp/sysinfo.cron 2>&1



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.
Bill Hassell
Honored Contributor

Re: which command can see the serial number of cpu on hp-ux

Roland's answer is correct (as well as the others that refer to cstm and relatives, stm, mstm, xstm). HOWEVER, the online diagnostics must be loaded on your system. This is the default (stm and ESM) but many systems do not have them. Check with:

swlist -l bundle|grep -i diag

cstm (and relatives) are located in /usr/sbin.

HOWEVER: the serial number is stored only on new HP 9000 models. The rp models, the L-class and SuperDome, some N- and A-class have the serial number. But the K-class and any box built before about 2001 will not have the serial number stored and can only be obtained with a flashlight.


Bill Hassell, sysadmin
RolandH
Honored Contributor

Re: which command can see the serial number of cpu on hp-ux

Additionally for Itanium systems, wether or not it is a workstation or server you can use the 'machinfo' command to get system serial number.

Roland
Sometimes you lose and sometimes the others win
Mohammed Imran
Advisor

Re: which command can see the serial number of cpu on hp-ux

hi hongjing zhang.

Try #uname -a
or go to the following files to get the Serial no:

If you are stil using the factory loaded OS that came with the systems when you purchased them, then you can use /opt/ignite/bin/print_manifest to get the serial
Number. Or /var/opt/ignite/local/manifest
hope the above will suffice your requirement.