Operating System - HP-UX
1833123 Members
3039 Online
110051 Solutions
New Discussion

Re: How to find cpu info online on Itanium superdome running HPUX-11.23?

 
Brilliant
New Member

How to find cpu info online on Itanium superdome running HPUX-11.23?

Hello,

How to find cpu info online on Itanium superdome running HPUX-11.23?
Model: ia64 hp superdome server SD32B
OnlineDiag : B.11.23.08.04 HPUX 11.23 Support Tools Bundle, Sep 2006

Command Not working : echo "selclass qualifier cpu;info;wait;infolog"|cstm > /tmp/cpuinfo

Anyone explain how can I get the cpu info online(HPUX level) for the above mentioned setup.

Thanks
Brill
8 REPLIES 8
Geoff Wild
Honored Contributor

Re: How to find cpu info online on Itanium superdome running HPUX-11.23?

Try this:

# cat /usr/local/bin/hpmem.ia64
#!/bin/ksh
#
# Taken from the HP/UniGraphics FAQ
# You must be ROOT to execute this since it uses adb to
# examine the running kernel
#
GetKernelSymbol()
{
echo "$1/D" | \
adb -o $hpux /dev/kmem | \
tr "\012" " " | \
awk -F: '{print $3}' |\
read kval
}
hpux=/stand/vmunix
rev=$(uname -r | cut -d. -f2)
/bin/uname -a
GetKernelSymbol "active_processor_count"
print CPU Count: $kval
GetKernelSymbol "itick_per_usec"
print CPU Speed: $kval MHz
print CPU HW Support: `getconf HW_CPU_SUPP_BITS`-bit
print Kernel Support: `getconf KERNEL_BITS`-bit
GetKernelSymbol "memory_installed_in_machine"
ver=$(uname -r | cut -d. -f3)
# if 11iv2 or higher - get memory this way
if ((ver > 22)); then
kernel=$(/usr/sbin/kcpath -x)
hexval=$(echo "phys_mem_pages/A" | adb -o $kernel /dev/kmem|tail +2|awk '{print $2}')
REAL_MEM=$(echo ${hexval}=D|adb -o)
mb=$(expr ${REAL_MEM} / 256)
else
let mb=kval*4/1024 # convert pages to MB
fi
print RAM Size: $mb MB
GetKernelSymbol "bufpages"
let mb=kval*4/1024 # convert pages to MB
print bufpages: $mb MB
GetKernelSymbol "maxuprc"
print maxuprc: $kval
GetKernelSymbol "maxvgs"
print maxvgs: $kval
GetKernelSymbol "maxfiles"
print maxfiles: $kval
GetKernelSymbol "max_thread_proc"
print max_thread_proc: $kval
GetKernelSymbol "nfile"
print nfile: $kval
GetKernelSymbol "nproc"
print nproc: $kval
GetKernelSymbol "ninode"
print ninode: $kval
GetKernelSymbol "vfd_cw"
print shmmax: $kval
GetKernelSymbol "shmmni"
print shmmni: $kval
GetKernelSymbol "dbc_max_pct"
print dbc_max_pct: $kval

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.
Brilliant
New Member

Re: How to find cpu info online on Itanium superdome running HPUX-11.23?

Hello Geoff,

Couldn't find the file /usr/local/bin/hpmem.ia64 in the system.


Thanks,
Brill
Geoff Wild
Honored Contributor

Re: How to find cpu info online on Itanium superdome running HPUX-11.23?

Brill,


vi /usr/local/bin/hpmem.ia64

Then, just cut and paste everything from

#!/bin/ksh

to

print dbc_max_pct: $kval

into it and save it, then chmod +x it....

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.
Geoff Wild
Honored Contributor

Re: How to find cpu info online on Itanium superdome running HPUX-11.23?

Or here is it attached.

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.
Brilliant
New Member

Re: How to find cpu info online on Itanium superdome running HPUX-11.23?

Hello Geoff,

Thanks, I ran the script its giving the output something simliar to machinfo. But its not providing the CPU name and version like Maddison or Monticitto.

is there any command there in OS level to find out the CPU name and version. I can find it with MP commands. I am looking for OS level command.

Regards,
Brill
Geoff Wild
Honored Contributor

Re: How to find cpu info online on Itanium superdome running HPUX-11.23?

You can take a look at the getconf command.

Example, on one of my Itaniums:

# getconf CPU_CHIP_TYPE
520160516

Havn't figured out what to do with that...

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.
Brilliant
New Member

Re: How to find cpu info online on Itanium superdome running HPUX-11.23?

Hello Geoff,

I am also getting the similar output.
getconf CPU_CHIP_TYPE
520225284

But it shoud be something like this
MONTE_C2_1624 ( Montecito CPU)
MAD9M-16-9MB (Madison CPU)

Thanks,
Brill
Torsten.
Acclaimed Contributor

Re: How to find cpu info online on Itanium superdome running HPUX-11.23?

Hi,

see also

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1098793

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!