Hello,

I am writing the script to get the total number of used user licenses for our Zimbra NE. Wondering if there is a simple command to get this number. I can use some trick to do it:

/opt/zimbra/bin/zmprov -l gaa | grep -v galsync | grep -v spam |grep -v ham |grep -v virus-quarentines | wc -l

But doesn't feel it is the right way. There should be an easy command to get this number. Note: we have multiple domains on out zimbra server, can not just use "zmprov cta $DOMAINNAME" command.

Anyone can help me?

Thanks,
Rocky