Community discussions

MikroTik App
 
someone2
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 90
Joined: Sun Jan 07, 2018 9:52 pm

configuration for multiple routers

Sat Jun 02, 2018 7:22 pm

Hello
1.Is there any way for changing ntp configuration of some mikrotik routers at the same time or we have to do it on each router seprately.
2.Which configuration can be done for myltple routers in the dude.
 
samsung172
Forum Guru
Forum Guru
Posts: 1191
Joined: Sat Apr 04, 2009 3:45 am
Location: Østfold - Norway
Contact:

Re: configuration for multiple routers

Wed Jun 06, 2018 1:23 am

1. depends on what you neeed to change. Capsman for wifi can be changed at multiple devices at same time.
2. You cant configure from dude.


There is no problem making a script, api connection etc to configure a bounch of routers, but it starts to get a bit advanced.
 
User avatar
TomjNorthIdaho
Forum Guru
Forum Guru
Posts: 1493
Joined: Mon Oct 04, 2010 11:25 pm
Location: North Idaho
Contact:

Re: configuration for multiple routers

Wed Jun 06, 2018 4:08 am

I do bulk (mas) customer configurations and upgrades all of the time. If you know basic UNIX or Linux, then you know it has the ability to do a telnet or ssh. What you need to do is add the "expect" package. Then some simple sh programming - a simple .txt file of client IP address to work with (for I in cat file do). The second file is your expect/shell script that does the telnet/ssh to each client, then performs your commands. You can also redirect a copy of what your expect/shell script is doing to a 3rd file (tee) , then you can examine your tee file after everything has finished.

If you know some Linux and can make a sh program echo "Hello" to the screen, then you are 99% ready to make an expect shell script to do your mas updates/configurations.

North Idaho Tom Jones
 
User avatar
tomaskir
Trainer
Trainer
Posts: 1162
Joined: Sat Sep 24, 2011 2:32 pm
Location: Slovakia

Re: configuration for multiple routers

Wed Jun 06, 2018 11:06 am

If you want an easier solution - try Unimus.
It will do Mass Config Push for you, and you can have it setup in under 30 minutes.

Changing NTP, or creating / modifying users on all MKTs in the network is a few clicks.

Here is an example of how to do RouterOS upgrades:
https://unimus.net/blog/network-wide-mi ... grade.html

Who is online

Users browsing this forum: Bing [Bot], biomesh, deatras and 79 guests