- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Command to determine CPU information
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
06-12-2003 02:15 AM
06-12-2003 02:15 AM
I would like to know if there is a direct (or indirect) command to determine CPU characteristics like CPU Type, model name, speed etc.
Thanks and regards
SJ
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2003 02:19 AM
06-12-2003 02:19 AM
SolutionI use the following:
echo `hostname` "is a " `model |sed 's/9000\/800\///' |sed 's/9000\/899\///'` "with" `ioscan -k |grep -n p
rocessor |wc -l` `cpuspeed` "Mhz processors and" `
memory` "KB of memory"
The cpuspeed script looks like this:
HPUX=/stand/vmunix
MHZ=$(echo itick_per_tick/D | adb -k $HPUX /dev/kmem | tail -1 | awk '{print $2/10000}')
echo $MHZ
And the memory script looks like this:
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
06-12-2003 02:30 AM
06-12-2003 02:30 AM
Re: Command to determine CPU information
echo "selclass qualifier cpu "info;wait;infolog" | cstm
Regards
Michael
"When I have trouble spelling, it's called fat finger syndrome."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2003 02:54 AM
06-12-2003 02:54 AM
Re: Command to determine CPU information
a5:/ 102 # ux
a5 HP-UX 11.00/64 U 9000/800/A500-7X/64 PA8700/750(2) pa-2.0 2048 Mb
a5:/ 103 #
Enjoy, have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2003 03:15 AM
06-12-2003 03:15 AM
Re: Command to determine CPU information
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2003 03:25 AM
06-12-2003 03:25 AM
Re: Command to determine CPU information
use :
- export DISPLAY=....
- xstm
- select the specific CPU
- Rigth mouse button and select "information"
I know it's GUI, but it works also :)
Regs David
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2003 04:13 AM
06-12-2003 04:13 AM
Re: Command to determine CPU information
Try this:
echo "selclass qualifier cpu;info;wait;infolog"|cstm
Regards,
Dario
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2003 04:48 AM
06-12-2003 04:48 AM
Re: Command to determine CPU information
2.cstm>map
3.cstm>sel dev 29; info
(assumed device 29 is CPU)
4.cstm>il
5.q to leave, exit to exit cstm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2003 04:50 AM
06-12-2003 04:50 AM
Re: Command to determine CPU information
If you don't need the output for scripts etc you can also look in:
sam > performance monitors > system properties.
Cheers
Keely
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2003 04:51 AM
06-12-2003 04:51 AM
Re: Command to determine CPU information
Performance Monitors -> System Properties
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2003 04:52 AM
06-12-2003 04:52 AM
Re: Command to determine CPU information
RGds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2003 09:16 PM
06-12-2003 09:16 PM
Re: Command to determine CPU information
I'll prefer using SAM
SAM > Perfromance Monitor > System Properties
Thanks & Regards
Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2003 12:46 AM
06-13-2003 12:46 AM
Re: Command to determine CPU information
The information provided here and the links helped a lot.
Regards
SJ