Operating System - HP-UX
1834478 Members
3416 Online
110067 Solutions
New Discussion

Getting system information from a HP-UX box

 
Nisar Ahmad
Regular Advisor

Getting system information from a HP-UX box

Hi There

I need to know the best and accurate way of getting following information from the server:

1) Application running
2) Number and speed of CPU's
3) Ammount of physical memory
4) Size and number of internal disks
5) External disk capacity and it belongs to (like XP256 VA7400 or Autoraid etc)

Thanks a lot in advance for the help

Nisar
11 REPLIES 11
Michael Tully
Honored Contributor

Re: Getting system information from a HP-UX box

If you use ignite, the print_manifest will get most of this information for you. If not there are other tools like nickel.

html collect system info
http://www.grc.hp.com/docs/nickel/
Anyone for a Mutiny ?
Michael Tully
Honored Contributor

Re: Getting system information from a HP-UX box

and cfg2html
http://members.tripod.com/rose_swe/cfg/cfg.html
Anyone for a Mutiny ?
generic_1
Respected Contributor

Re: Getting system information from a HP-UX box

Hello,
Applicatoins running: ps -ef
Number of CPUS and speed: ioscan and stm
ammount of memory: dmesg
Size and number of internel disk: ioscan and diskinfo
Externel disk capacity and storages type:
ioscan and diskinfo. Most disk systems do not identify the storage type IE jamaica, hp disk system 2100. You could make some assumptions based on your fiber adapters and disk types in your scripts.
Sanjay_6
Honored Contributor

Re: Getting system information from a HP-UX box

Hi,

For 2/3/4/5 you can try cstm if you have STM installed on the system.

echo 'selclass qualifier all;info;wait;infolog' |cstm >/tmp/system_info.log

There is no unique way to identify all the applications running on the system.

Hope this helps.

Regds
Shaikh Imran
Honored Contributor

Re: Getting system information from a HP-UX box

Hi,
If you have STM installed the most of the informations you will get from there except Applications running use the combination of
swlist and ps -aef
If ignite is installed use
print_manifest

Regards
I'll sleep when i am dead.
Sanjiv Sharma_1
Honored Contributor

Re: Getting system information from a HP-UX box

Hi Nisar,

Application running --> ps -ef, swlist
Number and speed of CPU's --> stm
Ammount of physical memory --> dmesg
Size and number of internal disks --> ioscan -fnCdisk and diskinfo
External disk capacity and it belongs to (like XP256 VA7400 or Autoraid etc)--> xpinfo for XP256 disks and stm.

Incase stm is not available you can install it online.

Everything is possible
Nisar Ahmad
Regular Advisor

Re: Getting system information from a HP-UX box

Hi Guys

Thanks for the quick responses.

How I try Pint_manifesto in Ignite ?

Nisar
Michael Tully
Honored Contributor

Re: Getting system information from a HP-UX box

Once you have run a make_recovery_tape session to tape successfully, the print_manifest command will also work.

Create the tape assuming you have /dev/rmt/0m as your device also make sure you use no-rewind

/opt/ignite/bin/make_tape_recovery -x inc_entire=vg00 -I -v -a /dev/rmt/0mn

/opt/ignite/bin/print_manifest
Anyone for a Mutiny ?
Geoff Wild
Honored Contributor

Re: Getting system information from a HP-UX box

Cfg2html would get most for you:

http://come.to/cfg2html

Also, sysinfo3.01 from HP has a lot to offer - I attached it.

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.
Nisar Ahmad
Regular Advisor

Re: Getting system information from a HP-UX box

Hi There

Thanks for all of you for the help.

I have only not sure yet that in the "print_manifest" following information:


Storage devices HW Path Interface
SEAGATE ST32171W 2033 Mb 10/0.3.0 GSC built-in Fast/Wide SCSI Interface

HP C5447A 21241 Mb 10/8.6.5 GSC add-on Fast/Wide SCSI Interface


If second disk is external then where in connect to. I mean XP256 or VA7400 or Autoraid etc ?

Nisar
Patrick Wallek
Honored Contributor

Re: Getting system information from a HP-UX box

Print_manifest has NO WAY to know what type of array a LUN is from. All HP-UX sees are LUNs that are presented to it from an array.

There are utilities that can be installed on your system that are specific to each type of array, but if you don't know what type of array you have then you've got problems.

Start asking co-workers or go exploring in the computer room if you have access.