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

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
indunil75
Advanced member
Advanced member
Posts: 97
Joined: Sat Sep 13, 2014 12:35 am

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

Post 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?
User avatar
ccelis5215
Outstanding Member
Outstanding Member
Posts: 632
Joined: Sat Sep 13, 2014 2:04 am
Location: Caracas - Venezuela
ZCS/ZD Version: 8.8.15.GA.3869.UBUNTU18.64 P12

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

Post by ccelis5215 »

Hi,

Can you check zimbraDomainCOSMaxAccounts ?

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

ccelis
indunil75
Advanced member
Advanced member
Posts: 97
Joined: Sat Sep 13, 2014 12:35 am

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

Post 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.
indunil75
Advanced member
Advanced member
Posts: 97
Joined: Sat Sep 13, 2014 12:35 am

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

Post 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?
indunil75
Advanced member
Advanced member
Posts: 97
Joined: Sat Sep 13, 2014 12:35 am

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

Post 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.
User avatar
ccelis5215
Outstanding Member
Outstanding Member
Posts: 632
Joined: Sat Sep 13, 2014 2:04 am
Location: Caracas - Venezuela
ZCS/ZD Version: 8.8.15.GA.3869.UBUNTU18.64 P12

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

Post 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
indunil75
Advanced member
Advanced member
Posts: 97
Joined: Sat Sep 13, 2014 12:35 am

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

Post 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
User avatar
ccelis5215
Outstanding Member
Outstanding Member
Posts: 632
Joined: Sat Sep 13, 2014 2:04 am
Location: Caracas - Venezuela
ZCS/ZD Version: 8.8.15.GA.3869.UBUNTU18.64 P12

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

Post by ccelis5215 »

Excellent, glad it worked for you.

ccelis
indunil75
Advanced member
Advanced member
Posts: 97
Joined: Sat Sep 13, 2014 12:35 am

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

Post 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.
Post Reply