- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Processor Speed (again) ???
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
Forums
Discussions
Discussions
Discussions
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
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
07-10-2006 06:12 AM
07-10-2006 06:12 AM
Processor Speed (again) ???
If this command doesn't exist then perhaps HP should consider adding a "cpu" or command that would cough up the pertinent information.
I also looked at threadId=242806 and found that NONE of the proposed solutions actually work:
https://www.beepz.com/personal/merijn/ - broken
#sam - ??? what is #sam ???
echo "itick_per_usec/D" | adb -k /stand/vmunix /dev/kmem - returns an error
echo "selclass qualifier cpu; info; wait; infolog" | cstm |grep PA - returns an error
I have no idea how to run the scripts
Is there a command that will work that doesn't involve a colon, quote or slash? If not, is there one that will just plain work? Can you provide specific instructions to make it work?
-Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2006 06:20 AM
07-10-2006 06:20 AM
Re: Processor Speed (again) ???
Andrey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2006 06:21 AM
07-10-2006 06:21 AM
Re: Processor Speed (again) ???
sam is a gui for managing a system.
If your system is not PA-RISC the command will give an errot because you are grepping for PA
So
Start cstm from the command line
Now from the menus.
seclass qualifier cpu
wait
infolog
That should display CPU speed on screen.
Or boot the flipping box at the console, CPU speed is displayed on console each boot.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2006 06:23 AM
07-10-2006 06:23 AM
Re: Processor Speed (again) ???
I'm guessing your not root for the second one to work (itick...)
3rd one requires you have Online Diags.
swlist | grep -i OnlineDiag
Sam I'm guessing is your best bet though.
And hopefully you have root access.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2006 06:23 AM
07-10-2006 06:23 AM
Re: Processor Speed (again) ???
Regards,
jaime.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2006 06:54 AM
07-10-2006 06:54 AM
Re: Processor Speed (again) ???
Here's my standard, canned answer:
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 Tom Ferony (under Nancy Rippey's login) here:
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
07-10-2006 07:17 AM
07-10-2006 07:17 AM
Re: Processor Speed (again) ???
grep -i phys /var/adm/syslog/syslog.log
grep processor /var/adm/syslog/syslog.log
Personally I am a fan of print_manifest as suggested above.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2006 08:08 AM
07-10-2006 08:08 AM
Re: Processor Speed (again) ???
~ >> /usr/sbin/sam
Sorry, you must have superuser (root) privilege to enter SAM.
Are there any commands available other than "sam"?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2006 08:22 AM
07-10-2006 08:22 AM
Re: Processor Speed (again) ???
The below is a script I run to gather system info and format for reporting.
OUTFILE=/tmp/get_sysinfo.csv
HOST_NAME=`hostname`
PROC_SPEED=`echo itick_per_usec/D | adb -k /stand/vmunix /dev/mem |awk -F: 'NR>1 {print $2}'`
NU_PROC=`echo "runningprocs/D" | adb -k /stand/vmunix /dev/mem |awk -F: 'NR>1 {print $2}'`
MODEL=`model|awk -F/ '{print $3}'`
MEM=`echo "phys_mem_pages/D"| adb -k /stand/vmunix /dev/kmem |awk -F: 'NR>1 {print$2}'`
if [[ -z $MEM ]]
then
MEM=`echo "physmem/D"| adb -k /stand/vmunix /dev/kmem |awk -F: 'NR>1 {print$2}'`
fi
printf "%s,%s,%s,%s,%s\n" hostname model nu_proc proc_speed mem>$OUTFILE
printf "%s,%s,%s,%s,%s\n" $HOST_NAME $MODEL $NU_PROC $PROC_SPEED $MEM >>$OUTFILE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2006 09:15 AM
07-10-2006 09:15 AM
Re: Processor Speed (again) ???
If anyone is reading this who works for HP please advance this request to the appropriate people as this type of information would be very useful to have.
Thanks,
-Doug
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2006 06:33 AM
07-11-2006 06:33 AM
Re: Processor Speed (again) ???
using the pstat() system calls. You'll have
to write a C program, though. Also, pstat()
is not portable.