06-27-2011 05:51 AM - edited 03-07-2019 12:59 AM
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
Solved! Go to Solution.
07-01-2011 12:01 PM
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
07-06-2011 12:34 PM
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.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide