Community discussions

MikroTik App
 
User avatar
leostereo
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 92
Joined: Thu Oct 18, 2012 11:36 pm
Location: mendoza , argentina
Contact:

"commit confirm" fashion command Available?

Fri Jun 05, 2015 9:03 pm

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.
 
patrick7
Member
Member
Posts: 352
Joined: Sat Jul 20, 2013 2:40 pm

Re: "commit confirm" fashion command Available?

Fri Jun 05, 2015 9:22 pm

 
User avatar
leostereo
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 92
Joined: Thu Oct 18, 2012 11:36 pm
Location: mendoza , argentina
Contact:

Re: "commit confirm" fashion command Available?

Mon Jul 27, 2015 6:53 pm

it is not what im looking for,
Thanks !
 
User avatar
boen_robot
Forum Guru
Forum Guru
Posts: 2400
Joined: Thu Aug 31, 2006 4:43 pm
Location: europe://Bulgaria/Plovdiv

Re: "commit confirm" fashion command Available?

Mon Jul 27, 2015 6:57 pm

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.
 
IntrusDave
Forum Guru
Forum Guru
Posts: 1286
Joined: Fri May 09, 2014 4:36 am
Location: Rancho Cucamonga, CA

Re: "commit confirm" fashion command Available?

Mon Jul 27, 2015 9:07 pm

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.
 
User avatar
boen_robot
Forum Guru
Forum Guru
Posts: 2400
Joined: Thu Aug 31, 2006 4:43 pm
Location: europe://Bulgaria/Plovdiv

Re: "commit confirm" fashion command Available?

Mon Jul 27, 2015 9:31 pm

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.
 
IntrusDave
Forum Guru
Forum Guru
Posts: 1286
Joined: Fri May 09, 2014 4:36 am
Location: Rancho Cucamonga, CA

Re: "commit confirm" fashion command Available?

Mon Jul 27, 2015 10:00 pm

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.
 
User avatar
boen_robot
Forum Guru
Forum Guru
Posts: 2400
Joined: Thu Aug 31, 2006 4:43 pm
Location: europe://Bulgaria/Plovdiv

Re: "commit confirm" fashion command Available?

Tue Jul 28, 2015 1:43 pm

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.

Who is online

Users browsing this forum: aboiles, vic666 and 94 guests