10-17-2023 08:19 AM
Using Putty or SecureCRT, I get an error when trying to paste in the following:
event manager applet bgp-neighbor-up
description Enable Loopback If BGP Drops
event syslog pattern "BGP-5-ADJCHANGE: neighbor.*Up" maxrun 1800
action 1.0 syslog msg “enable loopback interface”
action 1.5 cli command “enable”
Output:
r1(config)#event manager applet bgp-neighbor-up
r1(config-applet)#description Enable Loopback If BGP Drops
r1(config-applet)#$g pattern "BGP-5-ADJCHANGE: neighbor.*Up" maxrun 1800
r1(config-applet)#action 1.0 syslog msg b^@
r1(config-applet)#enable loopback interfaceb^@ ^
% Invalid input detected at '^' marker.
It works fine when manually typing in the config. Is it looking for an escape character or similar? Thanks!
10-17-2023 08:24 AM
event syslog pattern <<- use this
10-17-2023 08:29 AM
Thank you. The syslog pattern line takes just fine. It appears to be erroring on the " of action 1.0 syslog msg “enable loopback interface”
10-17-2023 08:34 AM
I see it and check what you meaning by enable Loopback interface ? can you more elaborate.
10-17-2023 08:37 AM
It's just a generic syslog message for my lab. It also errors at " when removing the syslog msg:
event manager applet bgp-neighbor-up
description Enable Loopback If BGP Drops
event syslog pattern "BGP-5-ADJCHANGE: neighbor.*Up" maxrun 1800
action 1.5 cli command “enable”
r1(config)#event manager applet bgp-neighbor-up
r1(config-applet)#description Enable Loopback If BGP Drops
r1(config-applet)#$g pattern "BGP-5-ADJCHANGE: neighbor.*Up" maxrun 1800
r1(config-applet)#action 1.5 cli command b^@
r1(config-applet)#enableb^@ ^
% Invalid input detected at '^' marker.
10-17-2023 09:05 AM - edited 10-17-2023 09:06 AM
this lab for you
check how I config BGP-6 to add loopback when BGP peer is UP
NOTE:- I miss add IP in command ip add 1.1.1.1 255.255.255.255
NOTE:- when you paste you need to remove the hostname in command
10-17-2023 09:24 AM
I figured it out. It's a weird formatting issue. Thank you for the help.
10-17-2023 09:31 AM
OMG
the issue with comma
glad issue is solved
MHM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide