What's new

AutoBW: Automatically set QoS bandwidth using spdMerlin

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

So this is a helper for spdMerlin??

It is called by spdMerlin??

It is just an install??

If this is true then it should be noted in the OP

OOOOHHHHHHH

This is a script with things to config through a text editor!!
 
Last edited:
Code:
opkg install bc

I still do not know since I am a novice, I will leave it for later to see if the installation becomes easier as what is introduced in amtm. Thanks anyway for the explanation.
 
Here is complete step by step guide

1. You have entware installed
2. You've working AMTM
3. You should have SpdMerlin installed

SSH device, DON'T GO TO AMTM
install bc if you don't have it already by command

Code:
opkg install bc
And install nano by code

Code:
opkg install nano

Once nano is installed, install AutoBW by code

Code:
curl "https://raw.githubusercontent.com/squidbillyms/AutoBW/master/AutoBW" -o /jffs/scripts/AutoBW && chmod 755 /jffs/scripts/AutoBW && sh /jffs/scripts/AutoBW

Now input code

Code:
nano /jffs/scripts/AutoBW

You can edit options
1. Make permanent changes(otherwise it won't affect anything)
2. Scale parameters
3. Number of times Spdmerlin take speed tests (so it make an average of your true bandwidth

Save file in nano

After saving file, make sure you are in manual mode in asus merlin webui, not in automatic bandwidth

Now run AutoBW again by code in SSH

Code:
/jffs/scripts/AutoBW

After it's run compete, go to device webui and see your download and upload bandwidth set by AutoBW

;)

Happy
 
I still do not know since I am a novice, I will leave it for later to see if the installation becomes easier as what is introduced in amtm. Thanks anyway for the explanation.
Type:
opkg install bc
after SSHing in to the router.

then:
curl "https://raw.githubusercontent.com/squidbillyms/AutoBW/master/AutoBW" -o /jffs/scripts/AutoBW && chmod 755 /jffs/scripts/AutoBW

then:
sh /jffs/scripts/AutoBW

OR WHAT THE GUY SAID ABOVE WHILE I WAS TYPING THIS POST!!!!

This will make it run! Mine is throwing errors and I am not sure what the goal of the script is. It is not stated in the OP
There seem to be settings in the code that might have to be changed:

https://www.snbforums.com/threads/a...-bandwidth-using-spdmerlin.63067/#post-566348
https://www.snbforums.com/threads/a...idth-using-spdmerlin.63067/page-2#post-566363

I do not get the pretty output that is in this screen shot:
https://www.snbforums.com/threads/a...idth-using-spdmerlin.63067/page-2#post-566396
 
Last edited:
Here is complete step by step guide

After it's run compete, go to device webui and see your download and upload bandwidth set by AutoBW

Is that all it does!!!! LOL ok I get it now!!
It sets based on real tested Bandwidth and not claimed bandwidth.

@immi803
Is the idea of this script to run this with a cron(once a day, every 12 hours, or what?) to more accurately reflect your "realtime BandWidth" and set that value so all the other percentages from that are better calculated??

or

Just a onetime thing to set the values

or

Both
 
Is that all it does!!!! LOL ok I get it now!!
It sets based on real tested Bandwidth and not claimed bandwidth.

@immi803
Is the idea of this script to run this with a cron(once a day, every 12 hours, or what?) to more accurately reflect your "realtime BandWidth" and set that value so all the other percentages from that are better calculated??

or

Just a onetime thing to set the values

or

Both
That's exactly i asked auther that either it will repeat the settings after desired time interval, so as many people have changing bandwidth in peak hours or so, didn't get the reply yet , I'll update once i get a reply

Technically, Auto means it should repeat by set interval to repeat again, i don't know that interval yet, mine was set more than 12 hours and it didn't repeat yet, looking at logs every 3 hours but it is not resetting again

Let's wait for reply from author
 
Here is complete step by step guide

1. You have entware installed
2. You've working AMTM
3. You should have SpdMerlin installed

SSH device, DON'T GO TO AMTM
install bc if you don't have it already by command

Code:
opkg install bc
And install nano by code

Code:
opkg install nano

Once nano is installed, install AutoBW by code

Code:
curl "https://raw.githubusercontent.com/squidbillyms/AutoBW/master/AutoBW" -o /jffs/scripts/AutoBW && chmod 755 /jffs/scripts/AutoBW && sh /jffs/scripts/AutoBW

Now input code

Code:
nano /jffs/scripts/AutoBW

You can edit options
1. Make permanent changes(otherwise it won't affect anything)
2. Scale parameters
3. Number of times Spdmerlin take speed tests (so it make an average of your true bandwidth

Save file in nano

After saving file, make sure you are in manual mode in asus merlin webui, not in automatic bandwidth

Now run AutoBW again by code in SSH

Code:
/jffs/scripts/AutoBW

After it's run compete, go to device webui and see your download and upload bandwidth set by AutoBW

;)

Happy


I have followed the steps that you have written me but it remains the same, I do not know where the failure is. Sorry for my English since I am Spanish and I write with the google translator.

 
That's exactly i asked auther that either it will repeat the settings after desired time interval, so as many people have changing bandwidth in peak hours or so, didn't get the reply yet , I'll update once i get a reply

Technically, Auto means it should repeat by set interval to repeat again, i don't know that interval yet, mine was set more than 12 hours and it didn't repeat yet, looking at logs every 3 hours but it is not resetting again

Let's wait for reply from author
Well:
Code:
cru l
will list all the crons on the router.

I have installed and run(in test mode) the script and no cron was installed.
Looking over the code I did not find a cru command in the script so no cron is installed for the script
 
I have followed the steps that you have written me but it remains the same, I do not know where the failure is. Sorry for my English since I am Spanish and I write with the google translator.


type "opkg install bc"
esto instalará el 'bc' que falta
 
I have already done it and it continues to fail.

Did the install complete successfully for bc??

What happens after you type: opkg install bc
 
Trying to debug!!

***********************
UPDATE: https://www.snbforums.com/threads/a...idth-using-spdmerlin.63067/page-4#post-566707
This explains a lot!!!
**************************
The error: printf: invalid number '1052Mbit'
seem to come from line 270-295
Code:
class=$( echo ${line} | sed -n -e 's/.*class htb 1://p' | cut -d' ' -f1 )
            prio=$( echo ${class} | cut -c 2 )

            prevRate=$( echo ${line} | awk -F"rate |Kbit" '{print $2}' )
            prevCeil=$( echo ${line} | awk -F"ceil |Kbit" '{print $3}' )
            Burst=$( echo ${line} | sed -n -e 's/.* burst \([a-zA-z0-9]*\).*/\1/p' )
            Cburst=$( echo ${line} | sed -n -e 's/.*cburst \([a-zA-z0-9]*\).*/\1/p' )

            Rate=$(echo "$prevRate*$dscale_factor" | bc -l)
            Ceil=$(echo "$prevCeil*$dscale_factor" | bc -l)

I added a: echo ${line}
and it looks like:
Code:
class htb 1:17 parent 1:1 leaf 17: prio 6 rate 52633Kbit overhead 18 ceil 1052Mbit burst 12789b cburst 1249258b


I think the trick is to look for Kbit and Mbit in the awk command but I HATE those regular expressions!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
I HATE THEM I HATE THEM!!!

Thanks,
Don

P.S. I HATE THEM!!!

update:
I am looking at the -F command and it seems it is a Input field separator value so there needs to be a test for each variable to see if it will be in Kbit/Mbit/Gbit

so something like:
Code:
if $line contains "rate blablabla Kbit" then
     prevRate=$( echo ${line} | awk -F"rate |Kbit" '{print $2}' )
     scale=Kbit
elseif $line contains "rate blablabla Mbit" then
     prevRate=$( echo ${line} | awk -F"rate |Mbit" '{print $2}' )
     scale=Mbit
else
      prefRate = 0 and Throw an error(something like that)

and matching code for prevCeil

For now I can change the prefCeil to:
Code:
prevCeil=$( echo ${line} | awk -F"ceil |Kbit" '{print $3}' )
and just know the scale is off

another update:

I added:
Code:
Burst=$(echo $Burst | sed 's/[^0-9]*//g')
Cburst=$(echo $Cburst | sed 's/[^0-9]*//g')
because I dont know how to add it to the original sed


Another Another Update:
Code:
while read -r line;
    do
        class=$( echo ${line} | sed -n -e 's/.*class htb 1://p' | cut -d' ' -f1 )
        prio=$( echo ${class} | cut -c 2 )

        prevRate=$( echo ${line} | awk -F"rate |Kbit" '{print $2}' )
        prevCeil=$( echo ${line} | awk -F"ceil |Kbit" '{print $3}' )
        prevCeil=1052000
        Burst=$( echo ${line} | sed -n -e 's/.*burst \([a-zA-Z0-9]*\).*/\1/p' )
        Cburst=$( echo ${line} | sed -n -e 's/.*cburst \([a-zA-Z0-9]*\).*/\1/p' )
        
        Burst=$(echo $Burst | sed 's/[^0-9]*//g')
        Cburst=$(echo $Cburst | sed 's/[^0-9]*//g')

        Rate=$(echo "$prevRate*$dscale_factor" | bc -l)
        Ceil=$(echo "$prevCeil*$dscale_factor" | bc -l)

            printf "%2.0f                 %7.1f         %7.1f           %7.1f         %7.1f\n" $class $prevRate $Rate $prevCeil $Ceil
    
            #Debug
            #echo -e "$line\n class=$class\n prio=$prio\n Rate=$Rate\n Ceil=$Ceil\n Burst=$Burst\n Cburst=$Cburst\n"

            if [ "$test_mode" -eq "0" ]; then
            Rate=$(echo $Rate | cut -d. -f1)
            Ceil=$(echo $Ceil | cut -d. -f1)
            tc class change dev br0 parent 1:1 classid 1:${class} htb ${PARMS}prio ${prio} rate ${Rate}Kbit ceil ${Ceil}Kbit burst ${Burst} cburst ${Cburst}
             fi

    done <<EOF

Hard-coding the prevCeil to what always was returned and converting to Kbit

as well as stripping out the alpha characters from Burst and Ceil Returned a test that threw no errors

Code:
               ----------- SPDMERLIN --------
               Download (Kbps)  Upload (Kbps)
               ---------------  -------------
Test  1 of  2      446279.7         37836.8
Test  2 of  2      433377.3         37939.2
Average            439828.5         37888.0
Scale Factors          0.85            0.85
Scaled Speeds      373854.2         32204.8

               ------------- QOS ------------
               Download (Kbps)  Upload (Kbps)
               ---------------  -------------
Previous           1052672.0         40960.0
New (from above)   373854.2         32204.8
Scaling by             0.355           0.786

              ============================ DOWNLOAD =============================
               ------------- RATE -----------    ------------- CEIL -----------
Class          Previous (Kbps)    New (Kbps)     Previous (Kbps)    New (Kbps)
-----          ---------------  -------------    ---------------  -------------
11                 157900.0         56077.8            1052.0           373.6
10                 52633.0         18692.5            1052.0           373.6
13                 315801.0         112156.0            1052.0           373.6
12                 105267.0         37385.3            1052.0           373.6
15                 52633.0         18692.5            1052.0           373.6
14                 105267.0         37385.3            1052.0           373.6
17                 52633.0         18692.5            1052.0           373.6
16                 210534.0         74770.7            1052.0           373.6

              ============================= UPLOAD =============================
               ------------- RATE -----------    ------------- CEIL -----------
Class          Previous (Kbps)    New (Kbps)     Previous (Kbps)    New (Kbps)
-----          ---------------  -------------    ---------------  -------------
11                  6144.0          4830.7           40960.0         32204.8
10                  2048.0          1610.2           40960.0         32204.8
13                  4096.0          3220.5           40960.0         32204.8
12                  4096.0          3220.5           40960.0         32204.8
15                  2048.0          1610.2           40960.0         32204.8
14                 12288.0          9661.4           40960.0         32204.8
17                  2048.0          1610.2           40960.0         32204.8
16                  8192.0          6441.0           40960.0         32204.8

 TEST MODE: No changes were made.
 
Last edited:
Hi
Same error on the test found by others : sh /jffs/scripts/AutoBW

TEST MODE: No changes will be made.

----------- SPDMERLIN --------
Download (Kbps) Upload (Kbps)
--------------- -------------
Test 1 of 2 14991.4 901.1
Test 2 of 2 15155.2 921.6
Average 15073.3 911.4
Scale Factors 0.85 0.85
Scaled Speeds 12812.3 774.7
* Upload speed ( 774.7 Kbps) < lower limit ( 1024.0 Kbps)
Corrected Speeds 12812.3 1024.0

------------- QOS ------------
Download (Kbps) Upload (Kbps)
--------------- -------------
Previous 0.0 0.0
New (from above) 12812.3 1024.0
Scaling by 1.000 1.000

============================ DOWNLOAD =============================
------------- RATE ----------- ------------- CEIL -----------
Class Previous (Kbps) New (Kbps) Previous (Kbps) New (Kbps)
----- --------------- ------------- --------------- -------------
(standard_in) 1: illegal character: M
(standard_in) 1: syntax error
(standard_in) 1: illegal character: M
(standard_in) 1: syntax error
11 printf: invalid number '1895Mbit'
0.0 printf: invalid number 'ceil'
0.0 printf: invalid number '1895Mbit'
0.0 printf: invalid number 'burst'
0.0
printf: invalid number '1249348b'
0 printf: invalid number 'cburst'
0.0 printf: invalid number '1249348b'
0.0 0.0 0.0
(standard_in) 1: illegal character: M
(standard_in) 1: syntax error
10 524288.0 524288.0 printf: invalid number '1895Mbit'
0.0 printf: invalid number 'burst'
0.0
printf: invalid number '654311b'
0 printf: invalid number 'cburst'
0.0 printf: invalid number '1249348b'
0.0 0.0 0.0
(standard_in) 1: illegal character: M
(standard_in) 1: syntax error
13 524288.0 524288.0 printf: invalid number '1895Mbit'
0.0 printf: invalid number 'burst'
0.0
printf: invalid number '654311b'
0 printf: invalid number 'cburst'
0.0 printf: invalid number '1249348b'
0.0 0.0 0.0
(standard_in) 1: illegal character: M
(standard_in) 1: syntax error
(standard_in) 1: illegal character: M
(standard_in) 1: syntax error
12 printf: invalid number '1048Mbit'
0.0 printf: invalid number 'ceil'
0.0 printf: invalid number '1895Mbit'
0.0 printf: invalid number 'burst'
0.0
printf: invalid number '1249378b'
0 printf: invalid number 'cburst'
0.0 printf: invalid number '1249348b'
0.0 0.0 0.0
(standard_in) 1: illegal character: M
(standard_in) 1: syntax error
15 314568.0 314568.0 printf: invalid number '1895Mbit'
0.0 printf: invalid number 'burst'
0.0
printf: invalid number '391951b'
0 printf: invalid number 'cburst'
0.0 printf: invalid number '1249348b'
0.0 0.0 0.0
(standard_in) 1: illegal character: M
(standard_in) 1: syntax error
14 419424.0 419424.0 printf: invalid number '1895Mbit'
0.0 printf: invalid number 'burst'
0.0
printf: invalid number '523126b'
0 printf: invalid number 'cburst'
0.0 printf: invalid number '1249348b'
0.0 0.0 0.0
(standard_in) 1: illegal character: M
(standard_in) 1: syntax error
17 104856.0 104856.0 printf: invalid number '1895Mbit'
0.0 printf: invalid number 'burst'
0.0
printf: invalid number '129575b'
0 printf: invalid number 'cburst'
0.0 printf: invalid number '1249348b'
0.0 0.0 0.0
(standard_in) 1: illegal character: M
(standard_in) 1: syntax error
16 209712.0 209712.0 printf: invalid number '1895Mbit'
0.0 printf: invalid number 'burst'
0.0
printf: invalid number '260750b'
0 printf: invalid number 'cburst'
0.0 printf: invalid number '1249348b'
0.0 0.0 0.0

============================= UPLOAD =============================
------------- RATE ----------- ------------- CEIL -----------
Class Previous (Kbps) New (Kbps) Previous (Kbps) New (Kbps)
----- --------------- ------------- --------------- -------------
(standard_in) 1: illegal character: M
(standard_in) 1: syntax error
(standard_in) 1: illegal character: M
(standard_in) 1: syntax error
11 printf: invalid number '1895Mbit'
0.0 printf: invalid number 'ceil'
0.0 printf: invalid number '1895Mbit'
0.0 printf: invalid number 'burst'
0.0
printf: invalid number '1249348b'
0 printf: invalid number 'cburst'
0.0 printf: invalid number '1249348b'
0.0 0.0 0.0
(standard_in) 1: illegal character: M
(standard_in) 1: syntax error
10 524288.0 524288.0 printf: invalid number '1895Mbit'
0.0 printf: invalid number 'burst'
0.0
printf: invalid number '654311b'
0 printf: invalid number 'cburst'
0.0 printf: invalid number '1249348b'
0.0 0.0 0.0
(standard_in) 1: illegal character: M
(standard_in) 1: syntax error
13 524288.0 524288.0 printf: invalid number '1895Mbit'
0.0 printf: invalid number 'burst'
0.0
printf: invalid number '654311b'
0 printf: invalid number 'cburst'
0.0 printf: invalid number '1249348b'
0.0 0.0 0.0
(standard_in) 1: illegal character: M
(standard_in) 1: syntax error
(standard_in) 1: illegal character: M
(standard_in) 1: syntax error
12 printf: invalid number '1048Mbit'
0.0 printf: invalid number 'ceil'
0.0 printf: invalid number '1895Mbit'
0.0 printf: invalid number 'burst'
0.0
printf: invalid number '1249378b'
0 printf: invalid number 'cburst'
0.0 printf: invalid number '1249348b'
0.0 0.0 0.0
(standard_in) 1: illegal character: M
(standard_in) 1: syntax error
15 314568.0 314568.0 printf: invalid number '1895Mbit'
0.0 printf: invalid number 'burst'
0.0
printf: invalid number '391951b'
0 printf: invalid number 'cburst'
0.0 printf: invalid number '1249348b'
0.0 0.0 0.0
(standard_in) 1: illegal character: M
(standard_in) 1: syntax error
14 419424.0 419424.0 printf: invalid number '1895Mbit'
0.0 printf: invalid number 'burst'
0.0
printf: invalid number '523126b'
0 printf: invalid number 'cburst'
0.0 printf: invalid number '1249348b'
0.0 0.0 0.0
(standard_in) 1: illegal character: M
(standard_in) 1: syntax error
17 104856.0 104856.0 printf: invalid number '1895Mbit'
0.0 printf: invalid number 'burst'
0.0
printf: invalid number '129575b'
0 printf: invalid number 'cburst'
0.0 printf: invalid number '1249348b'
0.0 0.0 0.0
(standard_in) 1: illegal character: M
(standard_in) 1: syntax error
16 209712.0 209712.0 printf: invalid number '1895Mbit'
0.0 printf: invalid number 'burst'
0.0
printf: invalid number '260750b'
0 printf: invalid number 'cburst'
0.0 printf: invalid number '1249348b'
0.0 0.0 0.0

TEST MODE: No changes were made.

Thanks
 
Another bug...

Happened to run right as a SCHEDULED spdMerlin speed test was being done:
Code:
xxxxxxx@router:/jffs/scripts# sh /jffs/scripts/AutoBW

 AutoUpdate is enabled. Checking for update ...
(23) Failed writing body
 Something is different about this copy of AutoBW. Just letting you know. :)
 Based on versioning alone, you have the latest version: v1.4

 TEST MODE: No changes will be made.

               ----------- SPDMERLIN --------
               Download (Kbps)  Upload (Kbps)
               ---------------  -------------
Running  1 of  1 speedtest, please wait... tail: can't open '/jffs/addons/spdmerlin.d/csv/Downloaddaily_WAN.htm': No such file or directory
tail: no files
tail: can't open '/jffs/addons/spdmerlin.d/csv/Uploaddaily_WAN.htm': No such file or directory
 
Hi
Same error on the test found by others : sh /jffs/scripts/AutoBW

TEST MODE: No changes will be made.

----------- SPDMERLIN --------
Download (Kbps) Upload (Kbps)
--------------- -------------
Test 1 of 2 14991.4 901.1
Test 2 of 2 15155.2 921.6
Average 15073.3 911.4
Scale Factors 0.85 0.85
Scaled Speeds 12812.3 774.7
* Upload speed ( 774.7 Kbps) < lower limit ( 1024.0 Kbps)
Corrected Speeds 12812.3 1024.0

------------- QOS ------------
Download (Kbps) Upload (Kbps)
--------------- -------------
Previous 0.0 0.0
New (from above) 12812.3 1024.0
Scaling by 1.000 1.000

============================ DOWNLOAD =============================
------------- RATE ----------- ------------- CEIL -----------
Class Previous (Kbps) New (Kbps) Previous (Kbps) New (Kbps)
----- --------------- ------------- --------------- -------------
(standard_in) 1: illegal character: M
(standard_in) 1: syntax error
(standard_in) 1: illegal character: M
(standard_in) 1: syntax error
11 printf: invalid number '1895Mbit'
0.0 printf: invalid number 'ceil'
0.0 printf: invalid number '1895Mbit'
0.0 printf: invalid number 'burst'
0.0
printf: invalid number '1249348b'
0 printf: invalid number 'cburst'
0.0 printf: invalid number '1249348b'
0.0 0.0 0.0
(standard_in) 1: illegal character: M
(standard_in) 1: syntax error
10 524288.0 524288.0 printf: invalid number '1895Mbit'
0.0 printf: invalid number 'burst'
0.0
printf: invalid number '654311b'
0 printf: invalid number 'cburst'
0.0 printf: invalid number '1249348b'
0.0 0.0 0.0
(standard_in) 1: illegal character: M
(standard_in) 1: syntax error
13 524288.0 524288.0 printf: invalid number '1895Mbit'
0.0 printf: invalid number 'burst'
0.0
printf: invalid number '654311b'
0 printf: invalid number 'cburst'
0.0 printf: invalid number '1249348b'
0.0 0.0 0.0
(standard_in) 1: illegal character: M
(standard_in) 1: syntax error
(standard_in) 1: illegal character: M
(standard_in) 1: syntax error
12 printf: invalid number '1048Mbit'
0.0 printf: invalid number 'ceil'
0.0 printf: invalid number '1895Mbit'
0.0 printf: invalid number 'burst'
0.0
printf: invalid number '1249378b'
0 printf: invalid number 'cburst'
0.0 printf: invalid number '1249348b'
0.0 0.0 0.0
(standard_in) 1: illegal character: M
(standard_in) 1: syntax error
15 314568.0 314568.0 printf: invalid number '1895Mbit'
0.0 printf: invalid number 'burst'
0.0
printf: invalid number '391951b'
0 printf: invalid number 'cburst'
0.0 printf: invalid number '1249348b'
0.0 0.0 0.0
(standard_in) 1: illegal character: M
(standard_in) 1: syntax error
14 419424.0 419424.0 printf: invalid number '1895Mbit'
0.0 printf: invalid number 'burst'
0.0
printf: invalid number '523126b'
0 printf: invalid number 'cburst'
0.0 printf: invalid number '1249348b'
0.0 0.0 0.0
(standard_in) 1: illegal character: M
(standard_in) 1: syntax error
17 104856.0 104856.0 printf: invalid number '1895Mbit'
0.0 printf: invalid number 'burst'
0.0
printf: invalid number '129575b'
0 printf: invalid number 'cburst'
0.0 printf: invalid number '1249348b'
0.0 0.0 0.0
(standard_in) 1: illegal character: M
(standard_in) 1: syntax error
16 209712.0 209712.0 printf: invalid number '1895Mbit'
0.0 printf: invalid number 'burst'
0.0
printf: invalid number '260750b'
0 printf: invalid number 'cburst'
0.0 printf: invalid number '1249348b'
0.0 0.0 0.0

============================= UPLOAD =============================
------------- RATE ----------- ------------- CEIL -----------
Class Previous (Kbps) New (Kbps) Previous (Kbps) New (Kbps)
----- --------------- ------------- --------------- -------------
(standard_in) 1: illegal character: M
(standard_in) 1: syntax error
(standard_in) 1: illegal character: M
(standard_in) 1: syntax error
11 printf: invalid number '1895Mbit'
0.0 printf: invalid number 'ceil'
0.0 printf: invalid number '1895Mbit'
0.0 printf: invalid number 'burst'
0.0
printf: invalid number '1249348b'
0 printf: invalid number 'cburst'
0.0 printf: invalid number '1249348b'
0.0 0.0 0.0
(standard_in) 1: illegal character: M
(standard_in) 1: syntax error
10 524288.0 524288.0 printf: invalid number '1895Mbit'
0.0 printf: invalid number 'burst'
0.0
printf: invalid number '654311b'
0 printf: invalid number 'cburst'
0.0 printf: invalid number '1249348b'
0.0 0.0 0.0
(standard_in) 1: illegal character: M
(standard_in) 1: syntax error
13 524288.0 524288.0 printf: invalid number '1895Mbit'
0.0 printf: invalid number 'burst'
0.0
printf: invalid number '654311b'
0 printf: invalid number 'cburst'
0.0 printf: invalid number '1249348b'
0.0 0.0 0.0
(standard_in) 1: illegal character: M
(standard_in) 1: syntax error
(standard_in) 1: illegal character: M
(standard_in) 1: syntax error
12 printf: invalid number '1048Mbit'
0.0 printf: invalid number 'ceil'
0.0 printf: invalid number '1895Mbit'
0.0 printf: invalid number 'burst'
0.0
printf: invalid number '1249378b'
0 printf: invalid number 'cburst'
0.0 printf: invalid number '1249348b'
0.0 0.0 0.0
(standard_in) 1: illegal character: M
(standard_in) 1: syntax error
15 314568.0 314568.0 printf: invalid number '1895Mbit'
0.0 printf: invalid number 'burst'
0.0
printf: invalid number '391951b'
0 printf: invalid number 'cburst'
0.0 printf: invalid number '1249348b'
0.0 0.0 0.0
(standard_in) 1: illegal character: M
(standard_in) 1: syntax error
14 419424.0 419424.0 printf: invalid number '1895Mbit'
0.0 printf: invalid number 'burst'
0.0
printf: invalid number '523126b'
0 printf: invalid number 'cburst'
0.0 printf: invalid number '1249348b'
0.0 0.0 0.0
(standard_in) 1: illegal character: M
(standard_in) 1: syntax error
17 104856.0 104856.0 printf: invalid number '1895Mbit'
0.0 printf: invalid number 'burst'
0.0
printf: invalid number '129575b'
0 printf: invalid number 'cburst'
0.0 printf: invalid number '1249348b'
0.0 0.0 0.0
(standard_in) 1: illegal character: M
(standard_in) 1: syntax error
16 209712.0 209712.0 printf: invalid number '1895Mbit'
0.0 printf: invalid number 'burst'
0.0
printf: invalid number '260750b'
0 printf: invalid number 'cburst'
0.0 printf: invalid number '1249348b'
0.0 0.0 0.0

TEST MODE: No changes were made.

Thanks
This error seems to be from anybody with GIGabit internet!!!
 
Hi
my line is an ADSL+ (20mb in download and 1mb il upload).
 
Hi
my line is an ADSL+ (20mb in download and 1mb il upload).
Well...

Code:
12 printf: invalid number '1048Mbit'
0.0 printf: invalid number 'ceil'
0.0 printf: invalid number '1895Mbit'
0.0 printf: invalid number 'burst'
0.0
printf: invalid number '1249378b'
0 printf: invalid number 'cburst'
0.0 printf: invalid number '1249348b'

The Mbit and the letter b at the end of the numbers are what is killing the script!!

There is some more code that needs to be worked out as I am looking into here:
https://www.snbforums.com/threads/a...idth-using-spdmerlin.63067/page-3#post-566601
 
Hi
my line is an ADSL+ (20mb in download and 1mb il upload).
Getting a bit further with my experimenting.

the 1048 and 1895 are from your Routers Adaptive QOS -> QOS page.

If those values are > 1000 you will be getting the errors

I had 40Mb/s for upload
and 1000Mb/s for downlaod

I changed the Upload to 4000 for testing and the Upload began throwing an error
I changed the Download to 900 and it STOPPED throwing the error
 

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!

Members online

Top