1835961 Members
3181 Online
110088 Solutions
New Discussion

memory ,cpu

 
SOLVED
Go to solution
navin
Super Advisor

memory ,cpu

Hi,
it's long time since i used these commands.
Please help me how to find out total disk space,cpus,memory in hp system
thanks
Learning ...
6 REPLIES 6
Geoff Wild
Honored Contributor

Re: memory ,cpu

Use this script (as root) for memory and cpu's

# hpmem
HP-UX svr003 B.11.11 U 9000/800 2504392627 unlimited-user license
CPU Count: 6
CPU Speed: 750 MHz
CPU HW Support: 64-bit
Kernel Support: 64-bit
RAM Size: 10080 MB
bufpages: 806 MB
maxuprc: 800
maxvgs: 128
maxfiles: 2048
max_thread_proc: 256
nfile: 189100
nflock: 1200
nproc: 2560
ninode: 16384
shmmax: 1073741824
shmmni: 256
dbc_max_pct: 8

bdf for disk space...

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.
Bill Hassell
Honored Contributor

Re: memory ,cpu

Total disk space is one of those: what do you mean by total disk space? Are you interested in the physical size of each disk (whether the disk is used or not)? Or the space used and available in filesystems? Or the space available for swap? Or which disks are associated with each volume group? Here are the commands:

disks and their physical size:
diskinfo /dev/rdsk/each_disk_device

currently mounted filesystems:
bdf

swap space:
swapinfo -tm

vgdisplay -v


Bill Hassell, sysadmin
Petr Simik_1
Valued Contributor

Re: memory ,cpu

Nice script by Geoff


CPU speed
#echo itick_per_usec/D |adb -k /stand/vmunix /dev/mem
number od processors
#echo "runningprocs/D" | adb -k /stand/vmunix /dev/mem
Other way - Memory can be find after boot in
dmesg |grep Physical

disk size
#diskinfo /dev/rdsk

or create script like:
for i in `ioscan -kfnC disk |grep rdsk |awk '{ print $2 }'`
do
diskinfo $i
done

Geoff Wild
Honored Contributor
Solution

Re: memory ,cpu

Here's 2 more for dick space.

bdfmegs and vgttl(which uses bdfmegs):

# vgttl
VG Size(MB) In use Available
vg00 15612 8281 7060
vg01 12288 4 11901
vg50 1345968 1283879 61604
vg51 2048 1028 956
vg52 241152 161965 77058
vg55 6144 2980 2973
vg56 34512 4 34239
vg57 25880 2333 23047
---- -------------- -------------- --------------
Totl 1683604 1460474 218838

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.
navin
Super Advisor

Re: memory ,cpu

Hi
the scripts were very useful to find info.
But regarding disks i'm trying to find out how many disks in a system with size info.
I have used sam to find this out .In which
"disks and filesystems" returned some info.
Is that right info regarding disks.
Please help.
I like to see total no of disks in a system with size info.Thanks really for all your help.
Learning ...
Geoff Wild
Honored Contributor

Re: memory ,cpu

how about:

for DISK in `ioscan -funC disk |grep rdsk|awk '{print $2}'`
do
diskinfo $DISK |grep size
don

or something like that...

tailor to your needs...

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.