Netwatch and Scripts
Posted: Mon Nov 05, 2018 12:53 pm
Good afternoon, there is a Mikrotik RB750G r2 with the firmware version 6.43.4, there was a version 6.32 earlier and on this version scripts were written.
At present on a new firmware a problem with start of scripts by means of Netwatch which need more permissions than read, write,test,reboot,namely "policy" to have access to global variables, installation of a tick "don't Request Permission" does not help. I tried to solve the problem using an intermediate script, but also failed. Tell me how to solve the problem. The example script is simple and for test purposes.
The value of a global variable:
The Configuration Of The Netwatch:
The content of the script:
At present on a new firmware a problem with start of scripts by means of Netwatch which need more permissions than read, write,test,reboot,namely "policy" to have access to global variables, installation of a tick "don't Request Permission" does not help. I tried to solve the problem using an intermediate script, but also failed. Tell me how to solve the problem. The example script is simple and for test purposes.
The value of a global variable:
Code: Select all
system scrip environment print
# NAME VALUE
3 IspReserveIF RT-INET-Reserve
Code: Select all
/tool netwatch
add host=8.8.8.8 up-script="/system script run script1"
Code: Select all
:global IspReserveIF
/log warning $IspReserveIF