How can I handle interactive CLI commands. I want a script that detects when a configuration change has been made, and then copies the running configuration to a TFTP server. This is what I have tried:
event manager applet Configured
event syslog pattern ".*%SYS-5-CONFIG_I.*"
action 10 cli command "enable"
action 20 cli command "copy run tftp"
action 30 gets response
action 40 puts "MyTFTPServer"
action 50 gets response
action 60 puts "MyRtr.run"
action 70 end
All that happens is:
No. Job Id Proc Status Time of Event Event Type Name
Yep, you got it. Just a hint, you don't need to be so complex with your patterns. All you need to do is match one bit of the prompt. So you could use "Address" and "Destination" as your prompt patterns.
Question We run asr9001 with XR 6.1.3, and we have a very long delay to
login w/ SSH 1 or 2 to the device compare to IOS device. After
investigation, the there is 1s delay between the client KEXDH_INIT and
the server (XR) KEXDH_REPLY. After debug ssh serv...
Introduction The purpose of this document is to demonstrate the Open
Shortest Path First (OSPF) behavior when the V-bit (Virtual-link bit) is
present in a non-backbone area. The V-bit is signaled in Type-1 LSA only
if the router is the endpoint of one or ...
Hi, I am seeing quite a few issues with patch install and wanted to
share my experience and workaround to this. Login to admin via CLI, then
access root with the “shell” command Issue “df –h” and you’ll probably
see the following directory full or nearly ...