Operating System - HP-UX
1833187 Members
3128 Online
110051 Solutions
New Discussion

How to gather system information?

 
Kenneth Leung_2
Frequent Advisor

How to gather system information?

I would like to ask how I can gather the following information from my server running HP-UX 11.0

1) Serial No.
2) System-Handle
3) Physical memory (no glance-plus installed)
4) Internal disk
5) external disk

Please help. Thanks a lot.
12 REPLIES 12
Pete Randall
Outstanding Contributor

Re: How to gather system information?

Ignite's print_manifest command is a good place to start. It gives you most of what you're looking for.

Additionally, you can use these little scripts -


Memory:

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



CPU Speed:

HPUX=/stand/vmunix

MHZ=$(echo itick_per_tick/D \
| adb -k $HPUX /dev/kmem \
| tail -1 \
| awk '{print $2/10000}')
echo $MHZ


Internal and external disk you kind of have to figure out yourself using ioscan and knowledge of you paths.


Pete

Pete
Joseph Loo
Honored Contributor

Re: How to gather system information?

hi,

do you have print_manifest? it comes with Ignite-UX.

if not, sam -> Performance Monitor -> System Properties or mstm command.

however, do not think you will know (2), this you got to go to the vendor or HP. As for (4) and (5), it gets a bit complicated.

regards.
(p.s. some points will help a long way)
what you do not see does not mean you should not believe
Sanjay Kumar Suri
Honored Contributor

Re: How to gather system information?

As Pete suggested use:
/opt/ignite/bin/print_manifest

to get most of the info.

sks
A rigid mind is very sure, but often wrong. A flexible mind is generally unsure, but often right.
Naveej.K.A
Honored Contributor

Re: How to gather system information?

hi,
The best one is however using the STM utility.

With best wishes
Naveej
practice makes a man perfect!!!
Victor BERRIDGE
Honored Contributor

Re: How to gather system information?

Hi,
HP has also another tool for gathering configuration:
nickel,
Its a shar archive that installes itself in /opt/contrib:
# sh nickel.shar
mkdir - /opt/contrib
mkdir - /opt/contrib/bin
x - /opt/contrib/bin/nickel [compressed]
mkdir - /opt/contrib/man
mkdir - /opt/contrib/man/man1m
x - /opt/contrib/man/man1m/nickel.1m [compressed]


Look at the man pages

Good luck

All the best
Victor
Shaikh Imran
Honored Contributor

Re: How to gather system information?

Hi,
For all the above information please use xstm.Please select the devices and right click and get the information.
Also if ignite is installed use print_manifest command.

++++++++++++++++++++++++++++++++++++++++++++
Other than xstm you can find out the
3) Physical memory either by top or dmesg.
4) Internal and external disks by
#ioscan -fnC disk
But you should be aware of the paths of internal and external scsi.
++++++++++++++++++++++++++++++++++++++++++++
Regards,
I'll sleep when i am dead.
Pete Randall
Outstanding Contributor

Re: How to gather system information?

Ken,

I just checked to be sure and print_manifest will not give you the system serial number. You can use stm on recent model servers (some older ones will not report the serial number at all):

# echo "map ; sel dev 1 ; il" | cstm | grep "System Serial"


Pete

Pete
Fabio Ettore
Honored Contributor

Re: How to gather system information?

Hi,

1) Serial No. is possible to obtain only for L and N class.
Launch
# mstm
and after Ok select system ---> from menu 'tools' ---> information ---> run

After few seconds you will obtain system serial number.

2) it is not possible to get it from system, it is an information on contract by HP. Anyway HP from serial number can get system handle.

3) by mstm yet, by select memory component and again tools ---> information ---> run
or

# REAL_MEM=`echo 'phys_mem_pages/D '| adb -k /stand/vmunix /dev/kmem | tail -1 | awk '{ print $2/256}'`
# echo $REAL_MEM

4) and 5)
# ioscan -fnC disk

It obtains all disks, internal and external.
It is not possible to obtain a difference by ioscan, just remember scsi paths.

HTH.

Best regards,
Ettore
WISH? IMPROVEMENT!
Bill Hassell
Honored Contributor

Re: How to gather system information?

The serial number is *NOT* available electronically on most HP 9000 boxes. Onlt the very latest models have added this capability. The System-Handle can NEVER be available from HP-UX because it is defined by HP (or your HP supplier) as part of your support contract(s). Now if you have a recent computer such as the rp series, then STM (the support tools or diagnostics) can provide this. Just type the command:

echo "selclass qualifier cpu;info;wait;infolog" | /usr/sbin/cstm

The above is all on one line. If /usr/sbin/cstm is not found, you do not have the online diagnostics installed and that should be your top priority (get them installed from your Core/Install or Support Plus CD).

For your physical disks:

ioscan -kfC disk

However, it is more useful to see the mounted disks:

bdf

and for a much bigger view of the entire system, use print_manifest. If you do not have /opt/ignite/bin/print_manifest installed (or you have a version older than 6 months), download the latest version (free) from http://www.software.hp.com/products/IUX/download.html


Bill Hassell, sysadmin
Geoff Wild
Honored Contributor

Re: How to gather system information?

Have a look at sysinfo (attached).

also, cfg2html:

Cfg2html is a UNIX shell script that creates a HTML (and ASCII) system documentation for HP-UX 10+11, AIX, SCO-UX, SunOS and Linux systems. Plugins for SAP, Oracle, Informix, MC/SG, FibreChannel, TIP/ix, Mass Storage like XP48/256/512, Network Node Manager and OmniBack etc. are included.

http://come.to/cfg2html


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Bryan D. Quinn
Respected Contributor

Re: How to gather system information?

Hello,

I use the cfg2html script, it provides much more information than what you were looking for. I like it because I have copies for all of my servers burned onto a CD in each of our Disaster Recovery boxes. Although the serial number is not included in this information. Here is a link to where you can download the script:

http://come.to/cfg2html

Hope this helps!
-Bryan
Kenneth Leung_2
Frequent Advisor

Re: How to gather system information?

Hi all,

Thanks a lot!!!