Results 1 to 3 of 3

Thread: [SOLVED] Export users, last login, cos and quota

Hybrid View

  1. #1
    Join Date
    Nov 2006
    Location
    Bordeaux, France
    Posts
    140
    Rep Power
    8

    Default [SOLVED] Export users, last login, cos and quota

    Hi all,

    im' looking for a command to get all users from a domain, with the following informations :

    - account status
    - User last login time
    - User Cos
    - User quota
    - User disque usage in quota

    zmaccts give me quite all except cos and disque usage and quota

    tHanks for your help

  2. #2
    Join Date
    Apr 2006
    Location
    Illinois
    Posts
    194
    Rep Power
    9

    Default

    zmprov is your friend:

    zmprov ga account | grep zimbraCOSId
    zmprov ga account | grep zimbraMailQuota
    zmprov ga account | grep zimbraLastLogonTimeStamp
    zmprov ga account | grep zimbraAccountStatus

    or all in one line

    zmprov ga account | grep -e zimbraCOSId -e zimbraMailQuota -e zimbraLastLogonTimeStamp -e zimbraAccountStats

    Not sure how to get a users disk usage though.

  3. #3
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    21

    Default

    GetQuotaUsage

    spits it out in bytes- second column is max quota (0=unlimited) third column will be used amount

    zmprov gqu localhost

    this might help:
    zmprov gqu `zmhostname`|awk {'print " "$3" "$2" "$1'}

    to see if anyone exceeds:
    zmprov gqu localhost | awk '$3 > $2'
    Last edited by mmorse; 02-23-2011 at 07:28 AM.

Posting Permissions

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