Results 1 to 3 of 3

Thread: [SOLVED] Check user mailbox usage

  1. #1
    SRex is offline Starter Member
    Join Date
    Oct 2010
    Posts
    2
    Rep Power
    4

    Default [SOLVED] Check user mailbox usage

    Hi, searched the forums for 30 minutes looking for a command like this, but couldn't find one. The following command goes through each user and prints out their mailbox usage:
    Code:
    for i in `zmprov -l gaa`; do echo $i; echo `zmmailbox -z -m $i gms`; done
    Just thought I better leave this here lest someone else have the same problem I did and need to identify the users to rouse on.

  2. #2
    mmorse's Avatar
    mmorse is offline Moderator
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    21

    Default

    Welcome to the forums,

    Not bad & will mark solved, but here's another faster way (since it doesn't need to fire up multiple connections):

    Code:
    zmprov gqu localhost
    (Stands for GetQuotaUsage - will printout name, allocated, used.)

    ~

    Not actually necessary most of the time (since it'll put the biggest users at the top by default), but say you wanted to change the column order to used, allocated, name:
    Code:
    zmprov gqu `zmhostname`| awk {'print " "$3" "$2" "$1'}
    Or just used & name:
    Code:
    zmprov gqu  server.domain.com | awk {'print " "$3" "$1'}

  3. #3
    SRex is offline Starter Member
    Join Date
    Oct 2010
    Posts
    2
    Rep Power
    4

    Default

    Ah, cool Works even better

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 21
    Last Post: 02-04-2010, 10:06 AM
  2. Post instsallation problems
    By Assaf in forum Installation
    Replies: 14
    Last Post: 01-29-2007, 11:38 AM
  3. Getting problems in FC4 while instalation
    By kitty_bhoo in forum Installation
    Replies: 13
    Last Post: 09-12-2006, 10:34 PM
  4. Services stopped working
    By lilwong in forum Administrators
    Replies: 4
    Last Post: 08-15-2006, 09:19 AM
  5. Fedora Core 3, Clean Install - Not working!
    By pcjackson in forum Installation
    Replies: 17
    Last Post: 03-05-2006, 07:38 PM

Posting Permissions

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