Page 1 of 1

Export compact (new in v5.12)

Posted: Mon Jan 23, 2012 12:49 pm
by normis
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] > 



Re: Export compact (new in v5.12)

Posted: Mon Jan 23, 2012 12:51 pm
by normis
please discuss! let us know if you find any issues

Re: Export compact (new in v5.12)

Posted: Mon Jan 23, 2012 1:20 pm
by tibordp
Great news! I've wished for this feature for a long time!

Re: Export compact (new in v5.12)

Posted: Mon Jan 23, 2012 1:22 pm
by janisk
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.

Re: Export compact (new in v5.12)

Posted: Mon Jan 23, 2012 1:46 pm
by andreacoppini
Yay for clean configs!

Re: Export compact (new in v5.12)

Posted: Mon Jan 23, 2012 2:21 pm
by NoXy
Normis, Janisk yes this is greak. Many thanks! (+1, Like, etc.)

Re: Export compact (new in v5.12)

Posted: Mon Jan 23, 2012 2:48 pm
by honzam
good work

Re: Export compact (new in v5.12)

Posted: Mon Jan 23, 2012 2:55 pm
by mandrade
I had just asked it from santa on last cristimas.. :D :D :D

THANKS!!!!!!!

BR

Re: Export compact (new in v5.12)

Posted: Mon Jan 23, 2012 4:54 pm
by alfagius
The only word that describes this feature:

<3!

Re: Export compact (new in v5.12)

Posted: Mon Jan 23, 2012 8:50 pm
by Belyivulk
Agreed! Awesome thanks MT

Re: Export compact (new in v5.12)

Posted: Mon Jan 23, 2012 9:59 pm
by nest
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!

Re: Export compact (new in v5.12)

Posted: Tue Jan 24, 2012 11:51 am
by dominicbatty
excellent and much needed addition .... thanks Mikrotik!

Re: Export compact (new in v5.12)

Posted: Tue Jan 24, 2012 12:12 pm
by nz_monkey
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.

Re: Export compact (new in v5.12)

Posted: Tue Jan 24, 2012 12:15 pm
by normis
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.

Re: Export compact (new in v5.12)

Posted: Tue Jan 24, 2012 12:29 pm
by ste
please discuss! let us know if you find any issues
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

Re: Export compact (new in v5.12)

Posted: Tue Jan 24, 2012 2:31 pm
by stmx38
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

Re: Export compact (new in v5.12)

Posted: Tue Jan 24, 2012 2:37 pm
by normis
modification of what?

Re: Export compact (new in v5.12)

Posted: Tue Jan 24, 2012 2:55 pm
by stmx38
modification of what?
Modification of configuration. I want to see in export when ROS config was changed last time.

Re: Export compact (new in v5.12)

Posted: Tue Jan 24, 2012 2:56 pm
by normis
export is not for such things. use the "history" menu and the "log" to see these things.

Re: Export compact (new in v5.12)

Posted: Tue Jan 24, 2012 3:14 pm
by stmx38
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.

Re: Export compact (new in v5.12)

Posted: Tue Jan 24, 2012 3:16 pm
by normis
In logs is a lot of entry.
it's not an argument. use a remote syslog tool and filter out exactly what you need. export is not for security management, it's for configuration export.

Re: Export compact (new in v5.12)

Posted: Tue Jan 24, 2012 3:34 pm
by stmx38
export is not for security management, it's for configuration export.
How I can see that configuration was changed ?
If I add new user I can't see any changes in export - this is ok for security.
But backup is changed in time and I can't orientate on backup size or content.

Difference between backup and export-how to monitor changes

I want to make a backup only if config was changed.

Re: Export compact (new in v5.12)

Posted: Tue Jan 24, 2012 6:52 pm
by andriys
The status (enabled/disabled) of the default entry in the telnet mac-server configuration is always missing from the compact export output. To illustrate:
[admin@WhiteIron] > /tool mac-server 

[admin@WhiteIron] /tool mac-server> print
Flags: X - disabled, * - default 
 #    INTERFACE
 0  * all

