There is not API to convert a Catalyst Switch in Catalyst persona, to Meraki Persona. You'll probably need to follow the guide as described in https://documentation.meraki.com/MS/Cloud-Native_IOS_XE/Migration_from_CLI-managed_Catalyst_Switches...
You might be able to write a python script that will log into your CLI managed switch, and fire the conversion commands, while grabbing the Meraki Cloud ID (serial number). Just note, that once the switch has been converted, you will not be able to receive output on the console port. So if you miss the Cloud ID when converting, you may need to open a Support Case, for them to retrieve the Cloud ID (if they are able to).
LinkedIn :::
https://blog.rhbirkelund.dk/Like what you see? - Give a Kudo ## Did it answer your question? - Mark it as a Solution
🙂All code examples are provided as is. Responsibility for Code execution lies solely your own.