System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

how to check the HPUX config

SOLVED
Go to solution
Harikrishnan L
Frequent Advisor

how to check the HPUX config

Dear All,

How to check the HP-UX config like serial number, processer name.

Can you give me the commnad for this.

Thanks
L.Harikrishnan
10 REPLIES
TTr
Honored Contributor

Re: how to check the HPUX config

There is a variety of commands. You did not specify which HP-UX version you have, some of the commands may not be available in all versions

uname -a
model
hostname
machinfo
Mark S Meadows
Valued Contributor

Re: how to check the HPUX config

Hi,

Try uname -a and /or machinfo to list the requested information, i.e. :

# uname -a
HP-UX gba70102 B.11.31 U ia64 3111414219 unlimited-user license

# machinfo |more
CPU info:
12 Intel(R) Itanium 2 9000 series processors (1.6 GHz, 24 MB)
533 MT/s bus, CPU version C2
24 logical processors (2 per socket)

Memory: 229134 MB (223.76 GB)

Firmware info:
Firmware revision: 9.48
FP SWA driver revision: 1.18
IPMI is supported on this system.
BMC firmware revision: 26.03

Platform info:
Model: "ia64 hp superdome server SD32B"
Machine ID number: b97469cb-4e44-11dc-81eb-555a55ee03fd
Machine serial number: DEH47285LX

OS info:
Nodename: gba70102
Release: HP-UX B.11.31
Version: U (unlimited-user license)
Machine: ia64
ID Number: 3111414219
vmunix _release_version:
@(#) $Revision: vmunix: B.11.31_LR FLAVOR=perf

Regards,

Mark
Administrating HP-UX systems for more years than I care to admit, but still enjoying it (most of the time!).
Mark S Meadows
Valued Contributor
Solution

Re: how to check the HPUX config

Hi,

Should point out that "machinfo" is for IA64 systems as detailed above.

For PA-RISC systems you can use command :

/opt/ignite/bin/print_manifest

Regards,

Mark
Administrating HP-UX systems for more years than I care to admit, but still enjoying it (most of the time!).
Harikrishnan L
Frequent Advisor

Re: how to check the HPUX config

#machinfo
is not working in my machine HP B 11.11

any other commad to check the porcesses type.

Thanks
L.Harikrishnan
Pete Randall
Outstanding Contributor

Re: how to check the HPUX config

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 login) here:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=851889


Pete

Pete
Roland Piette
Regular Advisor

Re: how to check the HPUX config

Hi,

Another way to get information is to use getconf command. This is available on PA-Risc server. Man page describes all options.

Regards,
Roland
Harikrishnan L
Frequent Advisor

Re: how to check the HPUX config

Tnanks Roland,

Can you give some syntax for this command

Thanks
L.Harikrishnan
Raj D.
Honored Contributor

Re: how to check the HPUX config

L.Harikrishnan,

>How to check the HP-UX config like serial number, processer name

As it is 11.11 :
1. Serial Number:
#( echo "selclass qualifier system;info;wait;infolog" | /usr/sbin/cstm ) | grep -i "System serial"


2. Processer detail:
echo "selclass qualifier cpu;info;wait;infolog" | /usr/sbin/cstm


- You can also see the serial number on the rear side of the server. And cpu details by knowing the server model. Model string can be found with #model command.


Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Suraj K Sankari
Honored Contributor

Re: how to check the HPUX config

Hi Hari,

Best option is run NICKEL script to get all information about your system.
download the same from this below location

ftp://ftp.hp.com/pub/catia/Utils/nickel.shar

Suraj
Roland Piette
Regular Advisor

Re: how to check the HPUX config

Hello Harikrishnan,

Here some example from my box :
$ getconf MACHINE_SERIAL
DEH43122C1

$ getconf MACHINE_IDENT
Z3e1033ee5a068889

$ getconf CLK_TCK
100
(This command gives the number of intervals per second)

$ getconf CPU_CHIP_TYPE
609

And so on ....

Look at the man page, you will see all options allowed for the command.

Regards,
Roland