1826451 Members
3883 Online
109692 Solutions
New Discussion

Re: Get Server Info

 
Jürgen Freyh
Occasional Contributor

Get Server Info

Hi all,

I'm looking for APIs, system calls or methods to get the following information on HP-UX 11.00 and newer.

1. Name of the server (such as Integrity rx2620)

2. Type of the installed processors

3. How many disks are attached to the system and per disk I would like to know: size, vendor name, product name, ...

thanks in advance
juergen
5 REPLIES 5
James R. Ferguson
Acclaimed Contributor

Re: Get Server Info

Hi:

# model
# machinfo #...on Itanium

# echo "selclass qualifier cpu;info;wait;infolog"|cstm > /tmp/cpuinfo

# ioscan -kfnC disk
# diskinfo -v /dev/rdsk/cXtYdZ

Regards!

...JRF...
MarkSyder
Honored Contributor

Re: Get Server Info

Go into SAM. The hostname will appear at the top of the SAM window.

When you are there, go into Performance Monitors -> system properties, where you will find the processor details.

Go back to the main SAM window and select Disks and Filesystems -> Disk Devices where you will find the information you want concerning your discs.

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
DCE
Honored Contributor

Re: Get Server Info



The sysinfo program gathers all of the info - and formats it into a nice report for you


http://gatekeep.cs.utah.edu/hppd/cgi-bin/search?package=on&description=on&term=sysinfo
Ivan Krastev
Honored Contributor

Re: Get Server Info

Another way is to examine cfg2html script ( http://come.to/cfg2html) and get what you need from system information and how to collect it.


regards,
ivan
Jürgen Freyh
Occasional Contributor

Re: Get Server Info

I looked for C/C++ functions to get the desired info. I get this info by 'trussing' the mentioned commands.

Thanks