Hi all,
I've been scripting now for coming up to a year and I am now managing several Mikrotik devices. To simplify management, I am re-writing scripts and improving them, with a view that only a handful of variables need updating at the top of the script for each location, and the rest can be left as is.
There are a few scenarios where I have to persistently store information in a Global Variable, like an interface IP address. The problem comes when I have several copies of the same script running simultaneously (E.G for several interfaces). The Global Variables then clash if they are not individually named manually.
Is there anyway I can have unique global variables per script?
Any ideas are appreciated.