Hi all,
I have the need to deploy temporary networks from time to time that start with the same config and get disposed when the network is not needed any more.
Here is what I do (completely with the API) when I need this temp-network:
This all works like a charm. But:
The device that was in the previous network doesn't come online until I do a factory reset on that device.
Is there a way to make it work that I don't need a factory reset in this workflow? I assume that this problem can be caused by the fact that the moment I delete the old network, the devices are already offline. This is something I can not control here.
Any Ideas?
how about removing the devices first from the old network and then add them to the new network?
1) get the orgnaization networks
2) remove device(s) from the network
3) create new network
4) add device to the new network
5) remove old network
6) configure all needed parameters
I'll give this a try but don't expect it to work as in the end, it will be the same. I'll report back when I tested it.
Does it definitely need a factory reset, or is cycling the port to the device (if it is an MR or something similar) also work?
If cycling the power is enough;
Is this device in a fixed location, like a lab? Can it be PoE powered, so you can cycle the power to it?
Otherwise, could it be plugged into a smart plug, and you use the API to trigger a power cycle?
Cycling the power was not enough. We had a couple of power cycles while testing.
The local status page states that it is connected to the internet but not to the cloud. After the factory reset they directly go online.
We've built a tool to migrate devices from one network to another while preserving their configs, and this bug has been a HUGE pain in the ass.
The workaround we're working with now (still under testing)
1) remove device from old network
2) reboot device (instead of reset) so it enters failsafe mode, and updates the local device settings
3) wait an hour for the device removal to propagate across the meraki cloud (only needed for cross-org transfers)
4) reclaim the device to new network
5) reboot again (optional)
So far this seems promising, but yeah.. its a pain