PASSING SCHEDULE NAME TO SCRIPT

I have a schedule and it’s name is a MAC address. I have a firewall filter rule that blocks that same source MAC address. I am about to write a script to find and delete the firewall filter rule and then delete the schedule. This process may be repeated with another schedule and filter rule block and it’s name may be a different MAC address. I already have a script that creates the firewall filter rule and the schedule.

How do I pass the schedule name (mac address) to the second script, which I am trying to create?

The mac address could be passed to the schedule’s event area when the schedule is created by a script, if this can be used.

Thanks
Bob

To delete a schedule based on the name, do this:
/system scheduler remove [find name=“00:0C:42:12:34:56”]

Thanks for the reply. I will give this a try when I get back to working on that.

So, I could put that command in a script or put it in the event area of a schedule?

Thanks again
Bob

Yep, either one will work.

Thanks again!
Bob