Operating System - HP-UX
1827809 Members
1912 Online
109969 Solutions
New Discussion

Re: Command to determine CPU information

 
SOLVED
Go to solution
Sonison James
Frequent Advisor

Command to determine CPU information

Hello,
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
12 REPLIES 12
Pete Randall
Outstanding Contributor
Solution

Re: Command to determine CPU information

SJ,

I 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
Michael Tully
Honored Contributor

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."
Anyone for a Mutiny ?
H.Merijn Brand (procura
Honored Contributor

Re: Command to determine CPU information

All info in one sweep: https://www.beepz.com/personal/merijn/#FAQ or http://www.cmve.net/~merijn/#FAQ use script 'ux' to get

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
Enjoy, Have FUN! H.Merijn
John Meissner
Esteemed Contributor

Re: Command to determine CPU information

To get the cpu speed and number of cpu's you can use the attached script.
All paths lead to destiny
David_246
Trusted Contributor

Re: Command to determine CPU information

Hi,

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
@yourservice
Dario_1
Trusted Contributor

Re: Command to determine CPU information

Hi!

Try this:

echo "selclass qualifier cpu;info;wait;infolog"|cstm

Regards,

Dario
twang
Honored Contributor

Re: Command to determine CPU information

1.# cstm
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
Keely Jackson
Trusted Contributor

Re: Command to determine CPU information

Hi

If you don't need the output for scripts etc you can also look in:

sam > performance monitors > system properties.

Cheers
Keely
Live long and prosper
Jean-Louis Phelix
Honored Contributor

Re: Command to determine CPU information

You can also use SAM :

Performance Monitors -> System Properties

Regards,
It works for me (© Bill McNAMARA ...)
Geoff Wild
Honored Contributor

Re: Command to determine CPU information

Try this script called hpmem....

RGds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Sritharan
Valued Contributor

Re: Command to determine CPU information

Hi,

I'll prefer using SAM

SAM > Perfromance Monitor > System Properties

Thanks & Regards
Sri
Known is a drop...unknown is an ocean -> quote from a movie
Sonison James
Frequent Advisor

Re: Command to determine CPU information

Thanks,
The information provided here and the links helped a lot.

Regards
SJ