- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- command for CPU speed ?
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
09-23-2003 09:56 PM
09-23-2003 09:56 PM
Do we have any command in HpUX11i to find the CPU speed ,model e.t.c ? we are able to get info from SAM as System properties and also
anything to get all the system Information related to Hardware
Thanks in advance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2003 09:58 PM
09-23-2003 09:58 PM
Re: command for CPU speed ?
# echo itick_per_usec/D | adb -k /stand/vmunix /dev/mem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2003 09:58 PM
09-23-2003 09:58 PM
Re: command for CPU speed ?
Speed:
HPUX=/stand/vmunix
MHZ=$(echo itick_per_tick/D \
| adb -k $HPUX /dev/kmem \
| tail -1 \
| awk '{print $2/10000}')
echo $MHZ
Memory:
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
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2003 09:59 PM
09-23-2003 09:59 PM
Re: command for CPU speed ?
Use the model command.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2003 10:00 PM
09-23-2003 10:00 PM
SolutionTo get this info from cstm;
/usr/sbin/cstm
> selall
> il
Then scroll down to view all the hardware including all your cpu's and all the info on them.
To check cpuspeed using a simple shell use this script;
let SPEED=`echo "itick_per_tick/D" | adb /stand/vmunix /dev/kmem|grep itick|tail -1|awk '{print $2}'`
if [ $SPEED -lt 0 ];then
echo "/stand/vmunix doesnt match running kernel, trying /stand/vmunix.prev"
let SPEED=`echo "itick_per_tick/D" | adb /stand/vmunix.prev /dev/kmem|grep itick|tail -1|awk '{print $2}'`
let SPEED=$SPEED/10000
if [ $SPEED -lt 0 ];then
echo "/stand/vmunix.prev doesnt match running kernel either, exiting"
exit 1
fi
else
let SPEED=$SPEED/10000
fi
echo "CPU Speed = $SPEED Mhz"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2003 10:07 PM
09-23-2003 10:07 PM
Re: command for CPU speed ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2003 10:12 PM
09-23-2003 10:12 PM
Re: command for CPU speed ?
Thanks Pete and twanq for Calculating CPU speed.
Can u please suggest me how to get such a wonderful knowledge in all those internal stuff!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2003 10:16 PM
09-23-2003 10:16 PM
Re: command for CPU speed ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2003 10:18 PM
09-23-2003 10:18 PM
Re: command for CPU speed ?
If you keep on browsing through the Q&A in this forum, very soon you will get that knowledge. Better than training.
cheers
Umapathy