Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Disable automatic bandwidth suspensions - weekend

Discussion in 'General Discussion' started by muriel6060, Aug 29, 2017.

Tags:
  1. muriel6060

    muriel6060 Member

    Joined:
    Feb 25, 2016
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    Hello all,

    Is that a way to disable automatic bandwidth suspensions only during the weekends?

    Thank you.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,165
    Likes Received:
    1,372
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    There is no feature that will allow you to enable to disable the "Bandwidth limit check" setting based on date or time. I encourage you to open a feature request if you'd like to see this functionality added to the product:

    Submit A Feature Request

    Thank you.
     
  3. muriel6060

    muriel6060 Member

    Joined:
    Feb 25, 2016
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    Hi Michael,

    But is there a way to disable the "automatic bandwidth suspensions" in Tweak Settings and call this script by crontab only weekdays?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,165
    Likes Received:
    1,372
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Yes, you could setup a root cron job that runs the following command to disable the bandwidth limit checking feature:

    Code:
    whmapi1 set_tweaksetting key=skipbwlimitcheck value=1
    Then, to enable the checking again, setup a cron job that uses this command:

    Code:
    whmapi1 set_tweaksetting key=skipbwlimitcheck value=0
    Thank you.
     
Loading...

Share This Page