Page 1 of 1

Script works differently if scheduled.

Posted: Sun Nov 04, 2018 11:43 pm
by jslav
I have simple script which enables firewall rules:
ip firewall filter enable numbers=2,3
This script works fine if to run it from WebFig interface and from terminal CLI.
However, it enables only one of rules ( the first one in list) if it is launched by scheduler.

Does anybody have similar expeerience?
Is this the bug or feature?
Is this issue logged to RouterOS bug treacking system?

Re: Script works differently if scheduled.

Posted: Mon Nov 05, 2018 2:05 pm
by cdiedrich
AFAIR, the numbers only reference a previous print command - and are pretty rigid, though. Imagine adding new rules to your f/w or just rearranging them without updating your script.
I'd rather use comments and match those in your scripts...