Results 1 to 4 of 4

Thread: How to show mailbox sizes

  1. #1
    Join Date
    Mar 2010
    Posts
    12
    Rep Power
    5

    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?

  2. #2
    Join Date
    Sep 2009
    Location
    Spain
    Posts
    233
    Rep Power
    6

    Default

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

    Zmmailbox - Zimbra :: Wiki

  3. #3
    Join Date
    Mar 2010
    Posts
    12
    Rep Power
    5

    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?

  4. #4
    Join Date
    Sep 2009
    Location
    Spain
    Posts
    233
    Rep Power
    6

    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?".

Similar Threads

  1. Replies: 1
    Last Post: 10-03-2008, 10:05 PM
  2. [SOLVED] Huge mailbox sizes
    By jbjani in forum General Questions
    Replies: 1
    Last Post: 08-04-2008, 12:12 AM
  3. Replies: 0
    Last Post: 04-20-2008, 11:52 PM
  4. can't you help me
    By iwan siahaan in forum Administrators
    Replies: 6
    Last Post: 12-17-2007, 06:53 PM
  5. [SOLVED] Mailbox Sizes - who has largest?
    By sternfan in forum Administrators
    Replies: 2
    Last Post: 11-19-2007, 02:29 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
  •