0% found this document useful (0 votes)
15 views1 page

Reboot Scheduler Script Overview

This document configures a scheduler on the routerboard to reboot the system every month and run a firmware upgrade script if the comment is set to "upgrade_firmware", which triggers the upgrade process and then reboots the system after upgrading is complete.

Uploaded by

Reinor Junior
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views1 page

Reboot Scheduler Script Overview

This document configures a scheduler on the routerboard to reboot the system every month and run a firmware upgrade script if the comment is set to "upgrade_firmware", which triggers the upgrade process and then reboots the system after upgrading is complete.

Uploaded by

Reinor Junior
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

/system scheduler

add disabled=no interval=1m name=reboot on-event="global Action [/system scheduler


get reboot comment]\r\
\n\r\
\nif ( \$Action = \"remove\") do={/system scheduler remove reboot}\r\
\n\r\
\nif ( \$Action = \"upgrade_firmware\") do={\r\
\nput \"upgrade firmware\"\r\
\n/system scheduler set reboot comment=\"remove\"\r\
\n/system routerboard upgrade\r\
\n/system reboot\r\
\n\r\
\n}\r\
\n\r\
\n/system scheduler set reboot comment=\"upgrade_firmware\" \r\
\n/system reboot" \
start-date=jan/8/2020 start-time=06:00:00

You might also like