Not sure if any one has done this but I was just thinking of applications for using the comment fields as variables. I am sure some one else has already thought of this but I thought it would be a really great way to hold a few variables.
My question is; how big can a comment field be?
Application would be that of having a CPE scan as a workstation and dump its scan to a comment field. This would make it searchable via a get I am not sure how to do this from a file that is why I would use a comment field. This could then scan for a stronger allowed connection or report info to a WISP about what a CPE sees remotely.
# create the file
/file print file=myFile
# set file contents
/file set myFile.txt contents="some text";
# get file contents, save as variable
:local myVar [/file get myFile.txt contents]
Curious what kind of board were you using? I didn.t think about CPU use but yeah if it is a MT 1XX series board its CPU would be shot, for a 4XX series it should be ok. Which one were you testing on. I will be only using this on a 4XX series and greater; even though I do have a ton of RB 133C and 112’s on my network
if you use excessively large comments you can run into trouble when you use CLI or winbox that have to show that comment. If you do not use some menu or work around to not to use that, you can “comment” a lot.
for example, create empty file and add a “comment” to it. Just save configuration, if comment is very large, you can run into problems and will have to reset configuration to clear the comment field. As temporary storage that is quite usable - read something, “comment” use the data for a while then remove.
edit: in the end i ended up with API tool to do/store everything off-site with small sqlite DB as backend. of course i am not connecting to router via wireless and not disconnecting the link