[admin@WhiteIron] /tool mac-server> export
# jan/02/1970 02:47:49 by RouterOS 5.12
#
/tool mac-server
set [ find default=yes ] disabled=no interface=all
/tool mac-server mac-winbox
set [ find default=yes ] disabled=no interface=all
/tool mac-server ping
set enabled=yes

[admin@WhiteIron] /tool mac-server> export compact 
# jan/02/1970 02:47:52 by RouterOS 5.12
#

[admin@WhiteIron] /tool mac-server> set 0 disabled=yes

[admin@WhiteIron] /tool mac-server> export 
# jan/02/1970 02:48:05 by RouterOS 5.12
#
/tool mac-server
set [ find default=yes ] disabled=yes interface=all
/tool mac-server mac-winbox
set [ find default=yes ] disabled=no interface=all
/tool mac-server ping
set enabled=yes

[admin@WhiteIron] /tool mac-server> export compact 
# jan/02/1970 02:48:09 by RouterOS 5.12
#

[admin@WhiteIron] /tool mac-server> 
Export of the WinBox mac-server configuration works as expected.

Re: Export compact (new in v5.12)

Posted: Wed Jan 25, 2012 4:51 am
by tjc
Compact export of firewall address lists produces funky results. This:
/ip firewall address-list
add address=0.0.0.0/8 comment=bogons disabled=no list=blacklist
add address=10.0.0.0/8 comment=bogons disabled=no list=blacklist
add address=127.0.0.0/8 comment=bogons disabled=no list=blacklist
add address=169.254.0.0/16 comment=bogons disabled=no list=blacklist
add address=172.16.0.0/12 comment=bogons disabled=no list=blacklist
add address=192.0.0.0/24 comment=bogons disabled=no list=blacklist
add address=192.0.2.0/24 comment=bogons disabled=no list=blacklist
add address=198.18.0.0/15 comment=bogons disabled=no list=blacklist
add address=198.51.100.0/24 comment=bogons disabled=no list=blacklist
add address=203.0.113.0/24 comment=bogons disabled=no list=blacklist
add address=224.0.0.0/3 comment=bogons disabled=no list=blacklist
Turns into this, which is not quite the same:
/ip firewall address-list                                                       
add comment=bogons list=blacklist                                               
add address=10.0.0.0/8 comment=bogons list=blacklist                            
add address=127.0.0.0/8 comment=bogons list=blacklist                           
add address=169.254.0.0/16 comment=bogons list=blacklist                        
add address=172.16.0.0/12 comment=bogons list=blacklist                         
add address=192.0.0.0/24 comment=bogons list=blacklist                          
add address=192.0.2.0/24 comment=bogons list=blacklist                          
add address=198.18.0.0/15 comment=bogons list=blacklist                         
add address=198.51.100.0/24 comment=bogons list=blacklist                       
add address=203.0.113.0/24 comment=bogons list=blacklist                        
add address=224.0.0.0/3 comment=bogons list=blacklist 

Re: Export compact (new in v5.12)

Posted: Wed Jan 25, 2012 7:45 am
by normis
what's the difference? import them both and get same result

Re: Export compact (new in v5.12)

Posted: Wed Jan 25, 2012 9:10 am
by janisk
The status (enabled/disabled) of the default entry in the telnet mac-server configuration is always missing from the compact export output.
thanks

Re: Export compact (new in v5.12)

Posted: Wed Jan 25, 2012 9:35 am
by changeip
what's the difference? import them both and get same result
i think he was mentioning this: address=0.0.0.0/8, the /8 is not accounted for.

Re: Export compact (new in v5.12)

Posted: Wed Jan 25, 2012 1:26 pm
by mangust
/export compact
Will be nice to have somthing like
/export compact file=some_backup_file

and to see as result the difference between some_backup_file configuration and current one.
I mean it's better to have way to compare between few configurations.

Re: Export compact (new in v5.12)

Posted: Wed Jan 25, 2012 1:37 pm
by janisk
currently file= will save export to file (as you might know), will consider export comparison., but no promises.

Re: Export compact (new in v5.12)

