A RouterOS script that checks daily for available RouterOS package updates and sends an email notification if a new version is found.
This script helps administrators stay informed about new RouterOS versions to keep devices up to date and secure.
- RouterOS with configured mail sending (SMTP).
- Availability of auxiliary script SendEmailFunction for sending emails.
- Script access policies:
read,write,policy,test. - Ensure your SMTP server allows sending emails from MikroTik.
/import file-name=Script_CheckUpdate.rscor copy the script contents into a new script via Winbox/WebFig.
Replace the recipient email address in the script
:local SendTo "YOUR_NAME@DOMAIN.com" with your real email address.
Import the schedule from Schedule_CheckUpdate.rsc or create the scheduler manually as shown below.
The scheduler runs the CheckUpdate script once daily at a set time:
/system scheduler add name=CheckUpdate interval=1d start-date=2024-08-10 start-time=15:00:00 on-event="/system script run CheckUpdate" comment="Runs CheckUpdate script once daily" policy=read,write,policy,testSubject: Mikrotik UPDATE: MyRouterName [01/07/2025 15:00:00]
A new RouterOS version 7.10 is available!
Installed version: 7.9
Channel: stable
Changelogs: https://mikrotik.com/download/changelogs
This is an automated message.
Run the script manually in the terminal:
/system script run CheckUpdateCheck logs for script events and notifications:
/log print where message~"CheckUpdate"- Limit access to the script and scheduler by assigning proper user rights and policies.
- Use a dedicated and secure mailbox for receiving notifications.
If you have questions, suggestions or bugs, create an issue in the repository: GitHub Profile
Author: Hackitect7
Date: 2025