Page 1 of 1
"commit confirm" fashion command Available?
Posted: Fri Jun 05, 2015 9:03 pm
by leostereo
Hi , guys , I would like to know if is there a possiblity to apply configuration change and after applyed routerOS goes back if no confirmation is made in 5 mins for instance.
This behaviour , similar than junos is very usefull in case you need to change something and can loss connection and management of a remote system.
Thanks.
Re: "commit confirm" fashion command Available?
Posted: Fri Jun 05, 2015 9:22 pm
by patrick7
Re: "commit confirm" fashion command Available?
Posted: Mon Jul 27, 2015 6:53 pm
by leostereo
it is not what im looking for,
Thanks !
Re: "commit confirm" fashion command Available?
Posted: Mon Jul 27, 2015 6:57 pm
by boen_robot
Nothing like this is available "natively", but you can get close by doing a script that does a backup before applying the configuration, and then create a scheduler script that restores from this backup in say, 5 minutes. The "normal" script at the end should remove the scheduler script and backup, thus making the changes permanent.
Re: "commit confirm" fashion command Available?
Posted: Mon Jul 27, 2015 9:07 pm
by IntrusDave
I think Safe Mode is exactly that. Turn it on, make changes, if you lose connection, the changes are removed. The only difference from what you are asking for is the 5-minute timeout. Safe Mode's timeout is... when you disconnect.
Re: "commit confirm" fashion command Available?
Posted: Mon Jul 27, 2015 9:31 pm
by boen_robot
I think Safe Mode is exactly that. Turn it on, make changes, if you lose connection, the changes are removed. The only difference from what you are asking for is the 5-minute timeout. Safe Mode's timeout is... when you disconnect.
There's a slight difference - safe mode cancels the one action that resulted in a disconnect, whereas this "commit" feature would restore MULTIPLE changes that TOGETHER result in a connection loss. An individual change is allowed to cause a disconnect, as long as by the end of the sequence, a connection is made possible again.
Further, a "commit but rollback if not reconnected in time" allows changes like IP address or management port - as long as you connect in time, the "new" way to connect becomes "the" way to connect.
Re: "commit confirm" fashion command Available?
Posted: Mon Jul 27, 2015 10:00 pm
by IntrusDave
There's a slight difference - safe mode cancels the one action that resulted in a disconnect, whereas this "commit" feature would restore MULTIPLE changes that TOGETHER result in a connection loss. An individual change is allowed to cause a disconnect, as long as by the end of the sequence, a connection is made possible again.
Further, a "commit but rollback if not reconnected in time" allows changes like IP address or management port - as long as you connect in time, the "new" way to connect becomes "the" way to connect.
I'm fairly sure that you are wrong about that. From the WiKi:
All configuration changes that are made (also from other login sessions), while router is in safe mode, are automatically undone if safe mode session terminates abnormally.
Re: "commit confirm" fashion command Available?
Posted: Tue Jul 28, 2015 1:43 pm
by boen_robot
I'm fairly sure that you are wrong about that. From the WiKi:
All configuration changes that are made (also from other login sessions), while router is in safe mode, are automatically undone if safe mode session terminates abnormally.
OK, I'm wrong about the first part...
But I'm still right about the second - you can't do a sequence that results in a disconnect during safe mode (e.g. changing the local IP address). A "commit and reconnect in time" approach allows that, while also keeping it safe from accidental lockout.