Page 1 of 1

Account Limits for Class of service ( Maximum accounts for a COS )

Posted: Mon Jul 29, 2019 9:17 am
by indunil75
Dear Zimbra Admins,

I can set Maximum accounts for a domain with below command.

zmprov md <domain.com> zimbraDomainMaxAccounts NUMBER

I can view it with below commands.

zmprov gd <domain.com> | grep zimbraDomainMaxAccounts

source - https://bugzilla.zimbra.com/show_bug.cgi?id=46748


My question is How to set Account Limits for Class of service ( Maximum accounts for a COS )?

Is their a way to achive it?

My zimbra version is given below. It is FOSS.

Release 8.8.12_GA_3794.RHEL7_64_20190329045002 RHEL7_64 FOSS edition, Patch 8.8.12_P1 proxy.

Let's assume I have a domain called domain.com. Domain can have only 20 accounts. ( this will do it zmprov md <domain.com> zimbraDomainMaxAccounts 20)

Now, I need 10 accounts with 500 MB quota, 5 with 300 MB quota and 5 with 200 MB quota.

I hope question is pretty clear.

Is anybody out there who has achieved it?

Shall we share the knowledge?

Re: Account Limits for Class of service ( Maximum accounts for a COS )

Posted: Mon Jul 29, 2019 11:46 am
by ccelis5215
Hi,

Can you check zimbraDomainCOSMaxAccounts ?

Never used, not sure it's limited to NE, but you can test.

ccelis

Re: Account Limits for Class of service ( Maximum accounts for a COS )

Posted: Tue Jul 30, 2019 10:47 am
by indunil75
ccelis5215 wrote:Hi,

Can you check zimbraDomainCOSMaxAccounts ?

Never used, not sure it's limited to NE, but you can test.

ccelis
I ran below command.

zmprov md domain.com zimbraDomainCOSMaxAccounts 150mbcos:2

It stopped working everything.
Now, I want to disable it. i ran below command.

zmprov md domain.com zimbraDomainCOSMaxAccounts 150mbcos:0

But, It still does NOT work.

This is a running domain.

How to disable it? Pls help ASAP.

Re: Account Limits for Class of service ( Maximum accounts for a COS )

Posted: Tue Jul 30, 2019 10:54 am
by indunil75
indunil75 wrote:
ccelis5215 wrote:Hi,

Can you check zimbraDomainCOSMaxAccounts ?

Never used, not sure it's limited to NE, but you can test.

ccelis
I ran below command.

zmprov md domain.com zimbraDomainCOSMaxAccounts 150mbcos:2

It stopped working everything.
Now, I want to disable it. i ran below command.

zmprov md domain.com zimbraDomainCOSMaxAccounts 150mbcos:0

But, It still does NOT work.

This is a running domain.

How to disable it? Pls help ASAP.

I get below error, while editing accounts of that domain.

Critical
JavaScript error encountered in method
ZaOverviewPanelController.prototype._overviewTreeListener


Can you help me to solve it ASAP?

Re: Account Limits for Class of service ( Maximum accounts for a COS )

Posted: Tue Jul 30, 2019 11:24 am
by indunil75
indunil75 wrote:
indunil75 wrote:
ccelis5215 wrote:Hi,

Can you check zimbraDomainCOSMaxAccounts ?

Never used, not sure it's limited to NE, but you can test.

ccelis
I ran below command.

zmprov md domain.com zimbraDomainCOSMaxAccounts 150mbcos:2

It stopped working everything.
Now, I want to disable it. i ran below command.

zmprov md domain.com zimbraDomainCOSMaxAccounts 150mbcos:0

But, It still does NOT work.

This is a running domain.

How to disable it? Pls help ASAP.

I get below error, while editing accounts of that domain.

Critical
JavaScript error encountered in method
ZaOverviewPanelController.prototype._overviewTreeListener


Can you help me to solve it ASAP?

I myself disabled it. I UNDID it with below command.

zmprov md domain.com -zimbraDomainCOSMaxAccounts 150mbcos:0

It started working again. I started berating again.

Re: Account Limits for Class of service ( Maximum accounts for a COS )

Posted: Tue Jul 30, 2019 10:28 pm
by ccelis5215
Hello indunil75,

Sorry for late response, i made a test using the COS zimbraId and it worked.

Code: Select all

zmprov gc 150mbcos zimbraId
then

Code: Select all

zmprov md domain.com zimbraDomainCOSMaxAccounts zimbraIdValue:2
ccelis

Re: Account Limits for Class of service ( Maximum accounts for a COS )

Posted: Thu Aug 01, 2019 10:55 am
by indunil75
ccelis5215 wrote:Hello indunil75,

Sorry for late response, i made a test using the COS zimbraId and it worked.

Code: Select all

zmprov gc 150mbcos zimbraId
then

Code: Select all

zmprov md domain.com zimbraDomainCOSMaxAccounts zimbraIdValue:2
ccelis
Yeah, Thanks a lot. It works. I can have muliple COSes as well in this way.

zmprov md domain.com +zimbraDomainCOSMaxAccounts 9336c681-bf2f-4fa8-9c66-b4cbd9857ca2:2

zmprov md domain.com +zimbraDomainCOSMaxAccounts 1674fc6e-cc96-47fc-82ce-3c538d0d404f:1

we can viiew it
zmprov gd domain.com | grep -i zimbraDomainCOSMaxAccounts or zmprov gd domain.com | grep -i MaxAccounts

Re: Account Limits for Class of service ( Maximum accounts for a COS )

Posted: Thu Aug 01, 2019 11:38 am
by ccelis5215
Excellent, glad it worked for you.

ccelis

Re: Account Limits for Class of service ( Maximum accounts for a COS )

Posted: Fri Aug 02, 2019 2:59 am
by indunil75
ccelis5215 wrote:Excellent, glad it worked for you.

ccelis
Many thanks to you. unless you helped me, it would have been impossible.

have a nice day.