Posted: Mon Feb 13, 2023 0:46 Post subject: QoS Cron Script.
Hello all, long time reader first time poster. I am having a problem with QoS breaking after about 20 mins of use. I would like to paste a simple Cron script into the Admin page to restart Qos every 15 mins. Would this be possible? I'm a noob to the Cron section so I have no idea how to make a script to do this. Any help would be greatly appreciated!
Joined: 16 Nov 2015 Posts: 6439 Location: UK, London, just across the river..
Posted: Mon Feb 13, 2023 7:35 Post subject:
on what router what firmware number
read the forum rules and guidelines...lots of helpful info _________________ Atheros
TP-Link WR740Nv1 ---DD-WRT 55630 WAP
TP-Link WR1043NDv2 -DD-WRT 55723 Gateway/DoT,Forced DNS,Ad-Block,Firewall,x4VLAN,VPN
TP-Link WR1043NDv2 -Gargoyle OS 1.15.x AP,DNS,QoS,Quotas
Qualcomm-Atheros
Netgear XR500 --DD-WRT 55779 Gateway/DoH,Forced DNS,AP Isolation,4VLAN,Ad-Block,Firewall,Vanilla
Netgear R7800 --DD-WRT 55819 Gateway/DoT,AD-Block,Forced DNS,AP&Net Isolation,x3VLAN,Firewall,Vanilla
Netgear R9000 --DD-WRT 55779 Gateway/DoT,AD-Block,AP Isolation,Firewall,Forced DNS,x2VLAN,Vanilla
Broadcom
Netgear R7000 --DD-WRT 55460 Gateway/SmartDNS/DoH,AD-Block,Firewall,Forced DNS,x3VLAN,VPN
NOT USING 5Ghz ANYWHERE
------------------------------------------------------
Stubby DNS over TLS I DNSCrypt v2 by mac913
I have a Linksys EA6900 with Firmware: DD-WRT v3.0-r51288 std. Qos works great for about 20 mins then stops. I have tried using:
*/10 * * * * root stopservice wshaper
*/10 * * * * root startservice wshaper
but it doesn't seems to restart QoS. Not sure if wshaper is the service handle I should be using. If I manually disable then re-enable Qos through the Ui it starts working again for about 20 mins. I'd like to automate this with Cron if I can.
Joined: 26 Mar 2013 Posts: 1857 Location: Hung Hom, Hong Kong
Posted: Mon Feb 13, 2023 11:27 Post subject:
BackOffJack wrote:
but it doesn't seems to restart QoS. Not sure if wshaper is the service handle I should be using. If I manually disable then re-enable Qos through the Ui it starts working again for about 20 mins. I'd like to automate this with Cron if I can.
Anything in system log /var/log/messages? Did you enable logging? _________________ Router: Asus RT-N18U (rev. A1)
Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!
but it doesn't seems to restart QoS. Not sure if wshaper is the service handle I should be using. If I manually disable then re-enable Qos through the Ui it starts working again for about 20 mins. I'd like to automate this with Cron if I can.
Looks as if you are trying to stop and restart wshaper service at the same time? Is that format correct?
https://linuxhandbook.com/crontab/ _________________ "The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep." - Robert Frost
"I am one of the noticeable ones - notice me" - Dale Frances McKenzie Bozzio
but it doesn't seems to restart QoS. Not sure if wshaper is the service handle I should be using. If I manually disable then re-enable Qos through the Ui it starts working again for about 20 mins. I'd like to automate this with Cron if I can.
Looks as if you are trying to stop and restart wshaper service at the same time? Is that format correct?
I have tried spacing out the start and stop of wshaper to give it time for the settings to take but it does not work. Do you happen to know what command would produce the same result as enable/disable Qos in the Ui?
you should rather look for the cause of the problem instead of trying to automate something defective.
Absolutely, this is correct.
blkt wrote:
Configuration details would help for others to reproduce otherwise use newest build then reconfigure from scratch.
Without OP's specific QoS settings and any other related router settings, no identifying the root cause or solutions.
Finally got some time tonight to work on the router, turns out there's an NVRAM bug on the ea6900 series of routers. Only allows 32kb to be used. I ended up flashing a new CFE I downloaded from the FreshTomato website. Seems to have fixed the QoS issue. I still wouldn't mind knowing what cron command would produce the same result as enable/disable QoS in the ui.