- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- To find the CPU frequency on HP-UX11.00
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-19-2006 01:46 AM
тАО04-19-2006 01:46 AM
To find the CPU frequency on HP-UX11.00
Anyone can help me to find the CPU frequency using a regular user account?
Thanks a lot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-19-2006 01:51 AM
тАО04-19-2006 01:51 AM
Re: To find the CPU frequency on HP-UX11.00
Check this thread from Nancy Rippey:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=851889
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-19-2006 01:51 AM
тАО04-19-2006 01:51 AM
Re: To find the CPU frequency on HP-UX11.00
if nobody else comes up with a better solution, ask your friendly System Administrator to tell you.
Or, as somebody else has posted:
perl -e 'local($PSTAT, $PSTAT_PROCESSOR)=(239,10);
local($struct_pst_processor)=("L30");
local($cpu_info, $cpu_ticks);
$cpu_info = "\0" x 120;
syscall($PSTAT, $PSTAT_PROCESSOR, $cpu_info, length($cpu_info), 1, 0);
($cpu_ticks)=(unpack($struct_pst_processor, $cpu_info))[26];
print "speed=".int($cpu_ticks/10000)."\n";'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-19-2006 01:52 AM
тАО04-19-2006 01:52 AM
Re: To find the CPU frequency on HP-UX11.00
Try
echo "selclass type cpu;info;wait;infolog" | /usr/sbin/cstm
Tou will get an output which will show you the CPU type
PA8200 or PA8500 or PA8600 ... PA8900.
Depending on the CPU type and server model -
can get using command
model
You can understand the CPU freq.
e.g. PA8500 - 440 MHz
PA8700 - 750 MHz
PA8900 - 1 or 1.1 GHZ etc
you can search on web once you get the CPU type and server model.
Hope this helps,
Ninad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-19-2006 02:08 AM
тАО04-19-2006 02:08 AM
Re: To find the CPU frequency on HP-UX11.00
copy script into a file chmod to 755 and run it. it will give a whole bunch of usefull info.
regards
dean
-----------------------snip------------------
#!/usr/bin/ksh
if [ `uname -s` != "HP-UX" ]; then
echo "Incompatible kernel, script is HP-UX specific; exiting"
exit 1
fi
VER=`uname -r | cut -c3-4`
case $VER in
"09") KERNEL="/hp-ux" ;;
"10"|"11") KERNEL="/stand/vmunix" ;;
*) echo "HP-UX version $VER not supported"
exit 2 ;;
esac
# Check that /dev/mem is readable
if [ ! -r /dev/mem ]; then
echo "/dev/mem read access denied"
exit 3
fi
# determine page size
eval $(grep "define *PAGESIZE" /usr/include/limits.h |
sed 's/# *define *//;s/ /=/;s/ *//g')
if [ "$PAGESIZE" = "" ]; then
echo "PAGESIZE not explicitly defined; assuming 4096"
PAGESIZE=4096
fi
# echo $PAGESIZE
# start adb
adb -k $KERNEL /dev/mem |&
# get kernel data
alias setvar='read -p title ; read -p resp ; eval $(echo $resp | sed "s/: */=/")'
print -p hostname/s ; setvar
print -p pdc_model_string/s ; setvar
print -p processor_count/D ; setvar
print -p ;
CLOCK=`echo itick_per_tick /D | adb /stand/vmunix /dev/kmem |grep itick_per_tick:| tail -1| awk '{print $2/10000 "
MHz"}'`
print -p itick_per_tick/D ; setvar
if [ "$VER" -eq "10" ] ; then
export MEM=`echo physmem/D | adb /stand/vmunix /dev/kmem |tail -1| awk '{print $2/256 " Mb"}'`
elif [ $VER -eq "11" ]; then
export MEM=`/usr/sbin/dmesg | grep "Physical:" | awk '{ substr($0,","," "); print $2/1000 " Mb" }'`
else
echo Memory calculation complete
fi
# display results
echo "Hostname\t\t= $hostname"
echo "Model\t\t\t= $pdc_model_string"
echo "OS Release Level\t= `uname -r`"
echo "Processor Count\t\t= $processor_count"
echo "Clock Speed\t\t= ${CLOCK}"
echo "Main Memory \t\t= ${MEM}"
# kill off adb & exit
print -p '$q'
exit 0
--------------------end ----------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-19-2006 05:54 AM
тАО04-19-2006 05:54 AM
Re: To find the CPU frequency on HP-UX11.00
$ model
9000/800/L2000-44
This system has 440mhz cpu's.
Regards,
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-19-2006 06:34 AM
тАО04-19-2006 06:34 AM
Re: To find the CPU frequency on HP-UX11.00
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-19-2006 09:08 AM
тАО04-19-2006 09:08 AM
Re: To find the CPU frequency on HP-UX11.00
To query the system you can use "adb". It is an accurate way to pull the information from a system's kernel.
echo "itick_per_usec/D" \
|adb -k /stand/vmunix /dev/kmem \
|tail -1 \
|awk '{ print $2 , "\bMhz" }'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-19-2006 09:11 AM
тАО04-19-2006 09:11 AM
Re: To find the CPU frequency on HP-UX11.00
That information can only be verified by someone with root privledges.
Regards,
Josiah