Pavan DBA's Blog

The DBA Knowledge Store

Script to check space for one mount point

Posted by Pavan DBA on March 9, 2012


##########################################

SPACE CHECK FOR A MOUNT POINT IN UNIX BOX

###########################################

#!/bin/ksh

lis=`df -k /d801/oracle/SDSS | grep % | awk ‘{print $5}’| sed ‘s/%//g’`

ci=80

SCRIPT_DIR=/d002/oracle/SDSS/utilitys/

CTIME=`date +%HH%MM%SS`

if test $lis -gt $ci

then

( echo “$lis% space is used in /d801/oracle/SDSS/” > /d002/oracle/SDSS/utilitys/spacecheck.txt

mailx -s “Archive Destination > 80% in /d801/oracle/SDSS/!!” dba_ora_offshore@bp.com 919949520316@airtelap.com < /d002/oracle/

SDSS/utilitys/spacecheck.txt

)

fi

Note : The above script is only for one mount point

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

 
%d bloggers like this: