We’ve all had those oh-shit moments when changing an ip, duplex or making other changes and losing connection with a device that will end up costing someone a trip on site and possible downtime.
The best way I’ve found is to cover yourself with this command:
“reload in 5”
If everything goes according to plan, cancel the reload and write mem, but if not, you’ve minimized downtime.