1758616 Members
2095 Online
108874 Solutions
New Discussion юеВ

cpu, model#

 
SOLVED
Go to solution
khilari
Regular Advisor

cpu, model#

hi people, i wanted to know as to how do u get the model number and cpu information ( how many and configuration).
thanks
5 REPLIES 5
pabel
Valued Contributor

Re: cpu, model#

Hi, to get server model you can just type: model; you also get cpu details using sam.

SAM -> Performance Monitors -> System Properties -> Processor.

Regards,
Pablo.
Torsten.
Acclaimed Contributor

Re: cpu, model#

Model:

# model

number of CPU:

# ioscan -fnCprocessor

detailed information depends, if you are using a PA-RISC or Integrity system.

Integrity:

/usr/contrib/bin/machinfo

PA-RISC:

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Ivan Ferreira
Honored Contributor

Re: cpu, model#

Try with:

/usr/contrib/bin/machinfo
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Pete Randall
Outstanding Contributor
Solution

Re: cpu, model#

If you have Ignite installed, you can use the print_manifest command.

You can also use SAM to display system properties (Sam -> Performance
Monitors -> System Properties).

There are also utilities like "cfg2html" ( http://come.to/cfg2html ),
"nickel" ( ftp://ftp.hp.com/pub/catia/Utils/nickel.shar ) and "sysinfo"
( http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/sysinfo-3.3.1/ ).

Finally, you can also obtain this information from the command line with a
series of little scripts like these:

CPU

HPUX=/stand/vmunix

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

MHZ=$(echo itick_per_tick/D \
| adb -k $HPUX /dev/kmem \
| tail -1 \
| awk '{print $2/10000}')
echo `hostname` has `ioscan -k |grep -n processor \
|wc -l` $MODEL $MHZ "Mhz processor(s)"


Number of CPUs

ioscan -k |grep -n processor |wc -l




RAM

HPUX=/stand/vmunix
MAJORREV=$(uname -r | cut -f2 -d .)
if [ $MAJORREV -ge "11.0" ]
then
MYSYMBOL="phys_mem_pages"
else
MYSYMBOL="physmem"
fi

MYMEM=$(echo "${MYSYMBOL}/D" \
| adb $HPUX /dev/kmem \
| grep "${MYSYMBOL}: *." \
| awk '{printf "%.0f MB\n",$2/256}')
echo $MYMEM



And, even more finally, you can obtain CPU speed and RAM without CSTM or root ac
cess as described by Nancy Rippey here:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=851889


Pete

Pete
Ninad_1
Honored Contributor

Re: cpu, model#

Hi,

Model can be see using command -
model

CPU info -
1. SAM as been already mentioned

2. echo "selclass qualifier cpu;info;wait;infolog" | /usr/sbin/cstm > cstm.out
grep 'Processor Number' cstm.out will give you no of processors. Infact depending on the model of the system it will show you the processor type - PA8500/PA8600 ...

But the easiest way is SAM.

Regards,
Ninad