Posted: Wed Jan 25, 2012 1:48 pm
by normis
/export compact
Will be nice to have somthing like
/export compact file=some_backup_file

and to see as result the difference between some_backup_file configuration and current one.
I mean it's better to have way to compare between few configurations.
there is a utility for RSC file comparison. you can search the forum

Re: Export compact (new in v5.12)

Posted: Wed Jan 25, 2012 3:25 pm
by rodolfo

Re: Export compact (new in v5.12)

Posted: Wed Jan 25, 2012 3:26 pm
by normis
thanks, that's what I meant!

Re: Export compact (new in v5.12)

Posted: Wed Jan 25, 2012 3:49 pm
by mangust

Re: Export compact (new in v5.12)

Posted: Wed Jan 25, 2012 7:34 pm
by Aug
export compact vs export
just one line so you can see the difference.

compact -
add chain=forward comment="ICMP 11:0 and limit for 5pac/s" disabled=yes icmp-options=11 limit=5 protocol=icmp

normal export-
add action=accept chain=forward comment="ICMP 11:0 and limit for 5pac/s" disabled=yes icmp-options=11:0-255 limit=5,5 protocol=icmp

appears to have problems with commas and colons.

Other than that, I'm happy to see the compact export option.

Re: Export compact (new in v5.12)

Posted: Wed Jan 25, 2012 7:46 pm
by Aug
ssid missing from compact export.

Thanks for the file compare script. Haven't tried it yet but should prove very useful.

Re: Export compact (new in v5.12)

Posted: Wed Jan 25, 2012 11:25 pm
by Gerard
Compact:
/routing ospf area range
add area=backbone

Regular:
/routing ospf area range
add advertise=yes area=backbone cost=calculated disabled=no range=0.0.0.0/0

Should be:
/routing ospf area range
add area=backbone range=0.0.0.0/0

Re: Export compact (new in v5.12)

Posted: Sun Jan 29, 2012 5:31 pm
by tjc
With the export changes in 5.12 a lot of the exported items in both compact and normal mode were converted to a form that works better with existing settings (e.g. using "set [ find default=yes ]" rather than "add"), however, there are still a lot that use add in ways that might conflict with a default configuration or at least created duplicate entries (e.g. "/system logging", possibly "/ip firewall filter"). For things like this it might make sense to preceed the list of adds with a "remove [ find ]".

Re: Export compact (new in v5.12)

Posted: Mon Jan 30, 2012 8:01 am
by normis
With the export changes in 5.12 a lot of the exported items in both compact and normal mode were converted to a form that works better with existing settings (e.g. using "set [ find default=yes ]" rather than "add"), however, there are still a lot that use add in ways that might conflict with a default configuration or at least created duplicate entries (e.g. "/system logging", possibly "/ip firewall filter"). For things like this it might make sense to preceed the list of adds with a "remove [ find ]".
This is not a problem, it's a feature. Since v5.12 a lot of new "default" settings have been added, and what you described as a problem, will actually work in all routers, even with no config.

Re: Export compact (new in v5.12)

Posted: Tue Jan 31, 2012 6:57 am
by tjc
This is not a problem, it's a feature. Since v5.12 a lot of new "default" settings have been added, and what you described as a problem, will actually work in all routers, even with no config.
So the claim is no more editing the exported configuration to be able to restore using it? That would be pretty cool.

Re: Export compact (new in v5.12)

Posted: Tue Jan 31, 2012 8:20 am
by janisk
So the claim is no more editing the exported configuration to be able to restore using it? That would be pretty cool.
yes, that is final goal.

Re: Export compact (new in v5.12)

Posted: Sat Feb 04, 2012 12:12 am
by erroneous
Hi
export compact is great, but
changed value of default remote syslog server is missing, see:

