11-16-2012 09:24 PM
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"
Solved! Go to Solution.
11-17-2012 08:24 AM
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 "#"
...
11-17-2012 08:24 AM
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 "#"
...
11-17-2012 10:13 AM
Thank you answer!
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: