how can i config many router board at same time?

recently i working on 230 router boards the all setup in different location around the country. every time i change some thing i have to use winbox remort config one by one. it is a huge work.

It is passable to let me config different router board at once?


Thank you

You can export configuration and then import it in another router, so you won’ t have to set for example queues and firewall rules for each router.

for minor changes:

What’s new in 3.0rc3:
*) ftpd - automatically execute uploaded scripts that have name *.auto.rsc;

so make a file with your commands, name it ‘update.auto.rsc’ and upload by ftp
ftp upload is easily scriptable, you may mass-upload this file to many routes with one shell script either on Windows or Linux

how can i make a the .rsc file

and how can i reallize FTPD update on Router board


Thank you

/export file=lalala
It will create lalala.rsc configuration file

Doesn’t appear to work under 3.20 - After I upload, say, ‘abc.auto.rsc’, a file ‘abc.auto.log’ is created at 0 bytes length and the script doesn’t get run.

Nick.

Hi many thanks to answer the questions know i can make a rsc file but how could i use that file to update for a hundrand router board at same time?
not use import command for each one.

thank you

hi;


let me show my configuration. First of all you have got the os version 3.13 or greater(you need fetch option).
i have use 3.13 version.


Put a script which is hourly make a request for your web server.
When the board make a request it has send that values are :

ver = ros version (ex 3.13)
brd = rb type (ex RB133)
wmc = wlan mac (ex 00:00:00:00:00:01)

if you got this values, you can decide what to do(board type,special mac addres, and so on).
its is working perfect for me :slight_smile: if you want, free to try.

and dont forget to set ntp client :slight_smile:

#-------------------------------------
/system script
add name=mmauto policy=ftp,reboot,read,write,policy,test,winbox,password,sniff source=“:local lnk "";\r
\n:set lnk ("autoupdate/?ver=".[/system resource get version] . "&brd=".[/system resource get board-name]. "&wmc=".[/interface wireless get wlan1 m
ac-address]);\r
\n/tool fetch address=192.168.4.4 src-path="$lnk" mode=http port=80 dst-path=mmload.rsc;\r
\nimport mmload.rsc;\r
\n/file remove mmload.rsc;”

/system scheduler
add comment=“” disabled=no interval=1h name=auto on-event=mmauto start-date=jan/01/1970 start-time=00:00:00
#-------------------------------------

Doesn’t appear to work under 3.20 - After I upload, say, ‘abc.auto.rsc’, a file ‘abc.auto.log’ is created at 0 bytes length and the script doesn’t get run.

Nick.

I ran into this as well. What I found was that there were errors in my .auto.rsc file. Try running the file “by hand” using “import abc.auto.rsc” and watch for errors.

Unlike Ciscos, an “export” will not necessarily “import” correctly. Often it does not. You have to strip out various things like mac adresses that may not apply, then make sure things are in the proper order. For example, you may find that your export applies a security profile to a wireless interface that doesn’t exist yet.

Randy

v3.23 will fix the problem when *.auto.rsc was not working sometimes.

My router board has been upgrade to 3.23 but my abc.auto.rsc still couldn’t restore automaticly
once i reboot the router board a file ‘abc.auto.log’ is created

my configure file is

/ip firewall nat
add action=dst-nat chain=dstnat comment=“” disabled=no dst-address=
192.168.1.100 dst-port=5050 protocol=tcp to-addresses=192.168.0.50
to-ports=80
add action=dst-nat chain=dstnat comment=“” disabled=no dst-address=
192.168.1.100 dst-port=5051 protocol=tcp to-addresses=192.168.0.51
to-ports=80

I can manually import it with no problem at all.

read again:

automatically executes uploaded scripts that have name *.auto.rsc;

I make the file name is “a.auto.rsc”

once i put it in the dirctry the a.auto.log will comeing up automaiticly

plz give me some idea

Thank you

what is inside your a.auto.rsc file ?