Does anyone have a script to check disk space usage.
My backup directory keeps filling up with archivelog files and
I need a script to let me know by email or pager when the filesystem is 80% full.
Printable View
Does anyone have a script to check disk space usage.
My backup directory keeps filling up with archivelog files and
I need a script to let me know by email or pager when the filesystem is 80% full.
df -k /your/directory
This question might be better addressed on http://www.unix.com.
Hi
http://www.dbasupport.com/oracle/scr...iled/120.shtml
Cheers
Afshin
Hi
df -k | awk '$4 > 70 { printf "%20s,%20s %s\n",$1,$4,$7}' > /temporaryfile
set `date`
mailx -s "File Systems which are more than 70% used on on $2,$3" emailid < /temporaryfile
Cheerio
Afshin
Thank you!