Need script to check unix disk space usage
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 5 of 5

Thread: Need script to check unix disk space usage

Hybrid View

  1. #1
    Join Date
    Apr 2001
    Posts
    5
    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.

  2. #2
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,095
    df -k /your/directory

    This question might be better addressed on http://www.unix.com.
    Jeff Hunter
    marist89@yahoo.com
    http://marist89.blogspot.com/
    Get Firefox!
    "I pledge to stop eating sharks fin soup and will not do so under any circumstances."

  3. #3
    Join Date
    May 2001
    Location
    New Zealand
    Posts
    123

  4. #4
    Join Date
    May 2001
    Location
    New Zealand
    Posts
    123
    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

  5. #5
    Join Date
    Apr 2001
    Posts
    5

    Thank you!

    Thank you!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width