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

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
NOZIL
Advanced member
Advanced member
Posts: 129
Joined: Fri Sep 12, 2014 10:21 pm

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

Postby NOZIL » Tue Oct 16, 2007 7:45 am

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


kirme3
Advanced member
Advanced member
Posts: 179
Joined: Fri Sep 12, 2014 10:09 pm

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

Postby kirme3 » Tue Oct 16, 2007 9:10 pm

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.
mmorse
Ambassador
Ambassador
Posts: 6036
Joined: Fri Sep 12, 2014 10:24 pm

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

Postby mmorse » Tue Oct 16, 2007 9:39 pm

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'

Return to “Administrators”

Who is online

Users browsing this forum: No registered users and 11 guests