Without compact:
/system logging export
/system logging action
set 0 memory-lines=100 memory-stop-on-full=no name=memory target=memory
set 1 disk-file-count=2 disk-file-name=log disk-lines-per-file=100 disk-stop-on-full=no name=disk target=disk
set 2 name=echo remember=yes target=echo
set 3 bsd-syslog=no name=remote remote=XXX.YYY.XXX.ZZZ remote-port=514 src-address=:: syslog-facility=daemon syslog-severity=auto target=remote
/system logging
set 0 action=memory disabled=no prefix="" topics=info
set 1 action=memory disabled=no prefix="" topics=error
set 2 action=memory disabled=no prefix="" topics=warning
set 3 action=echo disabled=no prefix="" topics=critical
add action=remote disabled=no prefix="" topics=critical
add action=remote disabled=no prefix="" topics=info
add action=remote disabled=no prefix="" topics=error
add action=remote disabled=no prefix="" topics=system
add action=remote disabled=no prefix="" topics=wireless
with compact:
 /system logging export compact
/system logging
add action=remote topics=critical
add action=remote topics=info
add action=remote topics=error
add action=remote topics=system
add action=remote topics=wireless
Thanks

Re: Export compact (new in v5.12)

Posted: Sat Feb 04, 2012 6:37 pm
by ryohnosuke
My export is broken, no tcp-flags on it.

Saludos.

Re: Export compact (new in v5.12)

Posted: Mon Feb 06, 2012 4:54 pm
by troy
MT Guys:

Thank you so much for the compact exports. Much easier to see what's what!

How about a feature in The Dude to manage configurations? If The Dude senses that a router's config has changed, have it automatically pull that config and store it.

Put a tftp client in ROS so that we can save a configuration directly to a tftp server.
export compact tftp=some.server.com/path/to/file.rsc

Re: Export compact (new in v5.12)

Posted: Wed Feb 08, 2012 7:30 pm
by asmozre
The TCP flags in firewall filter aren't in compact or full as noted above

Compact
add action=add-src-to-address-list address-list="port scanners" \
    address-list-timeout=2w chain=input comment="Drop Port Scanners" \
    in-interface=ether1 protocol=tcp
add action=add-src-to-address-list address-list="port scanners" \
    address-list-timeout=2w chain=input in-interface=ether1 protocol=tcp
add action=add-src-to-address-list address-list="port scanners" \
    address-list-timeout=2w chain=input in-interface=ether1 protocol=tcp
add action=add-src-to-address-list address-list="port scanners" \
    address-list-timeout=2w chain=input in-interface=ether1 protocol=tcp
add action=add-src-to-address-list address-list="port scanners" \
    address-list-timeout=2w chain=input in-interface=ether1 protocol=tcp
add action=add-src-to-address-list address-list="port scanners" \
    address-list-timeout=2w chain=input in-interface=ether1 protocol=tcp
add action=add-src-to-address-list address-list="port scanners" \
    address-list-timeout=2w chain=input in-interface=ether1 protocol=tcp
add action=jump chain=input in-interface=ether1 jump-target=droplog \
    src-address-list="port scanners"


Full
add action=add-src-to-address-list address-list="port scanners" \
    address-list-timeout=2w chain=input comment="Drop Port Scanners" \
    disabled=no in-interface=ether1 protocol=tcp psd=21,3s,3,1
add action=add-src-to-address-list address-list="port scanners" \
    address-list-timeout=2w chain=input disabled=no in-interface=ether1 \
    protocol=tcp
add action=add-src-to-address-list address-list="port scanners" \
    address-list-timeout=2w chain=input disabled=no in-interface=ether1 \
    protocol=tcp
add action=add-src-to-address-list address-list="port scanners" \
    address-list-timeout=2w chain=input disabled=no in-interface=ether1 \
    protocol=tcp
add action=add-src-to-address-list address-list="port scanners" \
    address-list-timeout=2w chain=input disabled=no in-interface=ether1 \
    protocol=tcp
add action=add-src-to-address-list address-list="port scanners" \
    address-list-timeout=2w chain=input disabled=no in-interface=ether1 \
    protocol=tcp
add action=add-src-to-address-list address-list="port scanners" \
    address-list-timeout=2w chain=input disabled=no in-interface=ether1 \
    protocol=tcp
add action=jump chain=input disabled=no in-interface=ether1 jump-target=\
    droplog src-address-list="port scanners"

Re: Export compact (new in v5.12)

Posted: Fri Feb 10, 2012 5:25 am
by otgooneo
Hi Normis, Thank you for great feature. Can I add my special configurations like RoS default config?

Re: Export compact (new in v5.12)

Posted: Fri Feb 10, 2012 2:57 pm
by macgaiver
This feature shows difference from
/system reset-configuration no-defaults=yes

You can Netinstall board with script of your configuration and ensure that that configuration is used as default after every
/system reset-configuration

So - No it is not possible to hide your default configuration from /export compact ;)

Re: Export compact (new in v5.12)

Posted: Fri Feb 10, 2012 3:47 pm
by otgooneo
Thank you macgaiver. Is it not possible even change default configuration using Netinstall?
If so, I need option that able to
/export [find where comment!="MyDefault"] file=blabla

Re: Export compact (new in v5.12)

Posted: Mon Feb 13, 2012 8:55 am
by janisk
default configuration is one thing while empty configuration is another.

Default you can change using netinstall tool and installing RouterOS with script file that is going to be loaded on the router automatically - it has nothing to do with configuration that export is formed against.

here you can see manual of what defaults there are on different boards:
http://wiki.mikrotik.com/wiki/Manual:De ... igurations

and get some inspiration when creating yours.

Re: Export compact (new in v5.12)

Posted: Mon Feb 13, 2012 9:32 pm
by troy
2 items i noticed...

DNS and NTP settings are not being marked as dynamic when they're set by dhcp-client, and are therefore included in a compact export.

This goes off topic, but while I'm talking about setting NTP via DHCP, it might be a good idea if the client was enabled and set to broadcast (

Re: Export compact (new in v5.12)

Posted: Tue Feb 14, 2012 9:10 am
by janisk
1) That will change in 5.13

2) why the current default of unicast is not good enough, also, NTP server on the RouterOS defaults to unicast mode and additional modes (broadcast, multicast and manycast) can be enabled in addition to unicast. So now the only thing that you have to do is to set up ntp-client to get the time, enable ntp-server and point other ntp clients to your RouterOS router.

Re: Export compact (new in v5.12)

Posted: Tue Feb 14, 2012 2:51 pm
by engineertote
i saw in the web site that 5.12 been removed this mornning and back again just now ,, is there any modifications on the new package ??

with thanks

Re: Export compact (new in v5.12)

Posted: Tue Feb 14, 2012 2:52 pm
by normis
no, just site maintenance

Re: Export compact (new in v5.12)

Posted: Tue Feb 14, 2012 4:03 pm
by troy
2) why the current default of unicast is not good enough, also, NTP server on the RouterOS defaults to unicast mode and additional modes (broadcast, multicast and manycast) can be enabled in addition to unicast. So now the only thing that you have to do is to set up ntp-client to get the time, enable ntp-server and point other ntp clients to your RouterOS router.
I got that backwards... it's set to broadcast and not enabled. Here's the NTP config as set from DHCP:
/system ntp client
set enabled=no mode=broadcast primary-ntp=172.17.2.4 secondary-ntp=0.0.0.0
it needs to be set to unicast and enabled when configured via DHCP.

Re: Export compact (new in v5.12)

Posted: Sat Feb 18, 2012 3:06 am
by jt2048
Ok, what's with the version numbers? My system reports 5.4 yet I don't have a compact argument to export. Is the a doc somewhere that talks to version trees and the like?

JT

Re: Export compact (new in v5.12)

Posted: Sat Feb 18, 2012 3:22 am
by boen_robot
Ok, what's with the version numbers? My system reports 5.4 yet I don't have a compact argument to export. Is the a doc somewhere that talks to version trees and the like?

JT
5.4 < 5.12

5.4 is not a short way to write 5.40 (a version that doesn't yet exist). It is instead what came before 5.5, 5.6...., 5.9, 5.10, 5.11, and 5.12. The compact argument was only introduced in 5.12.

Re: Export compact (new in v5.12)

Posted: Fri Mar 09, 2012 1:13 pm
by otgooneo
Please please please add feature, that can be export only special user defined configurations.
[admin@mikrotik] > export [find where comment!="MyDefault"]
Pls pls pls :-)

Re: Export compact (new in v5.12)

Posted: Mon Mar 19, 2012 7:08 pm
by falz
Great addition, I've been hoping this would be added since I've started using Mikrotik devices. Thanks for listening to customer requests.

Re: Export compact (new in v5.12)

Posted: Tue Mar 27, 2012 4:28 pm
by shinn
please export config with fixed order that i can compare with tools like WinMerge.

Re: Export compact (new in v5.12)

Posted: Tue May 08, 2012 12:33 pm
by miro10hr
I was testing this function and found some errors. Maybe it would help to improve it (or maybe I am the problem :-) )

I used RB450 and RB750GL, software v5.14.

I did just basic configuration of RB450 - added two IP addresses, did export compact and tried to import configuration to RB750GL.

First error is this one:
/interface wireless security-profiles
set [ find default=yes ] group-ciphers="" unicast-ciphers=""
For some reason RB450 compact export adds the line interface wireless (although it does not have wireless interfaces), which does not exists in RB750GL.

Second "error" is this one:
/tool mac-server
add disabled=no
After this import stops and asks for interface
interface:
This line in full exports looks like this:
/tool mac-server
add disabled=no interface=all
So if I write "all" after it stops, it continues, but maybe it would be better that import is done without stopping.

Hope this helps a little.

Re: Export compact (new in v5.12)

Posted: Thu May 17, 2012 12:46 am
by skot
Is there a status report on the bugs people have found? Changelog doesn't say anything about export compact since it was introduced in 5.12

Re: Export compact (new in v5.12)

Posted: Thu May 17, 2012 2:54 am
by tjc
There have definitely been fixes in this area since 5.12. Based on comparing compact exports from 5.12 and 5.16 they seem to have fixed the problems with 0.0.0.0, script policies, logging, nieghbor discovery, ... So far 5.16 is looking like a very solid release.

Re: Export compact (new in v5.12)

Posted: Wed Jun 06, 2012 2:15 pm
by maxstel
My experience using export compact.
Two RB 711.
RouterOS 5.16 on both board.
Basic configuration applied on the first (ip on interfaces, wireless link configuration, dhcp client, OSPF).
Import on the second RB (after /system routerboard reset-configuration no-default=yes) and I got this error:
[line 38]/snmp community
[line 39]set [ find default=yes ] addresses=0.0.0.0/0

[line 73]set starttls=no
[line 74] (the last line was empty)

I removed this 4 lines and the script has been imported without errors.

Any suggestion?

Thanks!

Re: Export compact (new in v5.12)

Posted: Wed Jun 06, 2012 2:22 pm
by sergejs
maxstel, perhaps one of the pre-release 5.16 version was installed on your router.
Install MikroTik RouterOS 5.17 on both routers and address=0.0.0.0/0 and tls options are available there.

Re: Export compact (new in v5.12)

Posted: Wed Jun 06, 2012 3:56 pm
by maxstel
maxstel, perhaps one of the pre-release 5.16 version was installed on your router.
Install MikroTik RouterOS 5.17 on both routers and address=0.0.0.0/0 and tls options are available there.
Thank you Sergejs... I will try asap... ;)

Re: Export compact (new in v5.12)

Posted: Fri Jun 22, 2012 10:52 am
by maxstel
Another problem with export compact.
Two routers. Both RB433 with 2 wlan and ROS 5.15.
Import stops at this section:
/ip neighbor discovery
at this line
set 012-eoip-tunnel disabled=yes

Without this line, everything works fine...
Of course discovery on some interfaces is disabled by default, so in this case it's not a problem, but every time I import a "compact" I have to cross my fingers... ;)

Re: Export compact (new in v5.12)

Posted: Fri Jun 22, 2012 11:32 am
by janisk
no interface named 012-eoip-tunne exist when neighbour discovery entries are executed?

Re: Export compact (new in v5.12)

Posted: Fri Jun 22, 2012 12:29 pm
by maxstel
no interface named 012-eoip-tunne exist when neighbour discovery entries are executed?
Nop...
The interface are created on lines 11, 12 and 13:

/interface eoip
add mac-address=02:29:0E:84:41:8D name=012-eoip-tunnel remote-address=\
172.32.10.254 tunnel-id=12

Re: Export compact (new in v5.12)

Posted: Fri Jun 22, 2012 2:40 pm
by janisk
update to latest RouterOS i did export compact on 5.18 and there interface creation is before ip settings.

Re: Export compact (new in v5.12)

Posted: Fri Jun 22, 2012 5:32 pm
by maxstel
update to latest RouterOS i did export compact on 5.18 and there interface creation is before ip settings.
In my "export compact" rsc file (ROS 5.15), the eoip tunnel is set on lines 11, 12, 13.
..................................................................................
# jan/02/1970 00:01:11 by RouterOS 5.15
# software id = QJAC-J6BC
#
/interface ethernet
set 0 name=ether1
set 1 name=ether2
set 2 name=ether3
/interface bridge
add name=bridge1
add l2mtu=1526 name=bridge_pp
/interface eoip
add mac-address=02:29:0E:84:41:8D name=012-eoip-tunnel remote-address=\
172.32.10.254 tunnel-id=12
....................................................................................
The discovery is set on lines 83, 84, 85, 86
................................................
/ip neighbor discovery
set wlan1 disabled=yes
set wlan2 disabled=yes
set 012-eoip-tunnel disabled=yes
................................................
Is it correct? In this case, the script should be ok or not? In my case, the script stops with an error at line 86...
I don't understand why it stop with error, but when I remove the line "set 012-eoip-tunnel disabled=yes" the script doesn't stop...

Thats all...

Thanks Janis

Re: Export compact (new in v5.12)

Posted: Mon Aug 06, 2012 11:21 am
by hassibi
Thanks Mikrotik.its useful feature.

Re: Export compact (new in v5.12)

Posted: Fri Aug 10, 2012 1:27 am
by hfarnoudi
i think it is very useful but i must be test 8)

Re: Export compact (new in v5.12)

Posted: Sat Jun 29, 2013 9:22 am
by nosovk
We are using SVN to monitor configuration changes, but first line of export compact is
# jan/12/1970 14:40:51 by RouterOS 6.1
can you add some flag to turn off timestamp in it, becouse now each export looks like new commit in svn, even if there nothing changed in it cause of timestamp...

(and really say - there is the same prblem with binarry backup... Or there is more than just config in it?)

Re: Export compact (new in v5.12)

Posted: Mon Jul 22, 2013 5:43 pm
by Chupaka
first line of export compact is
# jan/12/1970 14:40:51 by RouterOS 6.1
can you add some flag to turn off timestamp in it
use "tail -n +2" :)
(and really say - there is the same prblem with binarry backup... Or there is more than just config in it?)
AFAIR, there's also Graphing, etc.

Re: Export compact (new in v5.12)

Posted: Wed Jul 24, 2013 8:29 am
by nosovk
unfortunatly I dont know how to integrate
tail -n +2 into svn.
But it's good idea :)

this example even settled in wikipedia
http://en.wikipedia.org/wiki/Tail_(Unix)
This example shows all lines of report from the second line onwards:
tail -n +2 report

Re: Export compact (new in v5.12)

Posted: Fri Aug 16, 2013 9:27 pm
by solelunauno
I'm making an automated fetch script with the "export compact" function. I noticed that if you use: export compact file=file , all things goes well; instead, if you use: /tool export compact file=file you have a file "file.rsc" with only 2-3 lines in it, and not all the configuration. Why?
I use RouterOS 6.1 on mipsbe .

Re: Export compact (new in v5.12)

Posted: Wed Aug 21, 2013 12:06 am
by Chupaka
it's because "/tool export" exports settings from /tool menu. you can use 'export' everywhere, for example "/ip firewall export" to export only firewall settings. use "/export" on any submenu to export full config

Re: Export compact (new in v5.12)

Posted: Wed Sep 04, 2013 1:20 pm
by solelunauno
Thank you Chupaka. It's a very good point.