Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-06-2010, 04:02 PM
Starter Member
 
Posts: 2
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.
Reply With Quote
  #2 (permalink)  
Old 10-06-2010, 08:49 PM
Moderator
 
Posts: 6,237
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'}
Reply With Quote
  #3 (permalink)  
Old 10-06-2010, 11:04 PM
Starter Member
 
Posts: 2
Default

Ah, cool Works even better
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.