We have following part in a TCL script that works great on IOS:
exec "write"
typeahead "y\n"
exec "reload in 5"
But this does not work in IOS-XE. Where i see the Problem. If I enter reload in 5 on IOS, the question for confirmation pops up immediately:
swTST02#reload in 5
Reload scheduled for 15:04:31 CEST Wed May 19 2021 (in 5 minutes) by admin on vty0 (172.16.1.35)
Proceed with reload? [confirm]
But with IOS-XE, it takes around 5 seconds to pop up
swTST03#reload in 5
Reload scheduled for 15:05:36 CEST Wed May 19 2021 (in 5 minutes) by admin on vty0 (172.16.1.35)
Reload reason: Reload CommandReload command is being issued on Active unit, this will reload the whole stack
Proceed with reload? [confirm]
My guess is, that the typahead is getting activated within 1 second of the reload in command, but the IOS-XE is not ready to deal with this. Is there another solution for this? Cisco should implement something like:
reload in 5 /noverify