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-19-2011, 12:54 PM
Advanced Member
 
Posts: 178
Default Script to report per-folder storage usage for a user

Hi all,

I've had the repeated problem of users not knowing where their storage is really being used. When a user has 100+ folders/subfolders, telling them to mouse over each one to find which is taking a lot of space is not the best solution. I created this the attached script for this.

It will take as an argument a specific username. It currently assumes that there is only one domain name (this will be modified later if there is interest).

ex:
folder_size_check.py chauvetp

It will print a list of all folders the user has over 10MB in size. Example output:

Inbox -- total size of folder: 119 MB, in 753 messages
Sent -- total size of folder: 76 MB, in 1774 messages
Trash -- total size of folder: 50 MB, in 1041 messages

Its a work in progress and isn't the neatest program in the world but does the job I needed it to. I figured others might benefit from it. If you have questions or suggestions, please let me know.

Requirements:
  • Must be run on the Zimbra server
  • Python 2.4 or later
  • Python's MySQL & LDAP libraries
Attached Files
File Type: tar folder_size_check.tar (10.0 KB, 11 views)
__________________
---
Paul Chauvet
State University of New York at New Paltz
Reply With Quote
  #2 (permalink)  
Old 04-19-2011, 03:31 PM
Moderator
 
Posts: 1,554
Default

very handy
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.