mikrotik-ops — Python-Based Operations Toolkit for MikroTik Fleets
Oveview
mikrotik-ops is a Python application I developed to streamline day-to-day operations across a fleet of MikroTik routers. It sits deliberately between Winbox, manual CLI work and full-scale configuration management tools like Ansible, focusing on fast execution, operational visibility, and low-friction automation.
The core idea is simple: MikroTik environments often need immediate, targeted actions, not full state reconciliation. mikrotik-ops is built to cover that gap.
Problem Statement
Managing multiple MikroTik devices presents a recurring set of operational challenges:
- Repetitive CLI tasks that don’t justify a full Ansible playbook
- Quick audits (system info, uptime, versions, VPN status) that still require logging into each device
- Mixed environments where RouterOS API access is unreliable or restricted
- Operational actions that must be executed now, not after writing inventory, roles, and idempotent logic
Ansible excels at configuration drift control and long-term state management. It is not optimized for interactive operations, fleet health checks, or ad-hoc administrative workflows—especially in MikroTik-heavy environments.
mikrotik-ops was built to solve exactly that.

What the Application Solves
mikrotik-ops provides a centralized operational control plane for MikroTik devices, allowing me to:
- Execute operational tasks consistently across many routers
- Reduce SSH/API context switching
- Standardize outputs for logging and auditing
- Perform safe, repeatable administrative actions without manual errors
It improves operational speed while keeping full transparency and control.
Key Features
Fleet-Aware Operations
- Inventory-driven router management via .env configuration
- Logical naming for devices (home, office, rack, access points, etc.)
- Easy expansion as the fleet grows
SSH-Centric Execution Model
- Tasks executed over SSH for maximum compatibility
- No dependency on RouterOS API stability
- Works across RouterOS versions and device types
Menu-Driven Interface
- Interactive CLI menu for human-friendly operations
- Clear separation between UI and execution logic
- Designed for operators, not just scripts
Operational Tasks
- System information and health checks
- RouterOS version inspection and update checks
- VPN / tunnel status visibility
- Interface and resource inspection
- Configuration backups
- User and SSH key management
- Time and NTP verification
Clean Output & Logging
- Structured, readable output instead of raw CLI dumps
- Designed to integrate with logs, reports, or monitoring workflows



Why This Does Not Replace Ansible
This project is intentionally not a configuration management tool.
Ansible remains the right choice for:
- Declarative configuration
- Idempotent state enforcement
- Large-scale provisioning
mikrotik-ops complements Ansible by covering:
- Operational workflows
- Ad-hoc tasks
- Fast diagnostics
- Human-in-the-loop administration
In practice, Ansible defines how things should be.
mikrotik-ops helps manage what’s happening right now.
Technical Highlights
- Python-based, modular task execution
- Clear separation of concerns (UI, inventory, execution, tasks)
- Environment-based configuration for credentials and hosts
- Designed to be extended with new tasks without touching core logic
- Built with real operational constraints, not lab assumptions


Real-World Value
This tool is actively used in my home-lab and multi-site MikroTik environment to:
- Reduce operational overhead
- Eliminate repetitive manual work
- Improve response time during incidents
- Keep fleet visibility high without overengineering
It reflects how I approach DevOps and infrastructure engineering:
right tool, right scope, minimal friction, maximum leverage.