
© 2013 Cisco and/or its affiliates. All rights reserved.
BRKCRS-3090
Cisco Public
Reload Reason
83
event manager applet GetReloadReason
event cli pattern "^reload" sync yes
action 1.0 comment Check to see if the Reason command line option was used
action 1.2 regexp "reason" "$_cli_msg"
action 2.0 if $_regexp_result ne 1
action 2.2 puts "Please enter reason for reload"
action 2.4 gets response
action 2.6 syslog priority emergencies msg "Reload initiatated - reason $response"
action 2.8 cli command "enable"
action 3.0 cli command "reload reason $response"
action 3.2 exit 0
action 4.0 else
action 4.2 comment A reason was included on command line continue
action 4.4 exit 1
action 5.0 end
end
Kommentare zu diesen Handbüchern