cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1437
Views
0
Helpful
16
Replies

Cannot allow you to exit, reload is scheduled (TCL Sript)

silviorodrigues
Level 1
Level 1
Dears I trie run this script below, but is not work !
When I do reload in xx and trie exit from router, ok it says: "Cannot allow you to exit, reload is scheduled",
then a do reload cancel, but it contuinues saying that "Cannot allow you to exit, reload is scheduled" and I cant´t logout from router!

My equipment is a Router Cisco 2801 with IOS 12.4.24!

Please, help-me solve this!!!

===============This is the Scritp====================

event manager applet CheckScheduledReloadOnExit
event cli pattern "^(ex|logo)" mode "exec" enter maxrun 1
action 1.0 cli command "show reload"
action 1.1 string first "No reload is scheduled" "$_cli_result"
action 2.0 if $_string_result eq -1
action 2.1  puts "Cannot allow you to exit, reload is scheduled"
action 2.2 else
action 2.3  set _exit_status 1
action 2.9 end
16 Replies 16

Dear I did the my original script like follow below:

event manager applet CheckScheduledReloadOnExit
event cli pattern "^(ex|logo)" mode "exec" enter maxrun 1
action 1.0 cli command "show reload"
action 1.1 string first "No reload is scheduled" "$_cli_result"
action 2.0 if $_string_result eq -1
action 2.1  puts "Cannot allow you to exit, reload is scheduled"
action 2.2 else
action 2.3  set _exit_status 1
action 2.9 end

On 3750 and have success, my problem is with a router 2801. Now I beleave its becaube my IOS!

My ios is:  c2800nm-spservicesk9-mz.124-24.T

You are correct.  I attempted this config on 12.4(24)T5 code and it appears that the 'action labelname string first' command is not supported.

Review Cisco Networking for a $25 gift card