Translate into your own language

Sunday, July 22, 2018

Script to check space for one mount point

##########################################
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

No comments:

Post a Comment