Skip to main content

9 docs tagged with "scripting"

View all tags

Console

The console provides text-based access to MikroTik RouterOS configuration and management features using text terminals, either remotely using a serial port, telnet, SSH, or console screen within WinBox, or directly using a monitor and keyboard. It covers command execution in hierarchical menu levels, login options, terminal customization, banner messages, quick typing, safe mode, and scripting.

Developer Guides

Developer guides provide documentation for automating and integrating with RouterOS through APIs, scripting, and REST interfaces to build tools and applications that interact with the router.

Dual SIM Application

The page describes how to configure and automate SIM card switching in MikroTik RouterOS for dual SIM LTE devices, including initial setup steps, roaming status checks, and sample scripts to switch between home/roaming networks based on LTE connection state.

GPS-tracking using HTTP POST

This page explains how to set up a vehicle tracking system using MikroTik RouterOS GPS functionality and HTTP POST to send coordinates to a web server, which stores them in an SQLite3 database for visualization with Leaflet.js.

Kaa IoT setup

This page introduces Kaa IoT setup for MikroTik RouterOS, covering MQTT and HTTP protocol support, system resource monitoring via scripting, and Kaa IoT portal configuration steps including application/device creation and endpoint token management. It also outlines RouterOS prerequisites like internet access and optional iot package installation for MQTT use.

Netwatch

Netwatch monitors network hosts using multiple probe types including ICMP, TCP, HTTP, DNS, and simple pings. It allows custom scripts for state changes and supports VRFs and link-local IPv6 addresses, with configurable thresholds and interval settings.

Scripting

RouterOS scripting enables automation through user-defined scripts triggered by events like system scheduling or traffic monitoring. Scripts use a command-line syntax with optional prefixes, named parameters, and physical line formatting, supporting both single-line and multi-line execution.

Scripting examples

This page provides scripting examples for MikroTik RouterOS, demonstrating how to create and modify files, append text, check IP changes, strip netmasks, and resolve hostnames using RouterOS scripting commands.

Scripting Tips and Tricks

This page provides scripting tips for MikroTik RouterOS, emphasizing the importance of using internal IDs instead of literal values to avoid errors when objects are renumbered. It explains how to correctly reference interface routes, IP addresses, and other network elements through commands like `find` and type conversion.