...
- Power on replacement-switch in lab-rack or similar with console access
- Connect via console and do "zerotouch cancel"
- Copy configuration from old switch from NMS WebUI Devices → Click on device → Actions menu → Copy generated config
- Paste config to replacement switch (paste with delay between lines or paste in chunks if configuration is not applied correctly)
- wr config
- Physically replace switch
- Sync device from NMS WebUI
- Update facts from NMS WebUI, update serial in NI etc