Export compact (new in v5.12)

A new feature in v5.12 is the ability to export only that configuration which you have changed (if the device had default configuration, then also that). This gives you ability to debug configuration problems, compare routers more easily, and even simplify the process of migrating configuration to other devices.

to try:

/export compact

and this is all I get, instead of the usual 4 page blob:

[admin@Normis] > export compact
# jan/02/2012 01:57:23 by RouterOS 5.12
#
/ip pool
add name=dhcp_pool1 ranges=10.1.0.2-10.1.0.254
/ip dhcp-server
add address-pool=dhcp_pool1 disabled=no interface=ether3 name=dhcp1
/ip address
add address=10.1.0.1/24 interface=ether3
/ip dhcp-client
add disabled=no interface=ether1
/ip dhcp-server network
add address=10.1.0.0/24 gateway=10.1.0.1
/ip dns
set allow-remote-requests=yes max-udp-packet-size=512 servers=10.5.8.1
/ip firewall nat
add action=masquerade chain=srcnat out-interface=ether1
/ip smb shares
set [ find default=yes ] directory=/pub
/system identity
set name=Normis
/system ntp client
set primary-ntp=10.1.1.1 secondary-ntp=10.1.1.2
/system routerboard settings
set cpu-frequency=266MHz
/tool bandwidth-server
set authenticate=no
[admin@Normis] >

please discuss! let us know if you find any issues

Great news! I’ve wished for this feature for a long time!

good to hear you like it.

Small note, if defaults have been changed since you configured your router, these also will appear as your special config.

Yay for clean configs!

Normis, Janisk yes this is greak. Many thanks! (+1, Like, etc.)

good work

I had just asked it from santa on last cristimas.. :smiley: :smiley: :smiley:

THANKS!!!

BR

The only word that describes this feature:

<3!

Agreed! Awesome thanks MT

I’m still stunned by the simplicity of this. The amount of hours I must have wasted over the years having to remove all the default ‘rubbish’ from a config. Thank you Mikrotik!

excellent and much needed addition … thanks Mikrotik!

Thanks Mikrotik, a very welcome new feature.

Another great thing to implement would be candidate configurations, commits and rollbacks.

This means that any changes are made to a “candidate configuration” that is not active until the user “commits” the configuration. At the time they commit the config it saves a “rollback” point allowing the user to rollback previous commits, then commits their new config making it active.

This is kind of like the existing safe-mode but is a lot more flexible and logical. If you have ever used JunOS or Palo Alto Networks devices you will already be familiar with these concepts.


I have also recently encountered a system where administrators are able to “lock” parts of the configuration, e.g. 3 administrators are logged in to a core router, adding routes, adding queues, adding address lists, adding ip firewall policies. If an administrator wants to make a change without other administrators inadvertently making a conflicting change, they are able to “lock” the part of the configuration e.g. “firewall filters” they are working on. This give them the exclusive right to edit that part of the configuration. Other administrators who try to add/remove/disable/enable a locked section will be warned, and if they are in the correct user group are able to override the lock.

all of the described can be achieved with safe mode. you say that it’s not logical, but that’s only if you have used JunOS. if you get used to safe mode approach, it’s quite logical.

Looks good. Esp. there are no mac-addresses in interfaces so config
can be copied to a new system without editing.

Does it sort config now to resolve dependencies?
E.g. first security profile and then interface depending on this security profile?


Stefan

Please add last modification time in export, like current time

jan/02/2012 01:57:23 by RouterOS 5.12 - > last modified jan/01/2011 01:57:23 by user12345

This will be very useful for Backup Mikrotik config to Subversion repository via SSH

modification of what?

Modification of configuration. I want to see in export when ROS config was changed last time.

export is not for such things. use the “history” menu and the “log” to see these things.

In history I can’t see time and date - and how I can use history to view via ssh if I must create full backup ?
In logs is a lot of entry.