Community discussions

 
User avatar
strandedpirate
just joined
Topic Author
Posts: 3
Joined: Wed Mar 21, 2018 1:41 am

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

Sat Oct 12, 2019 1:54 am

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.
 
User avatar
jprietove
Trainer
Trainer
Posts: 93
Joined: Fri Jun 03, 2016 3:00 pm
Location: Cádiz, Spain
Contact:

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

Sat Oct 12, 2019 10:47 am

Maybe I'm not understanding well but, are you asking about "export" command?

Enviado desde mi Mi A2 mediante Tapatalk

 
joegoldman
Member
Member
Posts: 492
Joined: Mon May 27, 2013 2:05 am

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

Sat Oct 12, 2019 11:47 am

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.
 
dmitris
newbie
Posts: 42
Joined: Mon Oct 09, 2017 1:08 pm

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

Sat Oct 12, 2019 11:48 am

Try this command:
/interface wireless export
 
User avatar
strandedpirate
just joined
Topic Author
Posts: 3
Joined: Wed Mar 21, 2018 1:41 am

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

Sat Oct 12, 2019 9:55 pm

Awesome, export does exactly what I'm looking for. Thanks all!

Who is online

Users browsing this forum: No registered users and 13 guests