Thanks a lot for the response, I'll look into the script you mentioned.
In terms of log sent to Nintendo, I'm 100% sure I've only been online with a clean system and never been online after my restore mistake, I'm hoping once the system wipe is done my system could safely go online.