1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Need some help with cronjob/script

Discussion in 'Tomato Firmware' started by kardzzz, Dec 16, 2008.

  1. kardzzz

    kardzzz Addicted to LI Member

    Guys, I have the follwing scenario... My connection is 10m/500k during off-peak but ISP will capp to 2m/200k for 5 hours if I download >1100meg between 4pm-9pm.

    I want to use a script/cronjob that adjust my QoS in/out parameters to reflect possible limits. 'qos_ibw' and 'qos_obw' are the variables i need to change in the nvram. How do I script to:
    1) close QoS
    2) adjust limits
    3) re-open QoS

    I'd appreciate your replies.
    Thx
     
  2. tievolu

    tievolu Network Guru Member

    Weird, I just posted a script that does exactly this, and a little more :)

    http://www.linksysinfo.org/forums/showthread.php?t=60173

    EDIT: To answer your question, this is how you set QOS limits and apply them:

    Code:
    nvram set qos_obw=[outbound bandwidth in kbits/s]
    nvram set qos_ibw=[inbound bandwidth in kbits/s]
    service qos restart
    
     
  3. kardzzz

    kardzzz Addicted to LI Member

    tievolu, Perfect!! Thanks
     

Share This Page