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
14 lines
340 B
#!/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
|