DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: need file system shells script

  1. #1
    Join Date
    Aug 2000
    Location
    Chicago IL
    Posts
    586
    hello,
    i need a filesystem shell script to monitor %full

    thanks

  2. #2
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    #!/bin/ksh
    for wline in `df -kl | grep -iv Capacity | awk '{print $5 $6}'`
    do
    pct=`echo $wline | awk -F% '{print $1}'`
    mp=`echo $wline | awk -F% '{print $2}'`
    if (( pct > 80 ))
    then
    echo $mp" is "$pct"% full!"
    fi
    done
    Jeff Hunter

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