
Script
RouterOS script, scheduler, automation: all dojo articles on this topic.
Image generated locally with ComfyUI from randomly selected elements. How the images are created

Dark web and RouterOS: anatomy of a compromised router (and the script that unmasks it)
We take a lab router, compromise it with RouterOS commands alone — no malware — and make it confess with a read-only script. Plus the defence that writes to you: the configuration diff narrated by an AI, by email.
LabNova Messages (M2): The Nervous System of RouterOS
We decoded the M2 (Nova Message) protocol, the proprietary IPC system used by the 80 RouterOS processes to communicate with each other. It is a binary key-value format with an M2 magic number, 6 data types, and a SYS namespace for routing. The loader process acts as the central hub: it receives all messages and dispatches them to the destination. M2 is not just IPC: it is also the on-disk serialization format — the user database, backups, and configurations are all M2 messages. We wrote a Python parser and verified that M2 is active on RouterOS 7.24.5 via the /jsproxy handshake of WebFig.
DojoMake your MikroTik play: scripting, :beep and the Halloween Toccata
A note is a frequency, a melody is a loop: we learn a piece of RouterOS scripting by making the router play the opening of Bach's Toccata and Fugue for Halloween. How to tell if yours has a buzzer, the note map, a melody player with a note-name resolver and musical alarms with Netwatch. Ready-to-paste script at the end.
Knowledge baseScripting on MikroTik: What It Is and Basic Commands
RouterOS scripting is the automated console: the same commands, queued up. The basics — commands and menus, variables, :if, :for and :foreach, and object selection with [find] — with minimal examples, and a reference to the howto section for practical uses.
DojoAlternatives to IP Cloud: dynamic DNS on your own domain (DuckDNS or Cloudflare)
IP Cloud gives you a handy name, but it's your serial number inside a MikroTik domain: it reveals you're a MikroTik and which model. Here's how to have a dynamic name of your own, with DuckDNS in five minutes or on your own domain with Cloudflare. Ready, lab-tested RouterOS scripts.
DojoNetwatch on MikroTik: alert me on Telegram when a device goes down
Netwatch is RouterOS's sentry: it knocks on an address and, when it stops answering or comes back, it runs a script. We use it to watch a camera and the internet line, with the alerts on Telegram, and we go over the thresholds and the behavior after a reboot that the manuals don't mention.
DojoConnect MikroTik to Telegram: router alerts on your phone
A router that messages you on Telegram when something happens is worth more than ten graphs you look at the next day. In seven steps we create the bot, find the chat_id, and write a reusable telegram script, which the other Dojo howtos then use to send alerts: Netwatch, reboots, rogue DHCP.
DojoSend email from MikroTik with Gmail: SMTP and app passwords
A MikroTik can send email (alerts, backups, reports) using a Gmail account as the SMTP server: smtp.gmail.com, port 587, STARTTLS. The password, though, isn't the account one: you need an app password, a 16-character password generated by Google, valid only for sending and revocable at any time. In RouterOS 7 the configuration lives in /tool e-mail.
DojoWireless scan on a remote MikroTik without losing the result
A frequency scan stops the radio for a few seconds: if you reach the remote router through that very wireless link, you lose the connection and the result. The fix is to run the scan in the background on the router itself, with the result saved to a file you read when the link comes back up. In RouterOS 7 you do it with :execute and the file= parameter, which works with both the wifi package and wireless.
DojoMikroTik DHCP server: run a script on every lease
The RouterOS DHCP server can run a script every time it hands out or frees an address: that's the lease-script. Inside the script you already have variables like $leaseBound, $leaseActIP and $leaseActMAC, which let you log new devices, send an email alert, or add the client to an address list with an expiry.