User Tools

Site Tools


networking:router:mikrotik_reboot

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
networking:router:mikrotik_reboot [2018/11/28 14:12]
gcooper
networking:router:mikrotik_reboot [2018/11/30 11:32] (current)
gcooper
Line 32: Line 32:
  
 ===== Startup Notification ===== ===== Startup Notification =====
- 
-FIXME Needs testing with latest firmware. 
  
 Edit this for the **destination e-mail address**, then paste it into a terminal to create a new schedule: Edit this for the **destination e-mail address**, then paste it into a terminal to create a new schedule:
Line 39: Line 37:
 <file> <file>
 /system scheduler /system scheduler
-add name=reboot-notification on-event="delay 30\r\ +add name=reboot-notification comment="Send notification that the router was rebooted" on-event="delay 30\r\ 
-       \n/log print file=logfile;\r\ +      \n/log print file=logfile;\r\ 
-       \ndelay 10\r\ +      \ndelay 10\r\ 
-       \n/tool e-mail send to=\"EnterEmailHere\" subject=\"\$[/system identity get name] - Rebooted at \$[/system clock get time] \$[/system clock get date]\" body=\"See attached log.\" file=\"logfile.txt\"\r\+      \n/tool e-mail send to=\"EnterEmailHere\" subject=\"\$[/system identity get name] - Rebooted at \$[/system clock get time] \$[/system clock get date]\" body=\"See attached log.\" file=\"logfile.txt\"\r\
       \ndelay 5\r\       \ndelay 5\r\
       \n/file remove logfile.txt\r\       \n/file remove logfile.txt\r\
networking/router/mikrotik_reboot.1543439555.txt.gz · Last modified: 2018/11/28 14:12 by gcooper