cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
387
Views
0
Helpful
1
Replies

Simple EEM script

Drew Browning
Level 1
Level 1

I am trying to create a simple manual EEM script so when you login to a switch and run "event manager run tshoot" it will run the follow EEM script and show the interfaces in an error disabled script.  The switch takes the configuration, but when I run the script it never disables anything.  Any thought?

event manager applet tshoot
event none
action 1.0 cli command "enable"
action 2.0 cli command "show interface status | in err"

Thanks

1 Reply 1

dmuinoorallo
Level 1
Level 1

You can try this:

event manager applet tshoot
 event cli pattern "show interface status" sync yes
 action 111 cli command "enable"
 action 112 cli command "show interface status | in error"
 action 113 puts "$_cli_result"
 action 114 set _exit_status "0"


I hope it will be working fine

Review Cisco Networking products for a $25 gift card