Bulk configuration tool...

IMHO it whould be great, if there would be a tool for making changes on more than one router at a time… don’t you think?

Or… maybe open-source MT API? :wink:

Thanks!

Denis.

ssh/scp, script, scheduler… what else does one need?

Well… actually you are not able to make configuration changes on several routers using script + scheduler without connecting to each of them…

I saw one script on this forum, but, once again, not everybody knows where to paste it to…

That would be good feature, let’s say for Dude…

Idea is to make newbie-friendy feature - not the advanced thing for coolhackers :wink:

SSH driven by shell/python/perl/etc… scripts is the newbie-friendy way, it uses exactly the same commands as the MT command line.

I would love to see an open-source API, but I think that would generally be considered the advanced thing for coolhackers. :smiling_imp:

–Eric

What are the things you would automate / replicate ? Firewall rules? Queues? I am starting a project to automate things and would like suggestions / brainstorming. My goal is to manage firewall rules / address-lists across boxes. What else would be nice?

I am totally happy to see ssh commands available now … as well as dsa keys. This makes automating things much easier, thank you mikrotik!

there’s a well known and standardised way for doing this: SNMP (write), and before adding some proprietary API, it would be much better to complete the existing SNMP-agent.


i have not actually tried this (but going to later): would it not be possible to execute a script which existst on the MT in “/file”?
if yes, then all one needs is a scheduler-script, which looks for such a change-script and executes it.

Complete SNMP support would be great, but there are some additional complications with sophisticated systems like MT. The thought of trying to control things like the hotspot, queues, policy routing, or the routing filter via SNMP gives me shivers.

As for exectuing a script from a file, you can just /import it, although last I tried there was some problem with a scheduled import, can’t remember just what though.

I actually use a little python based system for bulk control, it maintains a dictionary of objects, each of which controls a MT via SSH. I can then just pass a command as a lambda to a subset of those objects, and it executes on each of them. I’m not using it extensively, mostly just a search engine for MACs, IPs, and usernames. I am also using it to keep certain firewall chains synchronised, but once routing-test becomes stable, I will probably replace that with a BGP based firewall control plane (it will be faster, cleaner, and won’t require modifying the config for every change).

While my python based system works fine, it’s hard on the poor little box running it, due both to all the code that needs to be interpreted, and the hundreds of SSH connections it maintains. A nice socket-based, or “C-shim-code” based API could be alot more efficient. Some of what I do with this code could be easily re-done to use SNMP, but some of it would be quite difficult.

–Eric

SNMP write is on the list. I expect support in 2.10 in a couple of months. Of course it will be beta.

John

By the way yeah! I agree with mag.

SNMP write would make third-party scripting much easier…

Anyway, the latest MT MIB I saw covers at most 10% of settings that could be changed…

2 changeip: Well, as for me, at the moment script which I wrote can: add/remove users, check available upgrade for bios, check licenses, change traffic flow settings, change queue settings, get MT version information…

please see this:
http://forum.mikrotik.com/t/snmp/5807/1

Wrote a bulk configurator with delphi.
Sends any script via console.

We have make one utility that can handel unlimeted of host in PHP webpage :slight_smile: I can paste in CLI commands to all my CPE units .
to change 300 units takes 1 hour i think.
And it works for all kind of equipment :slight_smile:

//Rickard

Well, little late this reply but I made smth you asked for :wink:

http://forum.mikrotik.com/t/mt-bulk-v2-3-1-mikrotik-automate-and-send-mass-commands-rest-api/128114/1