EEM sync and skip keywords
The following describes the use of the
skip keywords in use with Cisco's EEM
skip keywords are part of the
event cli command.
sync yes keywords will cause the EEM script and the CLI command to be run simultaneously. In the event that you use this, the
skip keyword is not used.
sync no keywords will cause the EEM script and the CLI command to be run sequentially, the script first, and then the CLI command. When this is used, you must then specify the
skip keyword as well.
If you use
skip yes, then the CLI command is skipped completely and is not run. If you choose
skip no, the CLI command is run right after the EEM script.
event manager applet NoReload event cli pattern "reload" sync no skip yes action 1.0 syslog priority errors msg "Cannot reload this router"
sync no option tells the script to run before the CLI command is executed. This means that this applet is executed before the actual
reload CLI command is executed. This gives you the opportunity to choose what to do after the applet is run. Since
skip yes is indicated, the
reload CLI command is skipped completely and is replaced by the actions of the script.