02-17-2021 02:21 AM
Hello!
event manager applet test
event cli pattern "show vlan id 777" sync yes/sync no skip no/sync no skip yes
action 1.0 puts "vlan 777"
Always get the same result:
cisco-test#show vlan id 777
vlan 777
Why?
How does this relate to exit status?
Of course I read something, but I didn't understand much. For example this: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/eem/command/eem-cr-book/eem-cr-e1.html
02-17-2021 02:28 AM
What exactly your goal or trying to achieve here using EEM Script? - explain so we can assist better.
02-17-2021 05:16 AM
The main goal is to understand how Event Manager works.
Here it is not clear to me why nothing changes after changes in the event manager applet configuration.
I expect that sync yes will lead to the fact that I see first the output of the command "show vlan id 777" and then "vlan777".
If sync no + skip no, then I will first see "vlan 777", and then the output of the command to which the manager reacted.
And if sync no + sync yes, then I will only see "vlan 777" after entering the command.
But that doesn't happen.
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