...
- Power on replacement-switch in lab-rack or similar with console access
- Connect via console and do "zerotouch cancel" if needed
- Copy configuration from old switch from NMS WebUI Devices → Click on device → Actions menu → Copy generated config
- Paste config to replacement switch, if it already has some previous config do configure session → rollback clean-config before pasting new config (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