cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2512
Views
0
Helpful
2
Replies

Whether to support remote Telnet operation of EEM

Ru Song Fu
Level 1
Level 1

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"

1 Accepted Solution

Accepted Solutions

Joe Clarke
Cisco Employee
Cisco Employee

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

Joe Clarke
Cisco Employee
Cisco Employee

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 "#"

...

Thank you answer!

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: