Answer the question
In order to leave comments, you need to log in
Variables in MikroTik?
Hello. In the DHCP ALert script, I create a global variable :global var1;
and assign it the found MAC address :set var1 $"mac-address"
. Then I call the script that contains ( see below )
:global var1;
:global var2;
:set var2 ([/system ssh-exec address=адрес user=пользователь command="команда $var1" as-value]->"output");
. var2
remains empty. But if I create a global variable in the console :global var1
, assign it a MAC address ( absolutely the same ), then the variable var2
will contain the value returned by the SSH server. var1
contains the same value of the MAC address , and the same value of the variable is sent to the server. Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question