1834249 Members
2024 Online
110066 Solutions
New Discussion

Re: CPU and Memory info

 
SOLVED
Go to solution
ran_li
Regular Advisor

CPU and Memory info

in HP-UX what command is used to check the hardware info other than ioscan and lsdev? I want to know the CPU info and memory info. Thanks.

Regards,

-frank
7 REPLIES 7
harry d brown jr
Honored Contributor
Solution

Re: CPU and Memory info

Do a man on:

xstm (can be found at /usr/sbin/xstm)
print_manifest (can be found at /opt/ignite/bin/print_manifest)

live free or die
harry d brown jr
Live Free or Die
Mel Burslan
Honored Contributor

Re: CPU and Memory info

As I am not much of a GUI person, instead of xstm, I'd prefer to use cstm. Usage of it will most probably need some help and hand holding at the initial stages.

Also, if you are interested in the CPU and memory information only, you can use SAM to view these. In SAM, from the main menu, select "Performance Monitors" then in that submenu, select "System Properties". You will see several tabs showing the information you seek.

Hope this helps
________________________________
UNIX because I majored in cryptology...
Slawomir Gora
Honored Contributor

Re: CPU and Memory info

Hi,
cpu info:
echo itick_per_usec/D | adb -k /stand/vmunix /dev/mem | awk '{print $2}'

memory info:
echo phys_mem_pages/D | adb -k /stand/vmunix /dev/mem | awk '{print 4096*$2}'
Pete Randall
Outstanding Contributor

Re: CPU and Memory info

Memory info:

# Note: For Itanium, use the following:
# echo "${MYSYMBOL}/jd" | adb $HPUX /dev/kmem
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


CPU info:

HPUX=/stand/vmunix

MHZ=$(echo itick_per_tick/D \
| adb -k $HPUX /dev/kmem \
| tail -1 \
| awk '{print $2/10000}')
echo $MHZ

Also check the attached doc.


Pete

Pete
ran_li
Regular Advisor

Re: CPU and Memory info

Thanks all for the input, that helped a lot.

Regards,

-frank
Sanjay_6
Honored Contributor

Re: CPU and Memory info

Hi,

you can also try,

echo 'selclass qualifier cpu;info;wait;infolog' |cstm >/tmp/cpu_info.txt
more /tmp/cpu_info.txt
echo 'selclass qualifier memory;info;wait;infolog' |cstm >/tmp/mem_info.txt
more /tmp/mem_info.txt

Hope this helps.

Regds
Geoff Wild
Honored Contributor

Re: CPU and Memory info

Use 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.