New to EEM, i wanna soft reset BGP when a prefix list is applied

Hello,
This is my script:
event manager applet SOFTRESETBGP_IN
 event cli pattern "neighbor 10.0.0.2 prefix-list.* in" sync no skip no period 1
 action 1.0 cli command "do clear ip bgp 10.0.0.2 soft in"
 action 2.0 syslog msg "BGP PEERS SOFT RESETED IN"
event manager applet SOFTRESETBGP_OUT
 event cli pattern "neighbor 10.0.0.2 prefix-list.* out" sync no skip no period 1
 action 1.0 cli command "do clear ip bgp 10.0.0.2 soft out"
 action 2.0 syslog msg "BGP PEERS SOFT RESETED OUT"
When I issue the "neighbor 10.0.0.2 prefix-list A in" command it displays the pre-defined syslog msg, but the peer is not reseted.
Test:
R1(config-router)#do sh ip bgp
BGP table version is 7, local router ID is 10.0.0.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
              x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
     Network          Next Hop            Metric LocPrf Weight Path
 *>i 2.2.2.2/32       10.0.0.2                 0    100      0 i
 *>i 22.22.22.22/32   10.0.0.2                 0    100      0 i
R1(config-router)#neighbor 10.0.0.2 prefix-list A in
R1(config-router)#
*Jan 10 13:58:57.663: %HA_EM-6-LOG: SOFTRESETBGP_IN: BGP PEERS SOFT RESETED IN
R1(config-router)#do sh ip bgp
BGP table version is 7, local router ID is 10.0.0.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
              x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
     Network          Next Hop            Metric LocPrf Weight Path
 *>i 2.2.2.2/32       10.0.0.2                 0    100      0 i
 *>i 22.22.22.22/32   10.0.0.2                 0    100      0 i
R1(config-router)#
When I do manually clear the peer, the policy applies:
R1(config)#do clear ip bgp 10.0.0.2 soft in
R1(config)#do sh ip bgp
BGP table version is 8, local router ID is 10.0.0.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
              x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
     Network          Next Hop            Metric LocPrf Weight Path
 *>i 2.2.2.2/32       10.0.0.2                 0    100      0 i
I have also tried to clear both direction without ".*"
event manager applet SOFTRESETBGP
 event cli pattern "neighbor 10.0.0.2 prefix-list" sync no skip no period 1
 action 1.0 cli command "do clear ip bgp 10.0.0.2 soft"
 action 2.0 syslog msg "BGP PEERS SOFT RESETED"
result is the same...

skip no means: execute the command (you can skip it)
sync no means: you have to execute the CLI command, then the EEM script runs
example to skip: 
R1#sh running | b event
event manager applet OSPF
 event cli pattern "clear ip ospf process" sync no skip yes period 1
end
R1#clear ip ospf process
R1#
without "skip"
R1#sh running | b event
R1#clear ip ospf process
Reset ALL OSPF processes? [no]: y
R1#

