Re: grep file system capacity

From: Green, Simon (Simon.Green_at_EU.ALTRIA.COM)
Date: 06/20/05

  • Next message: Green, Simon: "Re: ssh as dsh?"
    Date:         Mon, 20 Jun 2005 16:18:22 +0200
    To: aix-l@Princeton.EDU
    
    

    Or slightly more flexible...

    df|grep "^/dev"|tr -s '% ' ' '|cut -f4,7 -d' '|while read UTIL FILE
    do
    if [[ $UTIL -gt 59 ]]
    then
    echo $FILE $UTIL
    fi
    done

    -- 
    Simon Green							
    Altria ITSC Europe s.a.r.l.
    AIX-L Archive at https://new-lists.princeton.edu/listserv/aix-l.html
    New to AIX? http://publib-b.boulder.ibm.com/redbooks.nsf/portals/UNIX
    N.B. Unsolicited email from vendors will not be appreciated.
    Please post all follow-ups to the list.
    -----Original Message-----
    From: IBM AIX Discussion List [mailto:aix-l@Princeton.EDU] On Behalf Of
    Mills, John T (9814)
    Sent: 20 June 2005 14:58
    To: aix-l@Princeton.EDU
    Subject: Re: grep file system capacity
    df -k |egrep "[6-9][0-9]%|100%" 
    -----Original Message-----
    From: IBM AIX Discussion List [mailto:aix-l@Princeton.EDU] On Behalf Of
    Shawn Bierman
    Sent: Monday, June 20, 2005 8:26 AM
    To: aix-l@Princeton.EDU
    Subject: [aix-l] grep file system capacity
    df|grep [6-9][0-9]%
    this command shows file systems that are 60-99% full.  How would I
    include 100% without doing another command?
    thanks,
    -shawn
    

  • Next message: Green, Simon: "Re: ssh as dsh?"

    Relevant Pages

    • Re: grep file system capacity
      ... grep file system capacity ... this command shows file systems that are 60-99% full. ...
      (AIX-L)
    • Re: grep file system capacity
      ... grep file system capacity ... this command shows file systems that are 60-99% full. ...
      (AIX-L)
    • Re: partition naming - newbie
      ... hardware address that is assigned to each disk, tape, or CD-ROM. ... Using the prtconf command ... In addition to managing these directories, the devfsadm command also ... Berkeley fast file system. ...
      (comp.unix.solaris)
    • Re: Trying to move /usr - Fixed
      ... After thinking about that mv command, ... Note /dev/ad8s1e is an empty partition (a new disk, ... I'll use user and usrdemo as the names of the ... the root of the file system. ...
      (freebsd-questions)
    • RE: serioup problem after running fsck
      ... I'm not an expert in recovery and I'm not sure you could recover at ... > The easiest and first thing is to run fsck again (although I ... Running it once is no guarantee that the file system ... > shutdown command from the command line or the shutdown menu ...
      (RedHat)