Operating System - HP-UX
1834215 Members
2062 Online
110066 Solutions
New Discussion

Disk space, Memory, Processor

 
Kevin T. Nguyen
Occasional Contributor

Disk space, Memory, Processor

Hi I am new with HP-UX. Would someone
please tell me what commands should I
use in the following questions:

What commands will show the disk space
available, how much taken, how much available on HP-UX 11.

What commands will show the total
memory on HP-UX 11, how much available,
what the total memory on the system

what commands will show the many
processors are there on your system.

Thank you.
Will find one
7 REPLIES 7
someone_4
Honored Contributor

Re: Disk space, Memory, Processor

Hi ..
Here you go ..

##Number of processors

sar -Mu 1 1|awk 'END {print NR-5}'


ioscan -kfnC processor


###To obtain the processor speed (MHz):

echo itick_per_usec/D|adb -k stand/vmunix /dev/kmem|awk 'NR==2 {print}'

or

echo itick_per_usec/D | /usr/bin/adb -k /stand/vmunix /dev/kmem



## script get total of memory

#!/bin/ksh
if [ `uname -r` = "B.11.00" ]
then
echo "phys_mem_pages/D" | adb /stand/vmunix /dev/kmem|grep phys|tail -1|awk '{print $2/256 " MB"}'
else
echo "physmem/D" | adb /stand/vmunix /dev/kmem|grep phys|tail -1|awk '{print "Memory size = " $2 / 256 " Megabytes"}'
fi


echo 'selclass qualifier memory;info;wait;infolog' |cstm >/tmp/meminfo.txt
Sajid_1
Honored Contributor

Re: Disk space, Memory, Processor

1) command for disk space:
# bdf
# df
# sam - disk and file systems
# vgdisplay -v (VG info)
# lvdisplay -v (LV info)
# diskinfo (disk info)
# ioscan -fnC disk (disk h/w details)
2) memory:
# stm
# dmesg
# sam-performance monitor-system properties
3) processor:
# top
# stm
# sam - performance monitor - system properties

Another good command is for all information:
# print_manifest
learn unix ..
Mark Greene_1
Honored Contributor

Re: Disk space, Memory, Processor

>>What commands will show the disk space
available, how much taken, how much available on HP-UX 11. <<

bdf will give you a table-like format, df -k will give you a different layout of the same information.

HTH
mark
the future will be a lot like now, only later
harry d brown jr
Honored Contributor

Re: Disk space, Memory, Processor

Additionally to the others:

/opt/ignite/bin/print_manifest


live free or die
harry
Live Free or Die
MANOJ SRIVASTAVA
Honored Contributor

Re: Disk space, Memory, Processor

Hi


1.try print_manifest
2.sam--->performance mointors-->system properties for cpu/ram/network

3. bdf to know the disk space.


Manoj Srivastava

Sanjay_6
Honored Contributor

Re: Disk space, Memory, Processor

Hi Kevin,

Try this link for all the good sysadmin scripts and suggestions.

http://forums.itrc.hp.com/cm/QuestionAnswer/0,,0x026250011d20d6118ff40090279cd0f9,00.html

Hope this helps.

Regds
Sandip Ghosh
Honored Contributor

Re: Disk space, Memory, Processor

There is a very good programme for newbie.

Download and Install cfg2html from www.cfg2html.com . You will get everything in HTML format.

Sandip
Good Luck!!!