Similar Messages

  • Palm TX Performs a soft reset automatically when I click on an application!!

    I have Epocrates software downloaded to my TX, and each time i try to access it from my applications menu it performs a soft reset. The entire palm turns off and restarts. This is a must have software for me because I'm in grad. school and need it for my clinical rotations for reference. What do i need to do? Do i need to return the TX, i've had it for 2 1/2 months and got it from Best Buy. It's got a warranty with Palm for one year right? I Just need this thing to work correctly, a response to help would be appreciated. Thanks. Patrick.
    Post relates to: Palm TX

    Hi, and welcome to the Palm Community Forums.
    The behavior you describe sounds like either a corrupted (or missing?) database or other software conflict rather than a hardware issue.  You might need to get with Epocrates support.  I am unfamiliar with Epocrates, but I seem to recall that it comes with some large databases which can be stored on a SD card.  Maybe deleting and reinstalling everything will help.  Have you ever been able to get Epocrates to work?
    Post relates to: Centro (AT&T)
    smkranz
    I am a volunteer, and not an HP employee.
    Palm OS ∙ webOS ∙ Android

  • HT3728 after soft resetting how to set a new password to my airport express

    after soft resetting the airport exppress how to set a new password to my airport express

    Hello, MevanK.
    Thank you for the question.  You may find this article helpful in changing or creating a password for your AirPort Express. 
    AirPort Utility 6.x: Password-protect your wireless network
    http://support.apple.com/kb/PH5119
    Cheers,
    Jason H. 

  • I turned off my Verizon phone in Birmingham getting on a plane to Houston. When I arrived tonite I turned it back on and it says"searching" I do not have it in airplane mode and I have done a soft reset. Any other suggestions. This is a new iPhone 5

    turned off my Verizon phone in Birmingham getting on a plane to Houston. When I arrived tonite I turned it back on and it says"searching" I do not have it in airplane mode and I have done a soft reset. Any other suggestions. This is a new iPhone 5

    In settings>general>restrictions>location services>system services do you have cell network search set to off? If so turn it on and it may help to find a signal faster.

  • My new iphone 5 will not ring. have done soft reset and taken out the sim card and put it back in. very frustrating

    my new iphone 5 will not ring. have done soft reset and taken out the sim card and put it back in. very frustrating

    Did you check the side control and make sure it isn't on mute.  Up for ringer down for mute.

  • No one is reading what i put, i know how to soft reset a iphone 4, the problem is with the upgrade of your software 6.0.1 versio before i up grade  couldsoft reset with pushing the 2 buttons, i do know how to but with this new version 6.0.1 software

    dont send me email on to how to soft reset my iphone 4,  i have done it for a long time the ????? is now that i downloaded your software 6.0.1 to my 2 iphone4 s when i try ,and dont bsend me a email telling me that i have to hold down tyhe 2 buttoms, the question is that i will tell you agan if you can understand it (( with the upgrade software 6.0.1 version i can not soft reset the iphone and yes i know how so do not  email me on how to do the soft reset the phone and if you do then i will know you don't know what you are doing and don't send me a reply, thank you

    Nothing has changed.
    You reset it the same way as always.

  • I have this problem as well. The screen is black . i can.t get it to respond.Power   home soft reset didnt work. Itunes could detect any sync apps. I used my home phone to call my iphone and on my home phone i can hear the calling tone.But my iphone didn'

    The screen is black . i can.t get it to  respond.Power + home soft reset didnt work. Itunes could detect any sync  apps. I used my home phone to call my iphone and on my home phone i can  hear the calling tone.But my iphone didn't ring/screen did not light  up. Its a iphone 4. Any ideas how to fix this?

    If the basics (restart, reset, restore from backup, restore as new) don't work, you'll need to bring the phone to Apple for evaluation

  • Is there a way to do a soft reset when the power button does not work?

    After needing to enact my replacement repair warranty, I received a device (smae one and same serial) but the screen had unresponsive spoots, and dim spots, I decided to turn right around and send it back again.  I got a replaced screen again, but this time my power button doesn't work.  Now, this isn't too inconvenient for me except that I cant do a soft reset or power off/on in order to clear the cobwebs from time to time.  Does anyone know of an app, or another way to do this?  I'm simply afraaid of what iddues it may come back with if I send it in a 4th time.
    So, App?
    Or, maybe a special keybaord combo I can put in like on phones? (IE  ##XXXXX#

    To remove the Restrictions passcode, you need to restore the phone as a new device using iTunes. Hit the "Restore" button on the Summary Pane.

  • IPhone 4, 16 GB. After upgrading to iOS 7, despite having 10 GB free, the phone says No storage available. Tried a soft reset, tried restore as well. Still not working. iCloud is switched off.

    My wife has an iPhone 4, 16 GB. After upgrading to iOS 7, despite having 10 GB free, the phone says No storage available. Tried a soft reset, tried restore as well. Still not working. iCloud is switched off.
    Please help.. This has become a pain.. and of course theres no way to go back to iOS 6.

    Make sure you have the Latest Version of iTunes (v11.1.5) Installed on your computer
    iTunes free download from www.itunes.com/download
    Then... Restore as New (not backup) and Re-Sync your Content.
    Restoring  >  http://support.apple.com/kb/HT1414
    SYNCING with iTunes >  http://support.apple.com/kb/HT1386

  • I have rebooted my computer over 20X and performed the soft reset and the option command p.r. my iMac still gives me the gray screen with the file and question mark.

    I have been having issues with starting up my computer for the last 5 weeks it started with a loud clicking sound when starting up and it use to only take turning the computer off and on a few times to get it running. This week it has taken almost a day of me turning off the computer and turning it back on. Last night I did the soft reset and it did come on. I did not shut down the computer and when I returned to it this evening I had to force it to shut down because it was stuck.I have did the soft reset and sad to say it did not work.I decided to try the option command and pr to reset it it did not work do any one have any other suggestions?

    You can get a decent new hard drive for $100, plus labor to install it if you're not comfortable doing it on your own. In contrast, a new computer will cost quite a bit more than that. Of course, if that iMac is very old at this point - like, say 6 or 7 years old - the new drive may be worth more than the computer, and you could use this as an excuse to buy a new one!

  • Palm TX does a soft reset when I tap on memos

    I am new to posting on this forum.  My Palm TX does a soft reset when I tap on memos or push the button I have set to memos.  I also have had several soft resets occur after tuning the my palm on from the On/Off button.  I have had Palms for the last 10 years.  Never had this problem.  The only problem I had was the On/Off button on The TX failed as a result this is my 3rd TX in the last 4 years.  Any suggestions welcome.  I was behind on syncing and my last sync was done about 1 week before this problem occurred.  I really do not want to do a hard reset.  This problem has been going on for a month.  Can I just do an unistall/reinstall without loosing any info?
    Post relates to: Palm TX

    This question has been asked and answered many times here... Somehow, the memos database has become corrupt on the device. There are two ways to fix this:
    1. First, open Palm Desktop and go up to Tools/Options/Tools Tab and click the Check Records button. Let it look for corrupt records, and if none are found then a simple fix is to set your HotSync Manager setting for the Memos app to "Desktop overwrites Handheld" for one operation.
    If using Palm Desktop 4.x, change the conduit here: Click on your HotSync Manager icon in the tool tray, and select "Custom". Make sure your HotSync Account name is showing in the top window, then highlight the Memos app and click the "Change" button. Click the selection for "Desktop Overwrites Handheld" and click "Done". (DO NOT select the "Set as Default" box!) Now do a HotSync. Since you didn't select "Set As Default" it will only do the overwrite for one operation, then default back to "Synchronize".
    If using Palm Desktop 6.2.x, change the conduit here: Click on the HotSync Manager icon in the tool tray, and select "Settings". Make sure your HotSync Account name is showing in the top center window, then click the "Applications" link in the left column. Check the box for "Show Details", Highlight the application you wish to change, then click the "Configure" button. Click the bullet for "Desktop Overwrites Handheld" and DO NOT select the "Set as Default" box. Now do a HotSync. Since you didn't select "Set As Default" it will only do the overwrite for one operation, then default back to "Synchronize".
    Check to see if the HotSync completes without errors, and your Memos application is back to normal.
    2. If the above does not fix the problem, then download and install "DBFixit" from Pimlico Software: http://www.pimlicosoftware.com/dbfixit.htm The program will search your device for errors, and fix some for free. Others may require the purchase of a registration code, with the funds going to an animal rescue non-profit (Gorilla Haven).
    WyreNut
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

  • Airport Extreme Freezes After Soft Reset

    Hi Everyone,
    I'm having an issue with the 7.5.2 firmware update for my Airport Extreme. We have several devices which use DHCP reservations and after updating to 7.5.2 I went in to change some of the IPs and other settings (using AirPort Utility). After making the changes I pressed update and the Airport started the reset, but the light just stays amber and I have no connectivity. I end up having to pull the plug and do a hard reset. After a hard reset, when I check the Airport, none of my changes went into effect.
    I have tried many times with different settings and it always does the same thing whenever I try to update the changes; it hangs during the soft reset without saving any changes. When I downgrade the firmware to 7.4.2, however, everything works perfectly.
    Any help would be appreciated. Thanks!

    I too have run into the same problem as ‘controls.freq’ although sometimes the light just stays amber (like controls.freq’s documented post) and other times it stays solid green after clicking "Update." No matter, the result is the same -- I have to perform a hard reset (pull the plug) of the Airport Extreme and none of my changes have been made. I not only run into this when trying to add static DHCP addresses (like controls.freq), but also when trying to add MAC addresses to timed access control lists, or (when playing around) trying to change my wireless network name .... honestly, it probably fails for many other changes too.
    So I tried what Bob suggested -- but no luck. A lot of effort but no reward. I tried loading 7.4 firmware (tried both 7.4.2 and 7.4.1 which ran more reliably in my environment) and then doing the factory reset, then upgrading to 7.5.2 and setting everything up. But after maybe one successful save of settings, all subsequent saves failed as described earlier. Then I tried a factory reset while running 7.5.2 and ran into the same problem after maybe the first successful save.
    The only reliable workaround is to DOWNGRADE to 7.4.x, make the necessary changes, and then upgrade again to 7.5.2. I must say ... if there were some way I could get the system to stop offering new code reliably (that doesn’t even work even when I tell it I don’t want to check for updates), then I’d just stay with 7.4.1 throughout the environment with success.

  • Third party software will not close without a soft reset.

    I have a few third party software utilities/games that do not want to close without a soft reset, some show a white screen and others just will not close. Should I uninstalll these and reinstall them? My grandson has the same utilities on his Treo 650 without these problems. My phone is the Treo 700p.
    Post relates to: Treo 700p (Verizon)

    I would try uninstalling and reinstalling the software. If this does not work, you may want to check if there are updates or newer versions of this program and be sure to check the compatibility.
    I hope this helps,
    -Pat

  • IPhone soft-resets when receiving/making a call to corrupt(?) contact

    Hello,
    Once I had a created a contact that (I think) had called me while I was making the entry. Ever since, the interaction with that contact became weird. Half of the times, his name was displayed when he was calling, while the rest of the times not.
    Now I've installed a few apps and I think that, even though I have deleted that contact, there is still a bad/corrupt copy of it somewhere in the memory. I'm saying that because:
    - if I dial his number using the keypad, as soon as I'm done dialing, the keypad disappears and I'm back to Home menu.
    - whenever I get a call from him, my phone doesn't ring, it does something like a quick soft-reset and I cannot pick it up; it is always displayed as a missed call
    - whenever I try to call him, I have no in-call menu, e.g. no Speaker option or even Hang Up option(!), so I can't actually hang up on him! I must turn the phone off if I want to! All I see is the "Tap to return to call" button, which, btw, it doesn't really work, either!
    I have tried to delete all contacts - it did no difference. This is why I suspect that there is still a corrupt contact card somewhere.
    After I made a full reset, wiping out all data and stuff, the problem disappeared. Unfortunately, I had to make at least a partial restore of my settings, map locations, SMS texts etc. Even though I didn't restore any of my contacts/calendar/notes etc, the problem returned.
    Any ideas? I'm running out of options here... I'm actually unable to communicate with a certain person, whether I've filed him as a contact or not!

    Contact info and recent calls are included with your iPhone's backup.
    Try restoring your iPhone with iTunes as a new iPhone or not from your iPhone's backup.

  • My iphone 4 stopped recognizing when it is plugged in to charge. I have to let it completely die and do a soft reset for it to charge and start back up. Any suggestions on how to fix this?

    My iPhone 4 stopped recognizing when it is plugged in to charge. It has to completely die and a soft reset has to be done to it before it will charge and start back up running. A tech at a store said it was just a short in the phone and nothing could be done to fix it, but I'm sure there has to be other options. Any suggestions?

    To rule out a software issue or damaged data inside the backup, set it up as new device without using the latest backup afterwards.
    If the phone is back to normal after that, restore from the backup again.
    How to back up your data and set up as a new device

Maybe you are looking for

  • Looking data from more than one table and inserting into another.

    Hello, I am giving you the Table structures as per my requirement.. CREATE TABLE TEMP_A (NAME VARCHAR2(100) primary key); CREATE TABLE TEMP_B (STRUCTURE VARCHAR2(10)); CREATE TABLE TEMP_C ( NAME VARCHAR2(100), STRUCTURE VARCHAR2(10), VALUE VARCHAR2(1

  • How to download GUI status and then upload to another system?

    Hi, I have a requirement to copy a module pool program to another system (different system, it cannot be transported to that system) We have options to download/upload programs/screens in SE38 and SE51. But, I couldn't see any such option in SE41. Is

  • Ok now i am mad...

    Ok.. Miriam.. help me out here.. I need the number to apple customer relations again.. My imac g5's sleep light has messed up again.. System isnt crashing yet though.. all i have done lately is burn like 5 dvd's and encoded them.. that should not dam

  • X100E display driver on Vista 640bit

    Hi, I've installed Vista 64-bit on an X100e and everything installed well with the exception of the display driver which is the HD 3200. Does not really matter which driver I used, from Lenovo or ATI website (latest 10.5), it just will not use the co

  • Oracle SCM Offside

    Is there any way to use the SCM as an Offside (from out side the office)?