Http Get & Bandwidth Control

Would it be possible with a script to get a list of IP addresses from a webpage via http then create simple queues for all those IP’s?

What I am wanting to do is this. Via some perl accounting scripts many of which I have written already keep a record of all users bandwidth consumption. Automatically create a list of user IP’s that have used over a Gbyte or so in last week. I can do all this quite easilly with my perl scripts.

On the Mikrotik box have a traffic monitor that starts a script when my T1’s hit 95%. With this script retrieve the list of IP’s that are extremely heavy users created above with http. In that script create simple queues for all heavy users IP’s to slow them down. Have another traffic monitor that hits when my T1’s drop below 70% and fires another script. Have it turn off first script and remove all the queues.

Thats the jist of it. Only down side is it cannot detect when your wireless sites themselves are conjested. Its better then nothing though and out here in the sticks T1’s are still not cheap.

Matthew

it’s not possible in that way. But you can try to make a SSH connection to the router from your perl script and add the necessary rules.

Edgars

How with Perl and SNMP can I determine the current 5 minute average datarate on an interface on the Mikrotik router?

If I could do that then I could figure out the rest using perl and telnet like stated.

Matt

you can try http://www.billingo.com which seem to offer an interesting solution - something much like you wanted