Skip to content

About the MikroTik Scripting Book

Bookcover

In 2022 I had to learn how to create and support a number of scripts for MikroTik routers.

I found that although the information I needed was available from a number of sources, it was time consuming to find and to learn everything I needed. Some information I found was sparse and challenging to understand. There were many examples of MikroTik scripts available via search engines and within forums, but they varied in terms of their quality and whether they had supporting explanations.

Once I'd figured out how to create MikroTik scripts, I decided it would be useful to put all of the information I'd learned into a book. "Mikrotik Scripting" is the book I created to provide a single resource to help others get started with creating their own scripts for MikroTik devices.

Buy

Here is an extract from the book's introduction:

In this book, we'll look at how you can use the power of MikroTik's RouterOS built-in scripting language to extend the functionality and ease the administration of your MikroTik devices. We'll look at how we can use scripting to:

  • Automate repetitive configuration tasks
  • Execute administrative tasks at timed intervals
  • Create new functionality customised for your environment
  • Interrogate and log performance and status data

We'll start with the basics of scripting and progress through an extensive range of topics that will allow us to build, debug and run scripts on our MikroTik device. We'll explore questions such as:

  • What is scripting, and how can it help me?
  • How do I create and run scripts on a MikroTik device?
  • What script creation workflow should I use?
  • How can I debug my scripts?
  • What commands and syntax can I use to create scripts?
  • What other resources are available to help me with my scripts?

As we move through each topic, we'll create a series of scripts that increase in sophistication to reflect your growing scripting knowledge as you move through this book. All scripts in this book are available on GitHub. You'll be able to download a copy of each script and run it for yourself to see first-hand how it works. Creating scripts involves authoring small chunks of code using the MikroTik scripting language. Although this book isn't intended to be a guide to teach you how to become a software developer, I'll try to point out some of the basic concepts you may need if you're not familiar with developing code. I won't be able to turn you into a full-blown software developer, but we'll look at the coding basics required to create your own scripts.

Find out how to get your copy of the book: Buy here