Operating System - HP-UX
1836648 Members
1971 Online
110102 Solutions
New Discussion

Disk space and Total Memory

 
Mike_21
Frequent Advisor

Disk space and Total Memory

Does anyone have a quick script that will tell me the total memory and total disk space?

I do not have root access..... lol
6 REPLIES 6
Uday_S_Ankolekar
Honored Contributor

Re: Disk space and Total Memory

Hi,

Try bdf for diskspace

grep -i physical /var/adm/syslog/syslog.log

for memory information

-USA

Good Luck..
Sridhar Bhaskarla
Honored Contributor

Re: Disk space and Total Memory

Hi Mike,

Try this

grep Physical /var/adm/syslog/syslog.log

If you didn't find it, then try OLDsyslog.log under the same directory.

This is possible if your admins did not change the default location or set the access restrictions.

Otherwise, ask your root administrator.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Helen French
Honored Contributor

Re: Disk space and Total Memory

Hi,

'dmesg' will give you information about system memory.
'bdf' will show you the mounted file system's size.

As you don't have root access, you may not be able to run more commands, inorder to find out the exeact system information.

HTH,
Shiju
Life is a promise, fulfill it!
D. Jackson_1
Honored Contributor

Re: Disk space and Total Memory

Try this for memory:
grep -i Physical: /var/adm/syslog/syslog.log |awk '{print $7}'

And try this for space still available:
#!/bin/ksh
#
PVLIST=`vgdisplay -v | grep "PV Name" | awk '{print $3}'`
for disk in $PVLIST
do
free=`pvdisplay $disk | grep "Free PE" | awk '{print $3}'`
integer EXPR
((EXPR=${free}*4))
((TOTAL=${TOTAL}+${EXPR}))
print $disk = $EXPR MB Free
done
print Total Free space = $TOTAL MB

HTH
T. M. Louah
Esteemed Contributor

Re: Disk space and Total Memory

To add to above the following command get you the Physical memory size:
/usr/sam/lbin/getmem
g'd luck
t++
Little learning is dangerous!
Deshpande Prashant
Honored Contributor

Re: Disk space and Total Memory

HI
If you have "Glance+" software installed on your system.
Try
#glance ->m to see total memory on your system.

#bdf will list all file systems on your system and its utilization.

Thanks.
Prashant.
Take it as it comes.