At the moment I use two startup scripts to define two key arrays with the following structure
username -> IP address and
username -> email address
Now my need expands and I want to create array/table/structure like this:
username -> ip addres, email addres, status, last status, something else, something else .
I've been reading around and I need some directions:
1. Is using 2D array the best way of storing/manipulating data in Microtik at the moment? Should/Can I use files or something else?
2. If using arrays is the case, in order for me to access the status of a specific username is there a way (I couldn't find it) to create a key array of arrays so that I can use the username as a key and then access the ip address, email, status, etc... with their column numbers? What is the most elegant way, cause using foreach and then searching feels too primitive?
Any other recommendations and best practices will be highly appreciated!