1827293 Members
2896 Online
109717 Solutions
New Discussion

Hardware info

 
SOLVED
Go to solution
Andrey Tumanov
Frequent Advisor

Hardware info

Hello,

How can I get info regarding system hardware, such as Server Model, # of CPUs, model of CPUs, memory size, etc. I know I can get most of this info with print_manifest, but is there any way to do it without having Ignite installed?

Andrey
8 REPLIES 8
Robert-Jan Goossens_1
Honored Contributor
Solution

Re: Hardware info

Hi Andrew,

Check these faqs.

http://mirrors.develooper.com/hpux/faq.html

Regards,
Robert-Jan
MarkSyder
Honored Contributor

Re: Hardware info

SAM -> Performance Monitors -> System Properties.

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

Re: Hardware info

Andrey,
or there is this utility called 'SAM'.
Delrish
Trusted Contributor

Re: Hardware info

What is you HP-UX version?
In HP-UX 11iv2 you can use "machinfo" and in 11iv1 you can use getconf.
Andrey Tumanov
Frequent Advisor

Re: Hardware info

Thank you all for the info...
Andrey Tumanov
Frequent Advisor

Re: Hardware info

Thanks
Pete Randall
Outstanding Contributor

Re: Hardware 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
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 Tom Ferony (under Nancy Rippey's login) here:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=851889


Pete

Pete
Michael Steele_2
Honored Contributor

Re: Hardware info

# model (* for server model

'dmesg' and 'syslog.log' will give you HW, for example:

# dmesg | grep -v physcal (* amount of memory

and cstm / stm, for example:

# echo "selclass type cpu;info;wait;infolog" | /usr/sbin/cstm
(* for cpu

For partitions its easy:

# vparmgr

man page on dmesg:

http://linuxgazette.net/issue59/nazario.html
Support Fatherhood - Stop Family Law