Operating System - HP-UX
1834660 Members
2107 Online
110069 Solutions
New Discussion

Re: HPUX 11.11 way to gather info on hardware

 
SOLVED
Go to solution
Matt Shaffer_1
Regular Advisor

HPUX 11.11 way to gather info on hardware

Is there a command that will show you things like # and speed of processors, # and size of memory dimms, etc? I'm trying to use mstm and I get some of this data but no specifics - at least I can't seem to figure it out. Thanks
7 REPLIES 7
Pete Randall
Outstanding Contributor
Solution

Re: HPUX 11.11 way to gather info on hardware

Matt,

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

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
Arunvijai_4
Honored Contributor

Re: HPUX 11.11 way to gather info on hardware

Hello,

You can /opt/ignite/bin/print_manifest

or you can use sam to find this out.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
MarkSyder
Honored Contributor

Re: HPUX 11.11 way to gather info on hardware

Speed of processor you can get through SAM.

SAM -> performance monitors -> system properties

I can see all the memory information you ask about in STM: are you using the GUI version? If so, highlight memory, click on tools, and select information.

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
HGN
Honored Contributor

Re: HPUX 11.11 way to gather info on hardware

Hi

SAM would give you most of the details you are looking for

SAM > Performance Monitors > System Properties

This will give details about Processor,Memory,Operating System,Network

Rgds

HGN
Geoff Wild
Honored Contributor

Re: HPUX 11.11 way to gather info on hardware

Quite a few threads on this - latest is here:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=997305

I posted sysinfo 403 there.

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.
Bharat Katkar
Honored Contributor

Re: HPUX 11.11 way to gather info on hardware

Hi,

CSTM would also be helpful.
Find attached quick reference guide for CSTM.

Regards,
You need to know a lot to actually know how little you know
Matt Shaffer_1
Regular Advisor

Re: HPUX 11.11 way to gather info on hardware

Thanks - using sam in conjuction with mstm helped. the tips on how to use xstm helped me navigate through mstm