Pavan DBA's Blog

The DBA Knowledge Store

Posts Tagged ‘script to check mount point space’

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

Posted in Administration, Scripts | Tagged: , , , , , | Leave a Comment »

 
%d bloggers like this: