Operating System - HP-UX
1753776 Members
7205 Online
108799 Solutions
New Discussion юеВ

how to identify processor?

 
SOLVED
Go to solution
Costin Apostol
New Member

how to identify processor?

Hi,

How can I find out in hpux what processor do I have?

I can only find my machine type:
bash-2.03# model
9000/785/B1000

How do I get the processor type? I need something like PA8500...

It does not matter if it is C++ code or shell command...

Thanks,
Costin

17 REPLIES 17
Steven E. Protter
Exalted Contributor

Re: how to identify processor?

Shalom,

model command.

Better yet, http://docs.hp.com

It says exactly what processor is in your system.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Peter Godron
Honored Contributor
Solution

Re: how to identify processor?

Costin Apostol
New Member

Re: how to identify processor?

I really need a C++ code or shell command...

Thanks
siva0123
Trusted Contributor

Re: how to identify processor?

Hi,

echo "selclass type proc;info;wait;infolog" | cstm

This should help you i think


Thanks,
siva
Peter Godron
Honored Contributor

Re: how to identify processor?

C ostin,
please read the info in the link I provided.

In Procura's answer are a number of ways of getting the info:

echo "selclass qualifier cpu;infolog" | /usr/sbin/cstm | grep "CPU Module"
Pete Randall
Outstanding Contributor

Re: how to identify processor?

Try this:

MODEL=$(grep -i $(model | tr "/" " " \
| awk '{print $NF}') \
/usr/sam/lib/mo/sched.models \
| awk '{print $NF}')
echo $MODEL


Pete

Pete
Costin Apostol
New Member

Re: how to identify processor?

Sorry, none worked :(

1. /usr/sam/lib/mo/sched.models does not contain B1000 on my machine.

2. cstm, mstm, xstm do not exist on my machine.

Do you think I have any chance to get the information I need?

bash-2.03# uname -a
HP-UX Janus B.11.00 U 9000/785 2014840735 unlimited-user license

bash-2.03# model
9000/785/B1000
siva0123
Trusted Contributor

Re: how to identify processor?

Hi,

If there is now way to find it , why dont you hardcode it in your program.

9000/785/B1000 has the following processor
PA 8500 processor at 300MHz

Thanks,
siva
Pete Randall
Outstanding Contributor

Re: how to identify processor?

Well, I can tell you that your B1000 has a PA-8500 processor that runs at either 300 or 400 Mhz, if that helps.


Pete

Pete