Operating System - HP-UX
1827286 Members
1776 Online
109717 Solutions
New Discussion

Displaying Hp 9000 system parameters

 
GNOM
Frequent Advisor

Displaying Hp 9000 system parameters

Hi !

Which hp-ux 11.11 command must I use to see the server configuration parameters such as CPU
setting, RAM capacity ...
Those settings are displayed at the system Setup, but I want to see them without rebooting system !

Thanks for your help !
5 REPLIES 5
Pete Randall
Outstanding Contributor

Re: Displaying Hp 9000 system parameters

If you have Ignite installed, you can use the print_manifest command. You can also use SAM to display system properties. You can also obtain this information from the command line with a series of little scripts like these:

CPU

HPUX=/stand/vmunix

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



Number of CPUs

ioscan -k |grep -n processor |wc -l




RAM

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



Pete

Pete
bhavin asokan
Honored Contributor

Re: Displaying Hp 9000 system parameters

hi

ftp the attached file in to your system through binary mode.

then
#sh hpmem1

it will display output like following.


HP-UX prod5 B.11.11 U 9000/813 2000747627 unlimited-user license
CPU Count: 1
CPU Speed: 160 MHz
CPU HW Support: 32-bit
Kernel Support: 32-bit
RAM Size: 512 MB
bufpages: 158 MB
maxuprc: 75
maxvgs: 10
maxfiles: 512
max_thread_proc: 64
nfile: 4779
nflock: 200
nproc: 2420
ninode: 2888
shmmax: 1073741824
shmmni: 200
dbc_max_pct: 50

you can use model command to see the system model.

regds,
Franky_1
Respected Contributor

Re: Displaying Hp 9000 system parameters

Hi,

you can use the "print_manifest" from Ignite (/opt/ignite/bin/print_manifest) or SAM (system properties)

Regards

Franky
Don't worry be happy
Geoff Wild
Honored Contributor

Re: Displaying Hp 9000 system parameters

And for something more elegant, try cfg2html:

http://come.to/cfg2html

Also, attached is sysinfo 3.01.


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

Re: Displaying Hp 9000 system parameters

Are you having machinfo? But it will from 11.22 < versions itself there.
/usr/contrib/bin/machinfo

Else use sysinfo script over,
http://www.unixguide.net/scripts/hpsysinfo146

copy and paste in /usr/bin/sysinfo
chmod 755 /usr/bin/sysinfo

Execute as sysinfo -h
It will give options.
-g : general stats (default)
-d : disk info
-n : network info (IP, MAC)
-p : patches installed
-a : all of the above
-q : quiet mode (no progress status; use if redirecting output to a file)
-v : sysinfo version
-? : describe options

It will give disk, cpu informations to you



To get RAM / Physical memory details then do as,

dmesg | grep -iE "Phy|memory"

Easy to suggest when don't know about the problem!