Answer the question
In order to leave comments, you need to log in
How did you start learning Mikrotik scripts?
I like the equipment, but I would like to delve into the scripts (at the moment there are no goals, just for a good understanding).
Actually, the question is where / how is it better to start acquaintance with scripts, start with wiki.mikrotik.com, or maybe there is a resource site dedicated to this topic?
Interested in personal experience.
Answer the question
In order to leave comments, you need to log in
The most efficient way is to find other people's scripts and parse them line by line. Of course, before that, re-read wiki/Manual:Scripting 2-3 times .
I wrote a script for FreeDNS.afraid.org with far from being a programmer . It took me several days. Lots of hours. People with a programmer mindset would do the same thing in 20-30 minutes.
Here are my notes.
For debugging:
put - displays the value of the variable,
$ - means that this is a variable,
gvar - the name of the variable. (ANY)
find out the IP of the domain
get the current IP of the WAN interface
deleting files by part of the file name
Links :
Simple examples from RouterOS developers
Scripts added by users
Writing scripts for Mikrotik RouterOS is just
MikroTik - automatically turn off and on WiFi ...
MikroTik - Automatically change the MAC address to a random one
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question