You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
340 B

3 years ago
  1. #!/bin/bash
  2. echo "Process Export Quota"
  3. zmprov -l gaa | while read ACCOUNT
  4. do
  5. QUOTA=`zmprov ga ${ACCOUNT} | grep "zimbraMailQuota" | awk -F: '{ print $2 }'`
  6. USAGE=`zmmailbox -z -m ${ACCOUNT} gms`
  7. QUOTA=`expr ${QUOTA} / 1024000000`
  8. QUOTA="${QUOTA} GB"
  9. echo "ma ${ACCOUNT} zimbraMailUsage : ${USAGE} / ${QUOTA} "
  10. done > /tmp/accounts.csv