M
M
Maksim2015-12-15 20:24:27
Mikrotik
Maksim, 2015-12-15 20:24:27

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

2 answer(s)
L
LESHIY_ODESSA, 2015-12-16
@chumayu

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

D
Dimonchik, 2015-12-15
@dimonchik2013

the resource is Mikrotik itself, with moderated posts on the forum
, and there are quite a few author's articles on sites about networks

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question