Page 1 of 1

Script out entire router configuration or just a section of it?

Posted: Sat Oct 12, 2019 1:54 am
by strandedpirate
I know this must have been asked before but I cannot find the threads.

How do I script out the entire router configuration or just a section like the wifi setup?

I'm not talking about a backup (under Files). I want to script out the router's configuration as an actual terminal command script so I can read and reference them as I make changes from a known working setup to some future state.

Re: Script out entire router configuration or just a section of it?

Posted: Sat Oct 12, 2019 10:47 am
by jprietove
Maybe I'm not understanding well but, are you asking about "export" command?

Enviado desde mi Mi A2 mediante Tapatalk


Re: Script out entire router configuration or just a section of it?

Posted: Sat Oct 12, 2019 11:47 am
by joegoldman
Yes for templates I tend to set up a device how I like it and '/export' the entire config then go through it separately and turn certain things into variables with a config section up the top - so its easier and quicker to edit for different routers.

I find you need to have a template version per device type (i.e. I have a CCR1036, RB1100AHx4, RB3011 scripts) and then with each new version of RouterOS do a test run to make sure its compatible before trying to use it on newer versions.

Re: Script out entire router configuration or just a section of it?

Posted: Sat Oct 12, 2019 11:48 am
by dmitris
Try this command:
/interface wireless export

Re: Script out entire router configuration or just a section of it?

Posted: Sat Oct 12, 2019 9:55 pm
by strandedpirate
Awesome, export does exactly what I'm looking for. Thanks all!