IOT on cloned PI
Is there a way to script the setup of the IOT agent on a cloned machine? for example...The script would search for the teamviewer ID of the original machine (in this case a raspberry pi 3) if the old ID is found, the script would insert the necessary info to connect the clone to a teamviewer account automatically with a new teamviewer ID
Is this possible? Are there files that can be changed for an unattended setup of the IOT agent? We have hundreds of PIs about to go to the field and this would be HUGELY helpful. I'm solid on bash scripts I just need to know the files to mod.