Operating System - HP-UX
1821984 Members
3264 Online
109638 Solutions
New Discussion юеВ

command to find the hardware configuration in hp-ux?

 
sokolova
Advisor

command to find the hardware configuration in hp-ux?

how to find the system hardware configuration like cpu, disk,memory in hp-ux from command?
6 REPLIES 6
Ivan Krastev
Honored Contributor

Re: command to find the hardware configuration in hp-ux?

There are too many ways:
Use cfg2html - http://cfg2html.com/.
For IA servers machinfo.
Use print_manifest.


regards,
ivan
Jeeshan
Honored Contributor

Re: command to find the hardware configuration in hp-ux?

for memory

#echo "selclass qualifier memory;info;wait;infolog"|cstm


for CPU info

cstm>SelClass type "Processor" qualifier "CPU" hwpath ""
cstm>Information ; wait
-- Updating Map --
Updating Map...
cstm>InfoLog


for disk you can use ioscan -fnC disk or print_manifest.
a warrior never quits
Jeeshan
Honored Contributor

Re: command to find the hardware configuration in hp-ux?

for memory

#echo "selclass qualifier memory;info;wait;infolog"|cstm


for CPU info

cstm>SelClass type "Processor" qualifier "CPU" hwpath ""
cstm>Information ; wait
cstm>InfoLog


for disk you can use ioscan -fnC disk or print_manifest.
a warrior never quits
Pete Randall
Outstanding Contributor

Re: command to find the hardware configuration in hp-ux?

A common question. So common, in fact, that I saved all the ways I could think of in this document:

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/ ).

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}')

#Note: for 11.23 RISC, use
MHZ=$(echo itick_per_tick/D \ # echo "itick_per_usec/d" \
| adb -k $HPUX /dev/kmem \ # | adb $HPUX /dev/kmem
| tail -1 \ #For Itanium, use machinfo
| 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


Support Tools Manager (STM) CPU info:

echo "selclass qualifier cpu;info;wait;infolog" | cstm




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


Support Tools Manager (STM) RAM info:

echo "selclass qualifier memory;info;wait;infolog" | cstm




You can obtain CPU speed and RAM without CSTM or root access as described by Tom Ferony (under Nancy Rippey's log
in) here:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=851889


Pete

Pete
Torsten.
Acclaimed Contributor

Re: command to find the hardware configuration in hp-ux?

There are several ways to do this - (c/m/x-stm, sam, ioscan, smh (system management homepage) and others ... It depends on the details you are looking for. Even
/opt/ignite/bin/print_manifest is useful.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Sajjad Sahir
Honored Contributor

Re: command to find the hardware configuration in hp-ux?

Dear Sokova

just type Print_manifest command it will give a lot of information regarding hardware

thanks and regards

Sajjad