![]() ![]() In order to run updates periodically, create one scheduler entry using System -> Scheduler window. Give them names of script files without extensions: Update it it with your email:Īdd scripts using System -> Scripts window. Script system-email.rsc contains email of updates email recipient. Maybe your "wait for internet connection" logic will be different. Instead of pppoe-client there could be ppp-client, ovpn-client, or else. interface pppoe-client monitor $connection If your WAN is not PPPoE, set your type of connection at line 19: ![]() Connection name is set in local variable which you need to update with your connection name: ![]() Current version of the script checks PPPoE connection state. ![]() The scripts waits when Internet connection established and then continues update. That's why WAN status check exists in system-upgrade.rsc script. Email notification requires internet connection to send notifications. Update process requires reboots after RouterOS and firmware updates. Or use terminal and /tool email commands. You can configure it once using Email Settings of WinBox or WebFig by opening: After rebooted, send email notification about update completionĮmail sending requires valid POP server configuration.Initialize firmware upgrade (same as System -> Routerboard and Upgrade).On start check if RouterOS updated, and notify this by email.If updates available, send start update notification email.Check if package updates available (same as System -> Packages and Check For Updates).About all updates and failures email notifications are sent. This repository contains scripts which allow MikroTik RouterOS devices to have its OS, packages, and firmware always up to date. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |