Community discussions

MikroTik App
 
opalit
Member Candidate
Member Candidate
Topic Author
Posts: 242
Joined: Wed Aug 24, 2011 10:15 pm

Any Chance of a test mode before applying the configuration

Fri Oct 26, 2018 10:54 am

MikroTik, is there any chance of a test mode, before applying a configuration being incorporated, I have to travel a 30 Mile round trip to site to re-configure because I made a mistake configuring a Powerbox router, apart from that my customer has been off-line all night and this morning and cannot take credit card payments.
 
DrSqaer
just joined
Posts: 5
Joined: Wed Oct 17, 2018 5:04 pm

Re: Any Chance of a test mode before applying the configuration

Fri Oct 26, 2018 11:03 am

On Cisco it's call 'reload in',
Mikrotik have a safe mode https://wiki.mikrotik.com/wiki/Manual:Console#Safe_Mode
 
opalit
Member Candidate
Member Candidate
Topic Author
Posts: 242
Joined: Wed Aug 24, 2011 10:15 pm

Re: Any Chance of a test mode before applying the configuration

Fri Oct 26, 2018 11:06 am

That is not a test mode though, that will revert to previous configuration if you screw it up, Ubiquiti kit has a test mode, if you screw up and cannot access the unit, it reverts to previous config and you are back in.
 
User avatar
tomaskir
Trainer
Trainer
Posts: 1162
Joined: Sat Sep 24, 2011 2:32 pm
Location: Slovakia

Re: Any Chance of a test mode before applying the configuration

Fri Oct 26, 2018 3:01 pm

Safe-mode will do the same.

As soon as you lose management connection, it will revert the configuration to the point before safe-mode was engaged.
 
timamplex
just joined
Posts: 20
Joined: Tue Feb 23, 2016 4:50 pm

Re: Any Chance of a test mode before applying the configuration

Fri Oct 26, 2018 5:58 pm

I think the major difference here (like juniper commit confirmed) is the timeout. So for example if your changing management IP's you are going to lose connection by virtue of changing management IPs
hence you can't use safe mode?

Tim
 
DrSqaer
just joined
Posts: 5
Joined: Wed Oct 17, 2018 5:04 pm

Re: Any Chance of a test mode before applying the configuration

Fri Oct 26, 2018 9:52 pm

You can also write a small script i think
 
opalit
Member Candidate
Member Candidate
Topic Author
Posts: 242
Joined: Wed Aug 24, 2011 10:15 pm

Re: Any Chance of a test mode before applying the configuration

Fri Oct 26, 2018 10:36 pm

I have just been to site to have a look at a configuration of a PowerBox I screwed up, and cannot even get to management at site, everything is working except I cannot log on, cannot even see MAC address with Winbox but I can see the CAPS connected to the PowerBox but not the Box itself, while it is working I am not going to factory reset it.
 
joegoldman
Forum Veteran
Forum Veteran
Posts: 767
Joined: Mon May 27, 2013 2:05 am

Re: Any Chance of a test mode before applying the configuration

Sat Oct 27, 2018 1:42 am

There are very few situations given the flexibility of routeros that safe mode wont work for this purpose. Changing IP/routes? youo can dual stack IP's and add the routes, safe mode protects perfectly. Firewall changes? Pretty much what safe mode was made for.

I do agree that test change can be beneficial in that you make all the changes, then hit test before it applies it. If you are doing multiple changes in routeros they kind of do apply instantly as you do it (unless you write a script then the delay is minimal) but safe mode should still protect you no matter what, you just might have to think about your order of operations a bit more carefully as to not trigger safe mode revert.
 
Darmach
just joined
Posts: 22
Joined: Fri May 22, 2020 11:32 pm

Re: Any Chance of a test mode before applying the configuration

Mon Jul 20, 2020 3:34 pm

Let me resurrect this topic a bit - I have a following use case:

I need to "revert" the PtP link: as I need to tinker with it a bit, I want the "other" end (to which I have a difficult access) to be a station, and "my" antenna to be a station-bridge.
Now it's the opposite.

The only mgmt access is trough the radio link itself - so the moment I switch remote "bridge" mode antenna to "station-bridge", the link goes down. ...and safe mode reverts the settings.

Any idea what could I do, or how could this be scripted to have a delay after losing the connection on when the safe mode reverts the changes to the settings?
 
sindy
Forum Guru
Forum Guru
Posts: 10206
Joined: Mon Dec 04, 2017 9:19 pm

Re: Any Chance of a test mode before applying the configuration

Mon Jul 20, 2020 6:26 pm

Any idea what could I do, or how could this be scripted to have a delay after losing the connection on when the safe mode reverts the changes to the settings?
Look at scheduled scripts. On the remote end, you write a script which sets the items you are going to change back to their current values, and use a scheduler to run it at a certain time in future. Then you make the changes at the remote end first, and then on the local one. If you manage to connect to the remote device after the changes, you remove the scheduler item and the new configuration stays; if you fail to connect, you simply wait until the scheduled time (and revert the changes on the local side in the meantime) and then you'll be able to try again.

Of course debug every step first:
  • create and schedule a test script doing something non-destructive like adding a global variable
  • create and run the script that actually restores the current configuration by hand while in safe mode (so that if that script does something wrong, safe mode saves you)

Who is online

Users browsing this forum: CGGXANNX, Google [Bot], sotahe9145, tdw and 215 guests