Need to add some if then and set a check in EEM script

OK the below script watches errors on a path. When it crosses the thresshold it sends a trap and changed the netmask on the path to prevent the route to the far node being used. on so this network is built as two seperate networks. For this lets call them network "A" and "B". the two networks do not touch. Even the OAM network to the router is on seperate vlans. so the chalange is to add inteligence to the script to not run if the router on the "B" network with this same script has dissabled the route so we do not end up with the "A" & "B" network isolated at the same time.
Yes I can think of many other ways to do this, but this is what is in place.  So how would I set a varible or some flag that I could check to make sure an event has not taken the other path down?  Checking for a file or something on a remote box is my first thought. Anyway I am tossing this out to see what some fresh minds might come up with.
event manager applet SNMP_RTT_Vlan1560_High-Delay
event snmp oid "rttMonLatestJitterOperRTTSum.15600" get-type exact entry-op ge entry-val "1500" entry-type value poll-interval 5 maxrun 180
action 10.0 snmp-trap intdata1 100 intdata2 200 strdata " ***HIGH PACKET DELAY Linkset SHUTDOWN*** some route >some other route Vlan1560"
action 10.5 syslog msg "****EEM Interface SHUTDOWN-HIGH DELAY to re-enable change interface Vlan1560 ip address 10.224.159.233 255.255.255.248 **** description some route>some other route"
action 100.0 cli command "enable"
action 110.0 cli command "config terminal"
action 130.0 cli command "interface Vlan1560"
action 140.0 cli command "ip address 10.224.159.233 255.255.255.254"
action 145.0 cli command "description ****EEM Interface SHUTDOWN-HIGH DELAY to re-enable change interface Vlan1560 ip address 10.224.159.233 255.255.255.248 **** description some route > some other route"
action 180.0 cli command "no event manager applet SNMP_RTT_Vlan1560_High-Delay_Routing_Restore"
action 200.0 cli command "event manager applet SNMP_RTT_Vlan1560_High-Delay_Routing_Restore"
action 205.0 cli command "event timer countdown time 95 name Restore_timer_Vlan1560 maxrun 180"
action 210.0 cli command "action 100.0 cli command $QUOTE enable $QUOTE "
action 220.0 cli command "action 110.0 cli command $QUOTE config terminal $QUOTE "
action 230.0 cli command "action 130.0 cli command $QUOTE interface Vlan1560 $QUOTE "
action 240.0 cli command "action 140.0 cli command $QUOTE ip address 10.224.159.233 255.255.255.248 $QUOTE "
action 250.0 cli command "action 145.0 cli command $QUOTE description Some route  > some other route $QUOTE "
action 260.0 cli command "action 150.0 cli command $QUOTE end $QUOTE "
action 280.0 cli command "action 170.0 snmp-trap intdata1 100 intdata2 200 strdata $QUOTE ***High packet delay Linkset RESTORED *** some route > someother route $QUOTE "
action 290.0 cli command "action 180.0 syslog msg $QUOTE ****EEM RESTORED**** interface Vlan1560 IP address 10.224.159.233 255.255.255.248 description some route>some other route $QUOTE "
action 400.0 cli command "end"
action 410.0 cli command "disable"

You could have the remote box send this box a trap that another EEM applet detects then creates a local environment variable that prevents the local router from executing this SNMP policy.  See https://supportforums.cisco.com/docs/DOC-11745 on how to create a customized trap.  The snmp-notification event detector can be used to detect this trap.

