cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

Cisco Community Designated VIP Class of 2020

1327
Views
0
Helpful
2
Replies
Highlighted
Beginner

Whether to support remote Telnet operation of EEM

Hi guys:

This script can't work,I host can nelnet remote router to shutdown interaface When happens syslog access-list match.Please support.

event manager applet remote

event syslog pattern "list 100 .*11.1.1.1"

action 1.0 cli command "en"

action 2.0 cli command "telnet 10.1.1.2" pa "password"

action 3.0 cli command "cisco"

action 4.0 cli command "enable"

action 5.0 cli command "cisco"

action 6.0 cli command "confi t"

action 7.0 cli command "int g0/1"

action 8.0 cli command "sh"

action 9.0 cli command "end"

Everyone's tags (2)
1 ACCEPTED SOLUTION

Accepted Solutions
Hall of Fame Cisco Employee

Whether to support remote Telnet operation of EEM

You need to keep using the pattern keyword until you're done interacting with the remote device.  For example:

action 3.0 cli command "cisco" pattern ">"

action 4.0 cli command "enable" pattern "Password:"

action 5.0 cli command "cisco" pattern "#"

...

View solution in original post

2 REPLIES 2
Hall of Fame Cisco Employee

Whether to support remote Telnet operation of EEM

You need to keep using the pattern keyword until you're done interacting with the remote device.  For example:

action 3.0 cli command "cisco" pattern ">"

action 4.0 cli command "enable" pattern "Password:"

action 5.0 cli command "cisco" pattern "#"

...

View solution in original post

Beginner

Whether to support remote Telnet operation of EEM

Thank you answer!

CreatePlease to create content
Content for Community-Ad
July's Community Spotlight Awards