cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
572
Views
3
Helpful
7
Replies

EEM- putty pasting issue

jdub123
Level 1
Level 1

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!

7 Replies 7

event syslog pattern <<- use this 

jdub123
Level 1
Level 1

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”

I see it and check what you meaning by enable Loopback interface ? can you more elaborate.

jdub123
Level 1
Level 1

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.

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  

Screenshot (1072).png

jdub123
Level 1
Level 1

I figured it out. It's a weird formatting issue. Thank you for the help.

jdub123_0-1697559829333.png

 

OMG
the issue with comma 
glad issue is solved 

MHM

Review Cisco Networking for a $25 gift card