Hi guys,
in our infrastructure we have a lot of cPanel servers (100+) and we have bandwidth limits on packages controlled by Puppet. Recently we changed BW limit but this limits are changed only on newly created accounts the old ones stay the same.
Looking into /scripts directory does not reveal any scripts that could reset to package Bandwidth limit for user or maybe all users on a server. I've also checked API documentation if there is anything but i could not find nothing to grasp on. I know this can be changed for an account if you go to Home »Account Functions »Reset Account Bandwidth Limit and click on every possible account, but this is not the best solution if you have such a big scope of servers.
One thing i tried is to change BWLIMIT to the value of new packages limit in /var/cpanel/users and run the following script /usr/local/cpanel/scripts/updateuserdomains but if i go to Home »Account Functions »Modify an Account i can still see message in red saying: "Package value: 1,000,000,000"
Is there any other way to change this via SSH for mass action of Reset Account Bandwidth Limit?
Thanks, A.
in our infrastructure we have a lot of cPanel servers (100+) and we have bandwidth limits on packages controlled by Puppet. Recently we changed BW limit but this limits are changed only on newly created accounts the old ones stay the same.
Looking into /scripts directory does not reveal any scripts that could reset to package Bandwidth limit for user or maybe all users on a server. I've also checked API documentation if there is anything but i could not find nothing to grasp on. I know this can be changed for an account if you go to Home »Account Functions »Reset Account Bandwidth Limit and click on every possible account, but this is not the best solution if you have such a big scope of servers.
One thing i tried is to change BWLIMIT to the value of new packages limit in /var/cpanel/users and run the following script /usr/local/cpanel/scripts/updateuserdomains but if i go to Home »Account Functions »Modify an Account i can still see message in red saying: "Package value: 1,000,000,000"
Is there any other way to change this via SSH for mass action of Reset Account Bandwidth Limit?
Thanks, A.