So I tried writing a script that if it sees “kernel failure in previous boot” or similar error messages in the boot log it automatically generates a supout.rif and emails it to me so that I can submit it to Mikrotik.
Unfortunately the /tool e-mail refuses to send .rif files when it’s called in a script.
If I run the command from the script in the terminal the e-mail comes through without any issues.
I did some more digging. If I rename the .rif file to something else, the script can send it without issues as well. (There’s an FTP trick to rename a file).
So I’ve proven that it’s not
- the command that’s wrong
- the file size that’s too big
The only conclusion is that Mikrotik has intentionally disabled this functionality. I find that quite unfortunate as one would think that Mikrotik would want such .rif files so that the issues can be resolved and so that ROS can be more stable…