Operating System - HP-UX
1826331 Members
3938 Online
109692 Solutions
New Discussion

How command produced for this output?

 
SOLVED
Go to solution
Jenny C
Advisor

How command produced for this output?

Hi, I've seen a documentation which showed the following output. It's better than 'model' and shorter than 'print_manifest'. Anybody knows how this info is obtained?

Processors:
Active: 2
Total: 2
CPU Version: PA 8600 CPU Module 3.1
Clock Frequency: 550 MHz
Machine Identification: 584265658
Hardware Model: 9000/800/A500-5X
Kernel Width Support: 64
Physical Memory: 1024 MB
OS: B.11.11 U
6 REPLIES 6
Joseph Loo
Honored Contributor

Re: How command produced for this output?

hi,

this is taken from SAM.

# sam
Performance Monitors -> System Properties -> there you have it.

regards.
what you do not see does not mean you should not believe
SANTOSH S. MHASKAR
Trusted Contributor

Re: How command produced for this output?

This is output of SAM --> Performance Monitors --> System Properties --> Processor


-Santosh
Michael Tully
Honored Contributor

Re: How command produced for this output?

To find the exact command, presumably from SAM, use the SAM viewer log. It will tell you exactly what SAM used.
Anyone for a Mutiny ?
Jenny C
Advisor

Re: How command produced for this output?

Thanks for the pointers. I thought it was an output of a command line, which could be redirected to a text file. If it's from SAM, there doesn't seem to be a way to save the output easily....
Pete Randall
Outstanding Contributor
Solution

Re: How command produced for this output?

Jenny,

Much of this information can be obtained from the command line. I use a series of little scripts like this:

echo `hostname` "is a " `model |sed 's/9000\/800\///' |sed 's/9000\/899\///'` "w
ith" `ioscan -k |grep -n processor |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


The output looks like this:

yukon is a N4000-44 with 6 440 Mhz processors and 8192 MB KB of memory


The other information can also be gleaned from the command line and added with just a little effort!


Pete



Pete
Amiel Tutolo
Frequent Advisor

Re: How command produced for this output?

There is a sysinfo program that can give you this ifo. It will also give you some other info. I have attached the shar file here.
Live, love and laugh