Originally posted by: OTIT
I copied the script of sandy_kokkirala, edit, test and its can be used.
Thank for sandy_kokkirala.
#############################################################
for i in `df -g|grep -v proc |awk '{if(NR>1) print $4":" $7}'`
do
a=`echo $i|cut -d":" -f1 2>/dev/null`
k=`echo $a|cut -d"%" -f1 2>/dev/null`
x=`expr $k + 0`
l=`echo $i|cut -d":" -f2 2>/dev/null`
if [
$x -gt 90 ] then
echo "The file system \"$l\" exceded 90% size now it contains $a size for \"`hostname`\" please take action as soon as you this" "|mail -s "Action Needed"
sandeep.kokkirala@in.ibm.com fi
done
#AIX-Forum