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 04-27-2010, 04:37 AM
Member
 
Posts: 12
Default How to show mailbox sizes

Hi,

I am trying to export mailbox names and their size from a customer box.

I am using the command

zmprov gaa -v | grep -e name -e sn -e givenName -e displayName | awk 'ORS=","' > accounts.csv

But I can't find an attribute to show the mailbox size.

Is this possible in a one line command?
Reply With Quote
  #2 (permalink)  
Old 04-27-2010, 04:39 AM
Advanced Member
 
Posts: 236
Default

There's an interesting post in the Wiki that might help you.

Zmmailbox - Zimbra :: Wiki
Reply With Quote
  #3 (permalink)  
Old 04-27-2010, 04:50 AM
Member
 
Posts: 12
Default

zmmailbox will only show for a single mailbox

And gqu shows the sizes alright, but in bytes.

Is there no way of adding the mailbox size into the line i already have to save into the same file?
Reply With Quote
  #4 (permalink)  
Old 04-27-2010, 05:05 AM
Advanced Member
 
Posts: 236
Default

Well, zmmailbox will only show a single mailbox at a time. So a simple for loop (or some other more efficient way) over the zmprov -l gaa output could work for you. I don't know how many accounts you have on your servers so this may (or may not) take a while to complete.

Now, I don't have much experience (or knowledge) in shell scripting, so don't bite my head off when I ask "can you do the math to turn bytes into MB in the one line?".
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.