Verify Hardware installed HP-UX11

Hi - Basic question from newbie

I need to find out how to verify hardware installed on HPUX server. Mid-range server - as in i need to prove to customer that a specific cpu is installed, so much memory is installed, etc.

PLEASE HELP.

TA

A combination of dmesg and sam (sys admin tool) should provide you with what you need.

You might like to try the following:

#!/usr/bin/ksh
. $HOME/.profile
/opt/ignite/bin/print_manifest > $RECOVERYDIR/`hostname`/manifest.txt
echo >> $RECOVERYDIR/`hostname`/manifest.txt
echo "Non Default Kernel Parameters" >> $RECOVERYDIR/`hostname`/manifest.txt
echo >> $RECOVERYDIR/`hostname`/manifest.txt
/usr/sbin/kctune -Sd >> $RECOVERYDIR/`hostname`/manifest.txt
mailx -s "Manifest for `hostname`" $Operations_reports <  $RECOVERYDIR/`hostname`/manifest.txt

Incidentals:
$Operations_reports - refers to an email distribution list.
$RECOVERYDIR - refers to a location on the file system.

Hope that helps some. :slight_smile:

Cheers,
Cameron

If you search the HP-UX forum you will find dozens of threads. Here is one:

List Hardware components in HP UX

ioscan -k -is the typical place to start, this provides list of all hardware
dmesg -is the easiest way to get physical memory

SAM is also a great way to get the overview.

Some typical programatic specifics are below.
PROC_SPEED=`echo itick_per_usec/D | adb -k /stand/vmunix /dev/kmem |awk -F: 'NR>1 {print $2}'`
NU_PROC=`echo "runningprocs/D" | adb -k /stand/vmunix /dev/kmem |awk -F: 'NR>1 {print $2}'`
MODEL=`model|awk -F/ '{print $3}'`
MEM=`echo "phys_mem_pages/D"| adb -k /stand/vmunix /dev/kmem |awk -F: 'NR>1 {print$2}'`

The trouble with dmesg is that if the box has been up for a while the boot messages may no longer be available via dmesg. Also HP has the pstat system calls to obtain info from the kernel. A non-root user can use them and they are safer than running adb on the kernel. For an example of a perl script see: Obtain Memory on HP UNIX.

Here's a script that will tell you the info:

:
# Name:
# cpumem
#
# Purpose:
# List the CPU & memory particulars of a HP-UX 11i v1 server.
#
#@(#)cpumem.sh PR

nodename=$(uname -n)
model=$(model)
ncpu=$(echo processor_count/D |adb /stand/vmunix /dev/kmem |tail -n 1 |awk '{print $2}')
mhz=$(echo itick_per_tick/D |adb /stand/vmunix /dev/kmem |tail -n 1 |awk '{print $2/10000 " MHz"}')
mb=$(echo phys_mem_pages/D | adb /stand/vmunix /dev/kmem |tail -n 1 |awk '{print $2/256 " MB"}')

echo "$nodename $model ${ncpu} $mhz $mb"

Have U tried machinfo

:smiley:

You guys are incredibly helpful.

I will try these out and let you know how it goes

Thanks again

Lester

machinfo is neat, thanks salaathi :b:

[mddev:/home/cameron]
$ machinfo
CPU info:
   Number of CPUs = 2
   Clock speed = 1000 MHz
   Bus speed   = 400 MT/s
   CPUID registers
      vendor information =       "GenuineIntel"
      processor serial number =  0x0000000000000000
      processor version info =   0x000000001f010504
         architecture revision:       0
         processor family:           31   Intel(R) Itanium 2 Family Processors
         processor model:             1   Intel(R) Itanium 2 processor
         processor revision:          5   Stepping B1
         largest CPUID reg:           4
      processor capabilities =   0x0000000000000001
                      implements long branch:  1
   Bus features
      implemented =  0xbdf0000060000000
      selected    =  0x0000000040000000
         Bus Lock Signal masked

Cache info:
   L1 Instruction: size =   16 KB, associativity = 4
   L1 Data:        size =   16 KB, associativity = 4
   L2 Unified:     size =  256 KB, associativity = 8
   L3 Unified:     size = 1536 KB, associativity = 6

Memory = 6124 MB (5.980469 GB)

Firmware info:
   Firmware revision = 04.13
   FP SWA driver revision: 1.18
   IPMI is supported on this system.
   ERROR: Unable to obtain manageability firmware revision info.

Platform info:
   model string =          "ia64 hp server rx1600"
   machine id number =     [-- id number removed --]
   machine serial number = SGH44292YN

OS info:
   sysname  = HP-UX
   nodename = mddev
   release  = B.11.23
   version  = U (unlimited-user license)
   machine  = ia64
   idnumber = 2548843540
   vmunix _release_version:
@(#) $Revision: vmunix:    B11.23_LR FLAVOR=perf Fri Aug 29 22:35:38 PDT 2003 $

[mddev:/home/cameron]
$

Yes I agree.

machinfo was fantastic.

I believe that machinfo only works for IPF. Can anyone with a PA-RISC system run machinfo? Note that it may be in /usr/contrib/bin.

This credit will goes to unix.com forum only(perderabo).
Today morning only I DIGG THIS FROM OUR SITE.

I've not got machinfo on a couple of 11i v1 systems I'm on.

i have machinfo only on ver 11.23

other servers with 11.00 do not have it.

Perhaps not as good as machinfo on 11.23, but # print_manifest will do it for 11.11 systems.

hi

tried the print_manifest cmd. was helpful, ta.