This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
networking:router:mikrotik_reboot [2016/11/21 11:38] gcooper created |
networking:router:mikrotik_reboot [2018/11/30 11:32] (current) gcooper |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Reboot a Mikrotik Router ====== | ====== Reboot a Mikrotik Router ====== | ||
- | ===== CLI ===== | + | ===== Reboot Now ===== |
< | < | ||
Line 11: | Line 11: | ||
Many times, it is desirable to reboot a device later, at a scheduled time, to keep from inconveniencing users. | Many times, it is desirable to reboot a device later, at a scheduled time, to keep from inconveniencing users. | ||
- | :!: We like to leave a ' | + | :!: We like to leave a ' |
- | Here is a one-time scheduled reboot: | + | Here is a **one-time scheduled reboot |
< | < | ||
- | /system scheduler add comment=" | + | /system scheduler add comment=" |
on-event="/ | on-event="/ | ||
start-date=nov/ | start-date=nov/ | ||
Line 23: | Line 23: | ||
:!: Periodic reboots **should not be necessary**. | :!: Periodic reboots **should not be necessary**. | ||
- | Here is an example of a periodic | + | Here is an example of a **daily |
- | /system scheduler add comment=" | + | < |
+ | /system scheduler add comment=" | ||
on-event="/ | on-event="/ | ||
- | start-date=jan/ | + | start-date=jan/ |
+ | </ | ||
+ | |||
+ | ===== Startup Notification ===== | ||
+ | |||
+ | Edit this for the **destination e-mail address**, then paste it into a terminal to create a new schedule: | ||
+ | |||
+ | < | ||
+ | /system scheduler | ||
+ | add name=reboot-notification comment=" | ||
+ | \n/log print file=logfile; | ||
+ | \ndelay 10\r\ | ||
+ | \n/tool e-mail send to=\" | ||
+ | \ndelay 5\r\ | ||
+ | \n/file remove logfile.txt\r\ | ||
+ | \nlog info \" | ||
+ | \n/system routerboard settings set silent-boot=no" | ||
+ | |||
+ | </ |