Operating System - HP-UX
1834483 Members
3469 Online
110067 Solutions
New Discussion

Determining the CPU sversion number and hversion number

 
SOLVED
Go to solution
Sonison James
Frequent Advisor

Determining the CPU sversion number and hversion number

Hello,

I would like to determine the CPU sversion and hversion numbers. Any help regarding this would be highly appreciated.

Thanks and regards
Sonison James
12 REPLIES 12
Patrick Wallek
Honored Contributor

Re: Determining the CPU sversion number and hversion number

I'm not sure I understand what you need.

Have you tried the STM diagnostic tools? I went into 'xstm' (the X-windows version), selected one of the CPUs, went to the 'Tools' menu and selected 'Information' -> 'Run' or you can do 'Tools' -> 'Information' -> 'Information Log'.

Good luck.
Sonison James
Frequent Advisor

Re: Determining the CPU sversion number and hversion number

Hello Patrick,

Thanks for the info, but in case xstm is not there is there a command or an api that I could use?

Thanks and regards
Sonison James
Stefan Farrelly
Honored Contributor

Re: Determining the CPU sversion number and hversion number

Take a look at /usr/include/machine/cpu.h

You can see the SVERSION and HVERSION defined there - just need the C system call to get this info. Im blowed if I can find it - anyone else know which C call to get this info ?
Im from Palmerston North, New Zealand, but somehow ended up in London...
Hein van den Heuvel
Honored Contributor

Re: Determining the CPU sversion number and hversion number


Do you mean any or all of:

model
getconf MACHINE_MODEL
getconf CPU_CHIP_TYPE
getconf CPU_VERSION

check out
- man getconf
- man sysconf
Bill Hassell
Honored Contributor

Re: Determining the CPU sversion number and hversion number

STM (Service Tool Manager) is the online diagnostics and apparently someone has deleted the diag package from your system. It is recommended that all systems have the diags installed. They provide 3 interfaces: cstm, mstm and xstm to perform testing and monitoring of your computer. Get a copy of the latest version from your SupportPlus CDROM or if you don't have a support contract, download the diags from http://www.software.hp.com/SUPPORT_PLUS/


Bill Hassell, sysadmin
Sonison James
Frequent Advisor

Re: Determining the CPU sversion number and hversion number

Hello,

What I want is exactly what Stefan has pointed out - a C api. I found a reference to the hversion and sversion in "PA-RISC 1.1 Firmware Architecture
Reference Specification" at http://ftp.parisc-linux.org/docs/arch/ver_nums.pdf but no apis to get it.

Thanks and regards
Sonison James
Joshua Scott
Honored Contributor

Re: Determining the CPU sversion number and hversion number

I'm pretty sure you can see those on boot-up (if you don't mind rebooting for something like that)

HTH.

What are the chances...
Sritharan
Valued Contributor

Re: Determining the CPU sversion number and hversion number

Hi,

You can also use SAM to do this ,

SAM -> Performance Monitor -> System Properties and just choose Processor


Thanks & Regards
Sri
Known is a drop...unknown is an ocean -> quote from a movie

Re: Determining the CPU sversion number and hversion number

This is NOT an answer, but a hint in collecting system data:

I collect mashine status with the tool cfg2html .
It can be used on many platforms, linux solaris hp-ux, og output is a nice html file with all you need to document your systems.

It is maintained and written by Ralph Roth at http://come.to/cfg2html

I find it just as usefull as the sys_check util for Tru64 unix, if you are familiar with that.
Regards MArtin



Stefan Farrelly
Honored Contributor
Solution

Re: Determining the CPU sversion number and hversion number

Sonison,

I think the API or C call us another one of those undocumented ones. Ive checked with nm in /lib and there are some calls with cpu in the name in some libraries which I cant find documentation on, I suspect its one of those. To find out for sure you can try logging a call with the Response Centre - maybe HP will tell you. Heres the ones nm found;

f90$cputime_r16 | 383236|extern|code |$CODE$
f90$cputime_r4 | 383432|extern|code |$CODE$
f90$cputime_r8 | 383592|extern|code |$CODE$
f90$cputime_r16 | 383236|extern|code |$CODE$
cps_complex_cpus_ | 58360|extern|code |$CODE$
cps_complex_cpus_8 | 60352|extern|code |$CODE$
cps_node_cpus | 57664|extern|code |$CODE$
cps_node_cpus_8 | 59768|extern|code |$CODE$

You could try experimenting with these.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Stefan Farrelly
Honored Contributor

Re: Determining the CPU sversion number and hversion number

Sonison,

found some more stuff. If you install the OnlineDiagnostics you get a library;

/usr/sbin/stm/uut/lib/tlcpu.sl

And if you do a strings on it you can see lots of juicy looking cpu info calls, eg;

tl_get_cpu_hpa
tl_pdc_pat_cpu_64HPA
tl_get_cpu_info
tl_pdc_pat_cpu
tl_gather_all_cpu_info
tl_get_cpu_path
tl_deactivate_cpu_hw_fail
tl_reconfigure_cpu
tl_is_cpu_removed
tl_gather_visible_cpu_info
tl_activate_cpu
tl_deactivate_cpu
tl_deconfigure_cpu
tl_get_cpu_number
tl_get_cpu_status
tl_activate_cpu

Hopefully ones of these is what you want ?
Im from Palmerston North, New Zealand, but somehow ended up in London...
Sonison James
Frequent Advisor

Re: Determining the CPU sversion number and hversion number

Hello Stefan,

Firstly I am sorry for such a delayed response.

Thanks for the info, it seems to be really useful.

Thanks and regards
Sonison James