Similar Messages

  • Can I download an iWeb site so that I can change the html? I need to add a better blog and also some SEO.

    Can I download an iWeb site so that I can change the html? I need to add a better blog and also some SEO.

    Where is your site hosted? If it's hosted on MobileMe you can use SEO to edit the site online.  No need to get it locally.
    If the site is hosted with a 3rd party fpt client then publish your site to a folder on your hard drive, use SEO on it there and then upload the site to your server with a 3rd party ftp client.
    What do you mean "add a better blog"?
    OT

  • How can I change the insert SWF File, I need to add a few things and make it better?

    How can I change the insert SWF File, I need to add a few things and make it better? Is there an option inside of the dreamweaver menu that I am not looking at. It would make it easier on me if I changed some things around and didn't have to do it all myself each time I used it. Just incase you was needing to remember what swf flash was, It is not a swf video either.
      <object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="640" height="480">
        <param name="movie" value="Sonic Kaboom.swf">
        <param name="quality" value="high">
        <param name="wmode" value="opaque">
        <param name="swfversion" value="9.0.115.0">
        <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
        <param name="expressinstall" value="../Scripts/expressInstall.swf">
        <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
        <!--[if !IE]>-->
        <object type="application/x-shockwave-flash" data="Sonic Kaboom.swf" width="640" height="480">
          <!--<![endif]-->
          <param name="quality" value="high">
          <param name="wmode" value="opaque">
          <param name="swfversion" value="9.0.115.0">
          <param name="expressinstall" value="../Scripts/expressInstall.swf">
          <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
          <div>
            <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
            <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
          </div>
          <!--[if !IE]>-->
        </object>
        <!--<![endif]-->
      </object>
    </div>

    If I understand correctly, Sonic Kaboom.swf needs to be edited in a separate Flash authoring program and then reinserted into your HTML document. 
    As Murray said, Flash is dead.  Nobody uses it anymore.   We use HTML5, CSS3 and JavaScript animations which have universal support from Smartphones, Tablets and other web devices that can't support Flash.   Look at Edge Animate.
    HTML animation | Download free Adobe Edge Animate CC trial
    Nancy O.

  • Need to add Polish option to character set menu in SAP Gui

    Basis Gurus,
    We have installed the Polish language on our unicode R/3 system and now
    need to add it as a character set option in the Gui menu.
    Menu Path:
    Customize Local Layout --> Character Set --> (Missing Option for Polish)
    I have searched OSS and online resources and have not found out how to
    add an entry in this menu.
    I did alter the file frontEN.txt in which the menu entries are built,
    but did this not add the entry.
    Can you please advise on the procedure to add this entry. Our
    developers need it to view special Polish characters in their SapScript.
    Thanks,
    Jeff Martens

    Deepak,
    Thanks for the reply.  I've read that document before, it's helpful with some of the I18N settings, but does not explain how to add a language to the "character set" menu.
    Does anyone know if this is possible?
    Thanks,
    Jeff

  • How may I change the format to enter new contacts?  I need to add a business name and would like to change the defaults to work rather than home.

    I am entering new contacts into the contact app.  I need to add a business name and would like to change the default for phone numbers from home to work.  I am entering a large amount of business cards

    rcolbroth wrote:
    Is there anyway of creatiing a different name for this Folder rather than 2013?
    If you are using one of Lightroom's "date-based" folder templates, then the folders are created in accordance with the image capture date, not the date that you happen to import it. If you specifically want to use the import date for your folder names then you probably don't want to use the Lightroom date template, and instead you'll need to setup your folder names manually.
    The vast majority of users that use date-based folder naming schemes will use a standard Lightroom template, i.e. based on the much more meaningful image capture date.

  • I need to add a new computer and take off a old one but can't find the site or place to turn it off i can only have two computers but i got three please help let me know where to go to shut one off to put the new one on?

    i need to add a new computer and take off a old one but can't find the site or place to turn it off i can only have two computers but i got three please help let me know where to go to shut one off to put the new one on?

    Hello,
    the way is written there Activation & deactivation help >>> (see there only to understand the procedure) Common activation problems >>> "Activation limit reached for [product]. This serial number has already been activated on 2 computers." "Maximum activations exceeded."
    >>> How to deactivate or sign out >>> A single license for Adobe software lets you install the applications on two computers—for example, at home and at the office. However, you can use the software on only one computer at any given time.
    If you want to install the software on a third computer, deactivate the software on the computer on which you will no longer use the software. Then, activate the software on the new computer.
    Hans-Günter

  • I am working on version 7.I need to add some level 0 members to existing le

    I am working on version 7.I need to add some level 0 members to existing level o members.I also have to do some changes in rules!!!!How should I modify to load/add these members??

    Hi,
    You can add Level 0 members by manually edit the outline and add the level 0 member.
    Another option is you can create for example, a parent child relationship of the member in
    a text file and load using rule file. In both way, you need to use EAS.
    You can refer to Essbase DBA Guide, Building Dimensions and Loading Data. Even though
    it is in version 11, it is still valid for version 7.1.
    http://download.oracle.com/docs/cd/E12825_01/epm.111/esb_dbag/frameset.htm?pt03.htm
    Edited by: NN on Mar 6, 2011 7:21 PM

  • I need to factory restore my iPhone and set up as new device...

    I need to factory restore my iPhone and set up as new device... If I back up the device, but set it up as a new iPhone, will I be able to get all of my data, apps, music, notes, texts and settings back? (ditto with TeamLava game data??)
    I need 100% confirmation as I'm worried I'll lose both some important app and data on their, as well as some hard-earned game time on a few apps!!
    (The reason I need to restore and set up fresh - I set this iPhone up from a back years ago which pulled through an encrypted local backup password that I don't remember setting and no password I can think of will turn it off. I have been told the only way around this is to factory restore and set up as a new iPhone)
    Many thanks in advance for any and all advice. I welcome your Apple expertise!

    Stupid Apple! Thanks though.
    Can you confirm what I will and will not be able to get back? (Bare in mind I also have an iPad that syncs things like Notes.)
    Contacts - can back up to Orange App
    Music - I mainly use Spotify anyway
    Text Messages?
    Safari bookmarks?
    Previously purchased Apps? (or will I just have to re-download them?)
    The data on these apps? (I guess most will either be simply logging in, or re-setting up)
    Storm8/TeamLava Game progress?
    Again, thanks in advance for your help.

  • Need to Add field EKET-EINDT and EKET-SLFDT to ME2M Report output in ALV

    Hi All,
    I need to add fields EKET-EINDT and EKET-SLFDT to the output of program ME2M Transaction.
    I have appended the structure MEREP_OUTTAB_PURCHDOC with these fields. and it is coming in the ALV output field catalog.
    I need these fields output only for ALV display only.
    Please let me know which enhancement i need to write code to enhance the output with these filed values added to the ALV internal table
    Thanks in Advance
    Arun

    Hi All,
    I am able to get the field EINDT and SLFDT into the structure using Append structure and is also getting displayed in the output in ALV.
    But i need to know how to add code for filling these fields and passing into ALV. I need to know the Enhancement spot.
    Please let me know how to achieve this scenario
    Thanks
    Arun

  • I am trying to add some new software and am told I have an incorrect software that I already confirmed is correct.  Can anyone help???

    I am trying to add some new software and am told I have an incorrect software that I already confirmed is correct.  Can anyone help???

    Please confirm you are actually running the ancient OS 8.6.
    What software is this?

  • I need to change my billing info and set up a busi...

    I need to change my billing info and set up a business account.

    Hello matthew1405tallai,
    I have linked an article that will walk you through the process of updating your payment information:
    iTunes Store: Changing your payment information
    http://support.apple.com/kb/ht1918
    Thank you for contributing to Apple Support Communities.
    Cheers,
    BobbyD

  • I need to block some phone numbers and text messages from my iphone

    I need to block some phone numbers and text messages from my iphone

    Contact your provider and see if they have a means to do this. It can be done for a cost with AT&amp;T.

  • How to get the kerning value and set it to back use script?

    hi,guys
    I come back again.
    I encountered a kerning problem.
    how to get the kerning value and set it to back use script?
    Thanks very much!

    For both cases, the filename can be found on the FILE.ReceivedFileName Context Property.  You can access this Property in a Pipeline Component or Orchestration and take any action you want, such as apply to a database.
    The value is accessed by: MyReceivedMessage(FILE.ReceivedFileName)
    In the case of a duplicate EDI Interchange, you would use the Failed Message Routing feature to capture the error message with either an Orchestration or Send Port.

  • I need to call some privileged APIs and need some help on this.

    First the Basics:
    This program auto-launches each time a user logs in. It is an authentication type of program. Only users with this app running will be allowed to use a secure network.
    I need to be able to read and write from the route / arp tables, and possibly be able to 'reset' a network adapter. These are the privileged APIs I need to call. I have only found "UNIX" APIs to do this, no apple APIs although I am sure they would have the same restrictions.
    Anyway, what I don't want is that elevate privileges prompt each time a user logs in. I am sure this would become very annoying.
    Possible solutions (I have no idea how to do these):
    1. The installer sets it up to run with admin / privileged access when it starts. I only know how to get a program to start with user privileges (the one that logged in).
    2. The installer flags / registers something that this app can make those API calls. IE: The App is trusted.
    3. The program is split in to two parts and uses Interprocess communication to talk to the privileged part. This still leaves problem #1, how do you get an app to launch as privileged.
    Any other ideas and suggestions would be welcomed.

    What you normally do in this case is write a kernel extension that does all the work and then have a user interface that the user runs. What you are describing sounds very much like a VPN. This is exactly how the Cisco VPN software works, for example.

  • Need to bypass linked apple id and set up as new device

    how to bypass a linked apple id on an ipad mini and set it up as a new device.
    i restored it but its saying "this ipad is currently linked to an apple ID. Sign in with the Apple ID that was used to set up this iPad"
    i do not have that information.. what do i do??

    Hi
    this link will help Find My iPhone Activation Lock - Apple Support
    if you purchased the phone second hand, you need to contact the previous owner and have them enter their apple id & password,
    once the phone is activated then go to settings> iCloud & turn off find my iPhone > then sign out of iCloud > erase all contents & settings
    on setup then you won't be asked for the apple id or password, if its your apple id , and you have forgot the password you can visit applied.apple.com to reset your password, if you have renamed the apple id to something different , it will have to changed back to the one the phone is linked to
    you can alternatively call apple support if you have the original receipt for the phone & they can remove the lock

Maybe you are looking for

  • KDE Plasma 5 crashing at seemingly random times

    I've been having this problem for a while now and so far I've been unsuccessful in trying to troubleshoot it myself.  My computer will be working along fine, and then all of a sudden will freeze.  No mouse pointer movement, no keyboard input, trying

  • How can I delete a .mpg video clip that has been "processing" for weeks?

    Weeks ago I loaded a 380mb .mpg video clip using Express Loader that is still "processing". I want to delete it but cannot because the software produces an error message notifying me that I can't delete it until processing is complete. Obviously the

  • Change movie dimensions

    Well, The problem is pretty well summed up in the title. For reasons passing understand, a client has replaced a large LCD monitor that was playing a vertical Director movie at 768x1366 with one whose maximum resolution capability for VGA in is 768x1

  • HP 5510v all-in-one using Windows XP 2000 keeps showing out of paper msg. but is not.

    Have in the past pulled Jammed paper out through the front (with extreme difficulty I might add) but finally read online to open door in back to relieve jam.  Anyhow, could I have messed up some sensor or something by doing that?  Have tried unpluggi

  • Select OS during Startup

    I have just installed Boot Camp and Windows XP. Both OS work as expected however during startup of the computer while holding down the option key, only the Mac OS icon is available. Where is the Windows icon?