Community discussions

 
jslav
just joined
Topic Author
Posts: 1
Joined: Sun Nov 04, 2018 11:26 pm

Script works differently if scheduled.

Sun Nov 04, 2018 11:43 pm

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?
 
User avatar
cdiedrich
Forum Veteran
Forum Veteran
Posts: 905
Joined: Thu Feb 13, 2014 2:03 pm
Location: Basel, Switzerland // Bremen, Germany
Contact:

Re: Script works differently if scheduled.

Mon Nov 05, 2018 2:05 pm

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...

-Chris
Christopher Diedrich
MTCNA, MTCUME, MTCWE
Basel, Switzerland
Bremen, Germany

There are 10 types of people: Those who understand binary and those who don't.
There are two types of people: Those who can extrapolate from incomplete data

Who is online

Users browsing this forum: MSN [Bot] and 6 guests