Rebooting a router on schedule

Starting from KeeneticOS 2.12, you can set up an automatic reboot of your Keenetic router at a specified time (by schedule).

NOTE: Important! The operation of the schedule depends directly on the current time set in the router. Ensure that the router has an Internet connection and that the 'Set the time automatically' option in 'General system settings' under 'System settings' is enabled and the time zone is selected correctly. You can see the current time on the Dashboard page in the 'About the system' section.

The scheduled reboot function is configured from the command-line interface (CLI) of the router.

To reboot the router, you need to create a schedule with a duration of 1 minute in the command-line interface.

Here are some examples.

1. Creating a schedule for daily router reboot at 11:57 p.m.

schedule rebootrouter
action start 57 23 *
action stop 58 23 *
system reboot schedule rebootrouter
system configuration save


2. Creating a schedule to reboot the router once a week (on Mondays) at 03:30 a.m.

schedule rebootrouter
action start 30 3 1
action stop 31 3 1
system reboot schedule rebootrouter
system configuration save


3. Creating a schedule to reboot the router daily 3 times a day at 05:00, 12:00 and 18:00.

schedule rebootrouter
action start 00 05 *
action stop 01 05 *
action start 00 12 *
action stop 01 12 *
action start 00 18 *
action stop 01 18 *
system reboot schedule rebootrouter
system configuration save

4. Deactivating the schedule for the router reboot:

no system reboot schedule
system configuration save


TIP: Note

Syntax of schedule action command:

(config)> schedule action ( start | stop ) ‹ min › ‹ hour › ‹ dow ›

action start — schedule start;
action stop — schedule stop;
min — minutes (integer between 0 and 59);
hour — hours (integer between 0 and 23);
dow — weekday; 0 и 7 — Sunday; * — every day; the days of the week are separated by commas without spaces (for example, action start 0 4 1,2,3,4,5).

You can view all created schedules with the show schedule command
With the no schedule command you can delete previously created schedules. For example, there are 2 schedules created in the router named rebootrouter01 and rebootrouter02. Suppose you want to delete the schedule named rebootrouter02, run the no schedule rebootrouter02 command to do so.

After running the above commands, be sure to save the current router configuration with the command system configuration save

Detailed information on command syntax and command-line interface (CLI) can be found in the Reference Guide (you can find it in the Download Center section of your router model page).

Was this article helpful?

248 out of 293 found this helpful