1833178 Members
2944 Online
110051 Solutions
New Discussion

disk space

 
SOLVED
Go to solution
Ragni Singh
Super Advisor

disk space

Hey everyone,

Can someone help me write a simple on liner on how to check for space and % full of
the /appl and /opt directories. Your help will be greatly appreciated and points will be given .
5 REPLIES 5
Pete Randall
Outstanding Contributor
Solution

Re: disk space

Use bdf
bdf /opt
bdf /appl
or bdf -l.

Pete

Pete
James R. Ferguson
Acclaimed Contributor

Re: disk space

Hi:

# bdf /opt

Regards!

...JRF...
Helen French
Honored Contributor

Re: disk space

# bdf /appl /opt
Life is a promise, fulfill it!
PIYUSH D. PATEL
Honored Contributor

Re: disk space

Hi,

bdf /opt and bdf /appl

bdf | grep /opt
bdf | grep /appl


Piyush
MANOJ SRIVASTAVA
Honored Contributor

Re: disk space

Hi Sanman

Do the following



bdf | awk '{if ($5 > "90") print $NF,$5 }' > /tmp/test


This will create a file test in /tmp with the files sytems and the values of the usage. You can be creative in using this file as a form of mail , message etc . Run this as a part of script .

You may also like to look at :
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x3b8fee3e323bd5118fef0090279cd0f9,00.html

Manoj Srivastava