This script should check all the ip for its usage and when usage exceeds 5MB ( for test )
It should create a simple queue with that ip to limit speed to 64K.
I add a new schedule and past this script in the field On Event and run it every 10 sec ( For Check )
I test but the download exceeds 10MB and no new simple queue created.
I have mikrotik 6.28 server with simple configuration :
I do this yesterday but no way it is not working, check photo
I do one trail I replace the > sign with < and add manually a simple queue
With the IP the I am testing from it 192.168.100.50 and it works and changes the queue speed
But without any traffic ( this is to check script errors ).
Sorry to distrib you, But I need this script.
Please help if you have this script working on your server send me your server
Settings to try it in my server.
Thanks
I try also not working I think the problem is the total-bytes when
I try ---- /queue simple> get number=0 value-name=total-bytes from
the terminal it show nothing and from browser I consumed about 100MB
Also in the queue status there no traffic check this photo :
I get it
IT was not the script it was the queue type it should be Default.
In Mikrotik 6.28 When you create a simple queue it makes its
Default type — Default-Small.
When I change the type to Default the Script work very well, and
I think the first script will work also.