1757588 Members
2727 Online
108862 Solutions
New Discussion юеВ

Clock Speed HP-UX 11.31

 
SOLVED
Go to solution
rataratar
Occasional Contributor

Clock Speed HP-UX 11.31

Hi experts,

ive been getting headache to determine the clock speed of HP-UX v. 11.31. Any experts know how to do this? (Unix commands).
Thanks for your help!
11 REPLIES 11
Jeeshan
Honored Contributor

Re: Clock Speed HP-UX 11.31

echo "selclass qualifier CPU;info;wait;infolog"|cstm
a warrior never quits
Nido
Trusted Contributor

Re: Clock Speed HP-UX 11.31

Hi,

If you're talking about CPU Clock speed:

#echo itick_per_tick/D | adb -k /stand/vmunix /dev/kmem

You can also view in cstm:
echo "selclass qualifier cpu;info;wait;infolog"|cstm > /tmp/cpu.info

Thanks,
" Let Villagers Be Happy!! "
rataratar
Occasional Contributor

Re: Clock Speed HP-UX 11.31

hi there,

thanks for the replies.

i've tried your suggestion, however the results are:

bash-4.0$ echo "selclass qualifier CPU;info;wait;infolog"|cstm
bash: cstm: command not found

bash-4.0$ echo "selclass qualifier cpu;info;wait;infolog"|cstm > /tmp/cpu.info
bash: cstm: command not found


or is there any shell script to get the clockspeed. I remember having similar problem with HP-UX 11.11 and found out script as follows:

#!/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" | \
sudo adb -k $hpux /dev/kmem | \
tr "\012" " " | \
read junk junk2 kval
}
hpux=/hp-ux
rev=$(uname -r | cut -d. -f2)
if ((rev > 9)); then hpux=/stand/vmunix ;fi
/bin/uname -a
GetKernelSymbol "processor_count"
print CPU Count: $kval
GetKernelSymbol "itick_per_tick"
let speed=kval/10000
print CPU Speed: $speed MHz
if ((rev > 10)); then
print CPU HW Support: `getconf HW_CPU_SUPP_BITS`-bit
print Kernel Support: `getconf KERNEL_BITS`-bit
GetKernelSymbol "memory_installed_in_machine"
else
GetKernelSymbol "physmem"
fi
let mb=kval*4/1024 # convert pages to MB
print RAM Size: $mb MB
Nido
Trusted Contributor

Re: Clock Speed HP-UX 11.31

Error Message says `cstm not found`
Please set the path; cstm should be in /usr/bin.

Thanks,
" Let Villagers Be Happy!! "
rataratar
Occasional Contributor

Re: Clock Speed HP-UX 11.31

Same result :(

bash-4.0$ pwd
/usr/bin
bash-4.0$ echo "selclass qualifier cpu;info;wait;infolog"|cstm > /tmp/cpu.info
bash: cstm: command not found

Any ideas? Thanks.
Suraj K Sankari
Honored Contributor

Re: Clock Speed HP-UX 11.31

Hi,
>>bash-4.0$ echo "selclass qualifier cpu;info;wait;infolog"|cstm > /tmp/cpu.info
>>bash: cstm: command not found

put the full path of cstm and you should having the Super User to run cstm command.

#echo "selclass qualifier cpu;info;wait;infolog"|/usr/bin/cstm > /tmp/cpu.info

Suraj

Asif Sharif
Honored Contributor

Re: Clock Speed HP-UX 11.31

Hi rataratar,

give the absolute path or exit from bash and come in native shell.

Regards,
Asif Sharif
Regards,
Asif Sharif
Nido
Trusted Contributor
Solution

Re: Clock Speed HP-UX 11.31

echo "selclass qualifier cpu;info;wait;infolog"|/usr/sbin/cstm

If this works, pls assign points :-)

Cheers!!
" Let Villagers Be Happy!! "
Suraj K Sankari
Honored Contributor

Re: Clock Speed HP-UX 11.31

hi Again,

You can run "model" command or run nickel script also to know the cpu clock speed.

Suraj