cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
842
Views
0
Helpful
1
Replies

IOS-XE TCL typeahead not working

mario.jost
Level 3
Level 3

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

 

1 Reply 1

tlovely
Level 1
Level 1

have you tried an after 10000 command?

exec "write"
typeahead "y\n"
after "10000" exec "reload in 5"

Should result in a 10 second pause