I’m using RouterOS 6.27, and I’m running into a bit of a problem.
I have a .rsc file that creates a very large script using:
/system script
add name=LARGE_SCRIPT policy=\
ftp,reboot,read,write,policy,test,password,sniff,sensitive source="
VERY LARGE SCRIPT
"
The script is close to 1500 lines long.
Whenever I import it with /import FILE.rsc, it struggles trying to create the script and errors out with:
action timed out - try again, if error continues contact MikroTik support and send a supout file (13)
I tried randomly deleting parts of the script, and at a certain point, the script imports fine, but if I add an extra line that says
/put "hi"
it fails to import with the above error. This occurs when my script is exactly 1475 lines long - if it’s 1475 lines, it imports fine - if it’s 1476, it fails.
At first I figured there must be some undocumented 1475 line limit for a single script, but I tried making a script that just writes:
/put "hi"
2000 times, and it imported fine. It seems to be more of an issue of how long my script takes to import than how many lines it has. My script has a lot of logic that probably takes RouterOS a while to do syntax checking on, whereas 2000 “/put “hi”” lines are relatively easy to do syntax checking on.
Can anyone confirm that this is indeed some sort of limitation? Can anything be done about it?