Browse Source

ver 1.0

pull/9/head
Sébastien Faton 3 years ago
parent
commit
bec72f05b1
  1. 14
      zimbra/divers/export_accounts_quota.sh

14
zimbra/divers/export_accounts_quota.sh

@ -0,0 +1,14 @@
#!/bin/bash
echo "Process Export Quota"
zmprov -l gaa | while read ACCOUNT
do
QUOTA=`zmprov ga ${ACCOUNT} | grep "zimbraMailQuota" | awk -F: '{ print $2 }'`
USAGE=`zmmailbox -z -m ${ACCOUNT} gms`
QUOTA=`expr ${QUOTA} / 1024000000`
QUOTA="${QUOTA} GB"
echo "ma ${ACCOUNT} zimbraMailUsage : ${USAGE} / ${QUOTA} "
done > /tmp/accounts.csv
Loading…
Cancel
Save