--- title: "Automated fallback upon configuration change - icom OS Routers" slug: "automated-fallback-upon-configuration-change-en" updated: 2025-01-08T09:57:09Z published: 2025-01-08T09:57:09Z canonical: "docs.insys-icom.com/automated-fallback-upon-configuration-change-en" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.insys-icom.com/llms.txt > Use this file to discover all available pages before exploring further. # Automated fallback upon configuration change - icom OS Routers This Configuration Guide shows how to configure an automated fallback upon the change of a profile. ## Situation An INSYS router is located at a remote place. It is necessary to change the configuration of this device from remote. In case of a failure during the modifications to the configuration, it might happen that the device becomes inaccessible. This would require to reset the device on-site. To avoid this, you can use an automated fallback to the previous profile (configuration). ## Solution It is prerequisite that you have access to the user interface of the router. You’ll first make a copy of the working profile as a basis for your modifications. Then, add a timer and an event that restores the copy from the previous (working) profile after a certain time. You can then make the necessary modifications. After activating the modified profile, a timer will start. If the timer expires it will trigger an event that restores the previous (working) profile in case the modifications have made the device inaccessible. If the modifications turn out to work well, you can delete the timer and the event again and continue to operate the device with the new, modified profile (configuration). ![cg en m3 configuration fallback v2 00](https://docs.insys-icom.de/assets/cg_en_m3_configuration_fallback_v2_00.png) 1. Open the user interface of the router: https://insys.icom 2. Click in the *Administration* → *Profile* menu on , select *Create new profile*, give the profile a *Name* (here **Fallback_profile**) and select under *Create profile from* **Running Profile**. ![cg en m3 configuration fallback v2 01](https://docs.insys-icom.de/assets/cg_en_m3_configuration_fallback_v2_01.png) 3. Click on SUBMIT. 4. Click in the *Events* → *Timer* menu on to add a new timer for returning to the working profile: - *Description*: Fallback timer - *Type*: **Interval** - *Hours* and *Minutes*: enter the interval that has to expire to return to the previous profile ![cg en m3 configuration fallback v2 03](https://docs.insys-icom.de/assets/cg_en_m3_configuration_fallback_v2_03.png) 5. Click on SUBMIT. 6. Click in the *Events* → *Events* menu on to add a new event for returning to the working profile: - *Description*: Fallback event - *Event*: **Timer expired** - *Timer*: select above added timer - *Action*: **Activate profile** - *Profile*: select above added **Fallback_profile** ![cg en m3 configuration fallback v2 04](https://docs.insys-icom.de/assets/cg_en_m3_configuration_fallback_v2_04.png) 7. Click on SUBMIT. 8. Now proceed with your modifications to the configuration. 9. When you’re finished, activate the changed profile with a click on ACTIVATE PROFILE . If your device becomes inaccessible due to the modifications to the profile now, you just need to wait until the fallback timer expires to get access to the device again that will then run with the fallback profile. > [!NOTE] > Be careful which profile is opened for editing! > > Please note that the fallback profile will be activated while the modified profile will still remain opened for editing. If your new configuration turns out to operate well, proceed as follows to remove the timer and event again: 1. Delete the fallback event in the *Events* → *Events* menu (). 2. Delete the fallback timer in the *Events* → *Timer* menu (). 3. Activate the changed profile with a click on ACTIVATE PROFILE . We’ve prepared the following ASCII configuration file for adding the timer and event. Copy and paste it to your text editor or download it using the link below. The ASCII configuration file will add a timer to an already existing list of timers using the function [last]. Then, an action will be added that uses this timer as a triggering event. ASCII configuration file ```lua events.timer.timer.add events.timer.timer[last].active=1 events.timer.timer[last].description=Fallback timer events.timer.timer[last].type=interval events.timer.timer[last].interval_hh=00 events.timer.timer[last].interval_mm=13 events.event_config.event.add events.event_config.event[last].active=1 events.event_config.event[last].description=Fallback event events.event_config.event[last].event_type=ev_timer -----LUA----- cli("events.event_config.event[last].event_timer_name=timer"..cli("events.timer.timer.size").."") -----LUA----- events.event_config.event[last].event_action_type=act_profile events.event_config.event[last].event_action_profile=Fallback_profile ``` [ASCII configuration file download (right-click and save as)](https://docs.insys-icom.de/assets/configs/cg_m3_configuration_fallback.txt) A short Lua script is used to determine the size of the timer list and use it to compose the timer name of the added timer. Refer to the Configuration Guide [Adding a List Parameter to a Profile Using Lua](/kb/docs/en/adding-a-list-parameter-to-a-profile-using-lua-en) to find out more about Lua and adding an ASCII configuration file. Standard IP address: https://192.168.1.1; login depending on configuration; default for earlier firmware versions: *User name*: **insys**, *Password*: **icom**