Refer to the exhibit. An engineer constructs an EEM applet to prevent anyone from entering configuration mode on a switch. Which snippet is required to complete the EEM applet?
Refer to the exhibit. An engineer constructs an EEM applet to prevent anyone from entering configuration mode on a switch. Which snippet is required to complete the EEM applet?
To prevent anyone from accessing the configuration mode on a switch using an EEM applet, you need to ensure the applet runs before the CLI command is executed and skips the actual execution of that CLI command. Using 'sync no' tells the applet to run before the CLI command, while 'skip yes' ensures that the 'configure terminal' command is not executed. Therefore, the correct snippet to complete the EEM applet is 'sync no skip yes'.
Provided answer is correct. The "sync no" option tells the script to run before the CLI command is executed. This means that this applet is executed before the actual "configure terminal" 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 "configure terminal" CLI command is skipped completely and is replaced by the actions of the script.
https://notes.networklessons.com/eem-sync-and-skip-keywords
I don't even have the skip option when using sync yes: R2(config)#event manager applet Config R2(config-applet)#event cli pattern "configure terminal" sync yes ? default Default action timer maxrun Maximum runtime of applet occurs The number of occurrences before raising the event period Number of occurrences must occur within this time period <cr>
B is correct. sync no = run the EEM applet first (asynchronously i.e. ahead of the CLI command) skip yes = skip (don't run) the CLI command after the EEM applet is done "The sync no option tells the script to run before the CLI command is executed. This means that this applet is executed before the actual 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 CLI command is skipped completely and is replaced by the actions of the script." https://notes.networklessons.com/eem-sync-and-skip-keywords
B is correct
B is correct
C. seems better
To prevent anyone from entering configuration mode on a switch using the provided EEM applet, you would want to ensure that the applet does not synchronize with other applets (sync no) and that it does not skip subsequent statements if the current one fails (skip no). Therefore, the correct option for the snippet to complete the EEM applet is: C. sync no skip no
Going with B