Operating System - HP-UX
1833783 Members
1910 Online
110063 Solutions
New Discussion

To Determine System Configuration-(No of CPUs, their speed, RAM, No of Hard disks, their capacity).

 
GnanaShekar
Regular Advisor

To Determine System Configuration-(No of CPUs, their speed, RAM, No of Hard disks, their capacity).

Hi,

We have around 15 HP-Unix servers in our lab. I am new to HP-Unix. I have been assigned a task to determine hardware configuration of these servers. Please suggest some commands that would give the following information:
1. Type and No of CPU's, also their speed,
2. Amount of RAM.
3. No of Hard disk and their size.

Thanks & Regards,
-GnanaShekar-
7 REPLIES 7
Arunvijai_4
Honored Contributor

Re: To Determine System Configuration-(No of CPUs, their speed, RAM, No of Hard disks, their capacity).

Hi Sekar,

One stop solution, If you have ignite installed, run

# /opt/ignite/bin/print_manifest

It will give you all information you want.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Peter Godron
Honored Contributor

Re: To Determine System Configuration-(No of CPUs, their speed, RAM, No of Hard disks, their capacity).

Hi,
for a graphics layout of your machine:
/usr/sbin/xstm

and to get more detailed info for each device, use the System Admin Tool sam.

Commands:
Number of processors:
echo runningprocs/D | adb -k /stand/vmunix /dev/mem
Speed of CPUs:
echo itick_per_usec/D | adb -k /stand/vmunix /dev/mem
Memory:
dmesg | grep -i physical
Disks:
ioscan -fnC disk
Geoff Wild
Honored Contributor

Re: To Determine System Configuration-(No of CPUs, their speed, RAM, No of Hard disks, their capacity).

Install cfg2html

http://groups.yahoo.com/group/cfg2html/



A script:

# cat /usr/local/bin/hpmem
#!/bin/ksh
#
# Taken from the HP/UniGraphics FAQ
# You must be ROOT to execute this since it uses adb to
# examine the running kernel
#
GetKernelSymbol()
{
echo "$1/D" | \
adb $hpux /dev/kmem | \
tr "\012" " " | \
read junk junk2 kval
}
hpux=/hp-ux
rev=$(uname -r | cut -d. -f2)
if ((rev > 9)); then hpux=/stand/vmunix ;fi
/bin/uname -a
GetKernelSymbol "processor_count"
print CPU Count: $kval
GetKernelSymbol "itick_per_tick"
let speed=kval/10000
print CPU Speed: $speed MHz
if ((rev > 10)); then
print CPU HW Support: `getconf HW_CPU_SUPP_BITS`-bit
print Kernel Support: `getconf KERNEL_BITS`-bit
GetKernelSymbol "memory_installed_in_machine"
else
GetKernelSymbol "physmem"
fi
ver=$(uname -r | cut -d. -f3)
# if 11iv2 or higher - get memory this way
if ((ver > 22)); then
kernel=$(/usr/sbin/kcpath -x)
hexval=$(echo "phys_mem_pages/A" | adb $kernel /dev/kmem|tail +2|awk '{print $2}')
REAL_MEM=$(echo ${hexval}=D|adb)
mb=$(expr ${REAL_MEM} / 256)
else
let mb=kval*4/1024 # convert pages to MB
fi
print RAM Size: $mb MB
GetKernelSymbol "bufpages"
let mb=kval*4/1024 # convert pages to MB
print bufpages: $mb MB
GetKernelSymbol "maxuprc"
print maxuprc: $kval
GetKernelSymbol "maxvgs"
print maxvgs: $kval
GetKernelSymbol "maxfiles"
print maxfiles: $kval
GetKernelSymbol "max_thread_proc"
print max_thread_proc: $kval
GetKernelSymbol "nfile"
print nfile: $kval
GetKernelSymbol "nproc"
print nproc: $kval
GetKernelSymbol "ninode"
print ninode: $kval
GetKernelSymbol "vfd_cw"
print shmmax: $kval
GetKernelSymbol "shmmni"
print shmmni: $kval
GetKernelSymbol "dbc_max_pct"
print dbc_max_pct: $kval


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.
DCE
Honored Contributor

Re: To Determine System Configuration-(No of CPUs, their speed, RAM, No of Hard disks, their capacity).


You can download the sysinfo app from this site it will give you the info you want and more

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

Dave
Yogeeraj_1
Honored Contributor

Re: To Determine System Configuration-(No of CPUs, their speed, RAM, No of Hard disks, their capacity).

hi,

you can also query some of these information using SAM -> disk and file systems

or SAM -> Performance monitors -> System Properties

hope this helps too!


kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Carlos Roberto Schimidt
Regular Advisor

Re: To Determine System Configuration-(No of CPUs, their speed, RAM, No of Hard disks, their capacity).

Hi,

You can use:

# /opt/ignite/bin/print_manifest

Or using getconf is possible get some information. See man page from getconf

# man getconf

Schimidt
Senthil Kumar .A_1
Honored Contributor

Re: To Determine System Configuration-(No of CPUs, their speed, RAM, No of Hard disks, their capacity).

Hi,

Visit the following link, You have 2 good tools which is handy for future also..

http://h20331.www2.hp.com/Hpsub/cache/286022-0-0-225-121.html

1)nickel : when the script runs, it creates a html outputs. Its a friendly and tacky way of seeing the info about the system in GUI.Very extensive.

2)sysinfo : Prints cool info, which you wanted on the terminal.

Regards,
Senthil Kumar .A
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)