Operating System - HP-UX
1824939 Members
4072 Online
109678 Solutions
New Discussion юеВ

HP-UX Server hardware Configuration

 
ln_unix
Frequent Advisor

HP-UX Server hardware Configuration

Can anybody tell me that how can i see the hardware configuration of HP-UX server (by using command) in TUI mode --(not by using SAM)?
8 REPLIES 8
Torsten.
Acclaimed Contributor

Re: HP-UX Server hardware Configuration

Hi,

what details do ou need?

ioscan -fn
and
echo "sel dev all;info;wait;il"|cstm

will give you a lot of information.

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!   
Bill Hassell
Honored Contributor

Re: HP-UX Server hardware Configuration

You can also use the command: print_manifest


Bill Hassell, sysadmin
DCE
Honored Contributor

Re: HP-UX Server hardware Configuration



one way is to use cstm

enter the command cstm, and that will get you a cstm prompt. enter the command map to see a list of all the devices enter sel dev # to display specifics of a device

another way - download and run sysinfo from the porting center
http://gatekeep.cs.utah.edu/hppd/cgi-bin/search?package=on&description=on&term=sysinfo
Ronald Schwartz_1
Frequent Advisor

Re: HP-UX Server hardware Configuration

Also take a look at cfg2html, www.cfg2html.com, it will help show all the information about your server. It will run the cstm and ioscan and several other commands for you and put them into both an html and text file.
Pete Randall
Outstanding Contributor

Re: HP-UX Server hardware Configuration

I finally collected all this in a file because the question gets asked so frequently:

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

#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




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
Sumit Ghosal
Frequent Advisor

Re: HP-UX Server hardware Configuration

If its a IA system, try "machinfo" command

thanks
Yogeeraj_1
Honored Contributor

Re: HP-UX Server hardware Configuration

hi,

If you more detailed information, download the following application (sysinfo) and run it -
http://gatekeep.cs.utah.edu/hppd/hpux/Sysadmin/sysinfo-3.3.1/

You can also try:
. Nickel Script:
http://unixguide.net/scripts/nickel108

. cfg2html
http://come.to/cfg2html

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Babu A
Frequent Advisor

Re: HP-UX Server hardware Configuration

You may use even "sysinfo -a"to view the hardware configuration.

Hope this will help you.

Regards,
Babu