Operating System - HP-UX
1833689 Members
3788 Online
110062 Solutions
New Discussion

Re: cpu speed on HPUX 11iv2

 
SOLVED
Go to solution
Girish_17
Regular Advisor

cpu speed on HPUX 11iv2

Hi all,
I would like to know the CPU speed and RAM on my server (both IA/PA) running with HPUX 11iv2.

Tried executing following command:
# echo itick_per_usec/D | adb -k /stand/vmunix /dev/kmem | awk '{print $2}'

But it returns an error ...
adb: info: Option -k is deprecated.
adb: warning: Unrecognized format character - 'D'.

Is there any specific command to just know the CPU Speed and Memory size.

Thanks a lot in advace.,
Regards,


3 REPLIES 3
Robert-Jan Goossens
Honored Contributor
Solution

Re: cpu speed on HPUX 11iv2

Hi,

11.23 pa-risc

# echo "itick_per_usec/d" | adb /stand/vmunix /dev/kmem

11.23 itanium

# machinfo | grep speed

Regards,
Robert-Jan
Pete Randall
Outstanding Contributor

Re: cpu speed on HPUX 11iv2

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
Pete Randall
Outstanding Contributor

Re: cpu speed on HPUX 11iv2

Sorry, forgot the Itanium related comment lines:

# Note: For Itanium, use the following:
# echo "${MYSYMBOL}/jd" | adb $HPUX /dev/kmem


Pete

Pete