In updating a large batch of MikroTik routerboards deployed on private IP space, I would like to automate the update/upgrade process using the API. So far I can do everything EXCEPT obtain the "code", a 128-bit hex string that gets sent along with the old and new software IDs and the old base-64-encoded license key to the MikroTik web site, which then passes back the new, updated license key (also base-64-encoded).
Any idea what information is encoded in the "code" parameter sent to mikrotik.com and how it's encoded? Perhaps the routerboard serial number? Hardware MAC(s)? Maybe the current license level?
Does mikrotik.com perhaps make available a web form wherein someone can enter an existing license and device parameters to obtain the upgraded key? (Instead of doing the web submission that WinBox does passing the two software IDs--old and new--along with the code and old key.)
Thanks in advance! This will make upgrading hundreds of devices a breeze.
Aaron out.