1834345 Members
2051 Online
110066 Solutions
New Discussion

CPU info

 
SOLVED
Go to solution
Olga_1
Regular Advisor

CPU info

How to get text version of all the information that can be viewed from SAM -> Performance Monitors -> System Properties?

Thank you.
4 REPLIES 4
Rick Garland
Honored Contributor
Solution

Re: CPU info

For PA-RISC systems

For CPU
echo "selclass qualifier cpu;info;wait;infolog" | /usr/sbin/cstm

Fopr memory
echo "selclass type memory;info;wait;infolog" | cstm

For disksecho "selclass type disk;info;wait;infolog" | cstm

Other options are available as well.



If running a ia64 system, use /usr/contrib/bin/machinfo

Mel Burslan
Honored Contributor

Re: CPU info

not exactly sure what exactly you are looking for but cstm is the tool to use for that

just run it and at the prompt

cstm> info
cstm> il

as two commands. You will see all the necessary and unnecessary information on your screen, which you can capture. You need to process the information for nicely formatted output like same gives, as this tool provides you the almost raw hardware information.

HTH
________________________________
UNIX because I majored in cryptology...
Pete Randall
Outstanding Contributor

Re: CPU info

If you have Ignite installed, you can use the print_manifest command.

You can also use SAM to display system properties (Sam -> Performance
Monitors -> System Properties).

There are also utilities like "cfg2html" ( http://come.to/cfg2html ),
"nickel" ( ftp://ftp.hp.com/pub/catia/Utils/nickel.shar ) and "sysinfo"
( http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/sysinfo-3.3.1/ ).

Finally, you can also obtain this information from the command line with a
series of little scripts like these:

CPU

HPUX=/stand/vmunix

MODEL=$(grep -i $(model | tr "/" " " \
| awk '{print $NF}') \
/usr/sam/lib/mo/sched.models \
| awk '{print $NF}')

MHZ=$(echo itick_per_tick/D \
| adb -k $HPUX /dev/kmem \
| tail -1 \
| awk '{print $2/10000}')
echo `hostname` has `ioscan -k |grep -n processor \
|wc -l` $MODEL $MHZ "Mhz processor(s)"


Number of CPUs

ioscan -k |grep -n processor |wc -l




RAM

HPUX=/stand/vmunix
MAJORREV=$(uname -r | cut -f2 -d .)
if [ $MAJORREV -ge "11.0" ]
then
MYSYMBOL="phys_mem_pages"
else
MYSYMBOL="physmem"
fi
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



And, even more finally, you can obtain CPU speed and RAM without CSTM or root ac
cess as described by Nancy Rippey here:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=851889


Pete

Pete
Raj D.
Honored Contributor

Re: CPU info

Hi Olga ,

You can also use the hp collection.sh script , a very good script to collect data and also use to diagnose and trouble shooting problems and also checks crashdumps.

Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "