Page 1 of 1

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.