EEM Script works only with IP SLA

I created script linked to SLA of intellectual property.  If the IP SLA is violated, we want the script to run and stop bgp peers and send syslog messages and can send by e-mail.  I get alert on ALS IP missed, but nothing else happens so screwed up the script in any way. This is the first time using EEM scripting if any help would be great.  Given that we have never used EEM scripting in this place the version that we would use is the default version provided with SRI 4451 in 2015. I do not know if what counts.

Thank you

ALS IP 1
ICMP-echo 8.8.8.8 source-interface GigabitEthernet0/0/1
threshold 2
frequency 5
IP SLA annex 1 point of life to always start-time now
activate the IP sla response alerts

track 1 accessibility of als 1 ip

Event manager E-MAIL ISSUE INTERNET SERVICE PROVIDER environment
Event Manager environment _email_server 10.1.1.3
Event Manager environment _email_to [email protected] / * /
Event Manager environment _email_from [email protected] / * /

BGP_NEIGHBOR_DOWN event manager applet
SHUTDWON BGP PEERING description IF IT IS PROVIDER of QUESTION
event track 1 State
command action 1.0 cli 'enable '.
Action 1.1, «config t» cli command
Action 1.2 cli command 'router bgp 10125 ".
Action 1.3 cli command "neighbor x.x.x.x stop."
Action 1.4 cli command "end".
Action 1.5 syslog-msg 'PROVIDER NETWORK PROBLEM DETECTED, BGP PEERING SHUTDOWN. '
EMAIL_BGP_PEER_DOWN event manager applet
Description EMAIL BGP PEER DOWN
event track 1 State
action 1.1 mail server "$_email_server" to "$_email_t" of ' $_email_from ' topic ' vendor number: PING FAILED "body"Ping Google's failed. "
Action 1.2 syslog msg ' EMAIL SENT to $_email_to.
!

Then configure:

Event manager cli username USER session

Where the USER is a user authorized to execute all CLI commands in your strategies of EEM.  Or add "auth bypass" at the end of each config applet.

Tags: Cisco Network

Similar Questions

  • Script works only with CS6

    Hello-

    I am trying to run the following script in ID (CS6) to export the items grouped into all documents opened in JPEG format. ExtendScript Toolkit gives me this error: "target Adobe InDesign CS4 (6.0) provides no engine for debugging", and the drop-down list at the top keeps spending CS6 to CS4. Can we see something in the script that would cause, or is there something else I should do to make it work?

    Thank you!

    T

    indesign #target

    var saveFold;

    main() {} function

    saveFold = folder (Folder.desktop + "/ Batch");

    If (! saveFold.exists) {saveFold.create () ;}

    FRP var;

    PRF = app.jpegExportPreferences;

    If (parseInt (app.version) > = 7) {}

    prfs.antiAlias = true;

    prfs.embedColorProfile = true;

    prfs.exportResolution = 300;

    prfs.jpegColorSpace = JpegColorSpaceEnum.RGB;

    prfs.jpegQuality = JPEGOptionsQuality.MAXIMUM;

    prfs.simulateOverprint = true;

    };

    If (parseInt (app.version) == 6) {}

    PFRS. Resolution = 200;

    prfs.jpegQuality = JPEGOptionsQuality.MAXIMUM;

    prfs.jpegRenderingStyle = JPEGOptionsFormat.BASELINE_ENCODING;

    };

    for (var j = 0; j < app.documents.length; j ++) {}

    groupsToJPEGs (app.documents [j]);

    }

    }

    function groupsToJPEGs (doc) {}

    var i, grps, expFile;

    GRPS = doc.groups;

    for (i = 0; i < grps.length; i ++) {}

    expFile = file (saveFold + ' / ' + doc.name + "_" + (i + 1) + ".jpg");

    doc.groups [i] .exportFile (ExportFormat.JPG, expFile, false);

    };

    };

    main();

    Try this:

    var saveFold;
      function main(){
         saveFold = Folder( Folder.desktop + '/Batch' );
            if ( ! saveFold.exists ) { saveFold.create(); }
        var prfs;
    
        prfs = app.jpegExportPreferences;
    
            prfs.antiAlias = true;
            prfs.embedColorProfile = true;
            prfs.exportResolution = 300;
            prfs.jpegColorSpace = JpegColorSpaceEnum.RGB;
            prfs.jpegQuality = JPEGOptionsQuality.MAXIMUM;
            prfs.simulateOverprint = true;
    
       for (var j=0; j		   
  • This calculator works only with round numbers

    I need help,

    This calculator works only with the numbers series, but is this 1.9 * 6 the result is 11.399999999999999 instead of 11.4

    Ware is the problem, can it be resolved?

    Theanks in advace.

    <? XML version = "1.0" encoding = "utf-8"? >

    < mx:Application ' xmlns:mx = ' http://www.Adobe.com/2006/MXML "layout =" " vertical " >

    < mx:Script >

    <! [CDATA]

    private function getTotal():Sub

    {

    var myInt:int = parseInt (input.text);

    var myFloat:Number = parseFloat (input.text);

    var myNumber:Number = new Number (Input.Text);

    var myInt2:int = parseInt (input2.text);

    var myFloat2:Number = parseFloat (input2.text);

    var myNumber2:Number = new Number (INPUT2. (Text);

    total. Data = (myNumber) * (myNumber2);

    }

    []] >

    < / mx:Script >

    < mx:TextInput id=" entry " />

    < mx:TextInput id=" INPUT2 " />

    < mx:TextInput id=" total " />

    < mx:Button " label = ' Button "click ="getTotal ();" />

    < / mx:Application >

    Welcome to the joys of IEEE 754 floating-point arithmetic. For more fun, try ".1 + 1 - 1»

    The simplest answer is probably to limit your result with Number.toFixed (). The answer is not so easy is to write your own class BigDecimal (in Java).

    --
    Maciek Sakrejda
    Truviso, Inc..
    www.truviso.com
    Truviso recruiting: http://www.truviso.com/company-careers.php?i=87

  • RoboForm does not work with your new browser. It is very fustrating and works only with Windows Explorer. I need to reinstall the old FIREFOX program?

    RoboForm does not work with your new browser. It is very fustrating and works only with Windows Explorer. I need to reinstall the old FIREFOX program?

    RoboForm has already released a version with support for the latest version of Firefox. See http://www.roboform.com/support/news. Try upgrading to the latest version of Roboform.

  • Windows 7 works only with canon MX 340

    Canon MX 340 printer works only with windows 7.

    Canon MX 340 printer works only with windows 7.

    You mean the Canon PIXMA MX340?

    You have the following drivers installed? :
    http://www.USA.Canon.com/nw3s/CanonUSA/DownloadContents/English/0100461601EN.htm
    (As of 10/23/12)

  • External speakers work only with powerpoint.

    External speakers work only with powerpoint. DVD, internet, music files, are not. They worked for the first few weeks.

    I have a HP dv7-6c27cl with intel core i5 and Windows 7.

    When I have the system check it, it finds no problem.  Apparently, I have the latest drivers. The fact that the speakers work with powerpoint, which is confusing.

    When I play a video file or music, I get an error message: "Windows Media Player has encountered a problem while playing the file."

    The headset works for internet but not DVD.

    I've installed Weatherbug a week ago and had to uninstall other garbage that come with it. I think that's when the problem started.

    Well, I set myself just now. I did a system restore to a point before that I installed Weatherbug, and now everything's fine.

  • Lightroom works only with reduced funktionality. Develop module is not available.  Adobe can not find the license associated with my Adobe why identification code? Every month I pay an amount for PS and LR...

    After the upgrade to Windows 10 Lightroom works only with reduced funktionality. Develop module is not available.  Adobe can not find the license associated with my Adobe why identification code? I bought the license more than 1 year ago. Every month I pay an amount for PS and LR, and for the past 4 months I can't work. Russian support team cannot solve this problem and sent me here.

    Thank you! I reset my password, the problem was in it.

  • DeskJet 722C works only with Windows 7

    OK, so I applied the DJ_Patch as described. (See http://h30434.www3.hp.com/t5/Printer-All-in-One-Software-and/Deskjet-710-720-810-820-100-Series-prin... ) I have Windows 7, 64-bit and a HP Deskjet 722 C printer.  Tried to print the test page, but received the error from the printer.  Tried to add a printer, you are looking for the 722C, but it is not on the list, even tried to do Windows Update to search for my printer.   Tried to restart, which did not work or the other.  Still get error printer.  I appreciate any other suggestions.  BTW, the printer is connected via a USB to parallel port cable.

    My HP Deskjet 722C now works!  I spent several hours trying different things only to find out it was the cable use to connect the printer to our new computer.  He is there not a lot of info on the package of cable but if you watched closely he said it worked only with Win XP, me and Vista.  Who would have thought that the cable wasn't working with some BONE... me!  Once we went and bought a new cable ($40, Ouch!), we were running a few minutes.  I don't know that a cheaper cable is available online.

    I wanted to post this in the hope of saving someone money, time and frustration on the other.

  • Adobe Acrobat dc works only with Microsoft office 2016

    Adobe Acrobat dc works only with Microsoft office 2016

    Hey Nick Villani,

    Desktop stand 2016 for Windows and MAC OS versions of Acrobat DC will be available in the next major update quarterly Acrobat, tentatively scheduled for October.

    Kind regards

    Ana Maria

  • CS6 Production Premium supports AMD graphics cards? Specifically over-pants M6100. If so, all the features work with the M6100, or are there features that work only with nVidia video cards?

    CS6 Production Premium supports AMD graphics cards? Specifically over-pants M6100. If so, all the features work with the M6100, or are there features that work only with nVidia video cards?

    CS6 does support OpenCL and OpenGL?

    Are all features that CS6 supports for NVidia Cuda available for the M6100 OpenCL?

    Bill supposed to first Pro CC (not CS6) response. Windows of Premiere Pro CS6 version does not support OpenCL for accelerating GPU of MPE. Therefore, there is no "opencl_supported_cards.txt" file in the folder of Premiere Pro, and the code to OpenCL is disabled permanently in all versions of Windows from Premiere Pro CS6. So, for your over-pants M6100 Premiere Pro CS6 will be permanently locked to only software MPE mode. (Acceleration GPU of MSES in the Windows of Premiere Pro CS6 version is limited to the CUDA only, which means that only NVIDIA for GPU - no AMD over-pants or GPU Radeon support CUDA at all.)

  • I have the code for an Adobe Creative Cloud, it is alphanumeric, but the registry works only with numeric codes ¿where I can use my code?

    Hi, I have a problem with code for my Adobe Creative cloud, it is alphanumeric, but the registry works only with numeric codes ¿where I can use my code? is a subscription to creative cloud of throughout the year.

    Probably you have a redemption code... especially if you did not purchase directly from Adobe

    Redemption Code http://helpx.adobe.com/x-productkb/global/redemption-code-help.html

    -or https://forums.adobe.com/thread/1572504

  • Is - this calculation Manager works only with EPMA?

    It seems calculation Manager works only with EPMA for the application of the classic plsnning, I cannot use the module of business rule and cannot use the Manager of computing to work on business rules, is good? correct me and advise, thank you!

    Sorry I disagree

    You can use the calc for classic version 11.1.1.3 planning
    When you create a planning application in 11.1.1.3 classic, you have the option to choose if you use business rules or calc for the app Manager.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Why is the hitTest function works only with attachmovie?

    Hello.

    I need help. I can't get the hitTest to work for my script below.

    I tested using movieclips created on stage at design-time and collided during execution. hitTest, works very well in this situation.

    But if I use the attachmovie command and create a movie on stage during the performance, the video cannot hitTest with other clips. The hitTest just doesn't work.

    Please help me by recommending changes. I don't know what to do. It is not that difficult.

    Thank you.

    -Aslan

    """"""""""""""""""""

    The script below is essentially to create instances of enemymc, and he will fall vertically, hitting a movieclip target_mc which is set at design time. Please help, out of ideas.

    """""""""""""""""""""

    var enemyTime:Number = 0;

    var enemyLimit:Number = 20;

    onEnterFrame = Function)

    {

    enemyTime ++;

    trace (enemyTime);

    if(enemyTime == enemyLimit)

    {

    var enID: Number = Math.Random ();

    enemy_mc = _root.attachMovie ('enemymc', 'en' + enID, _root.getNextHighestDepth ());

    ["fr" + enID] _root ._x = int (Math.random () * Stage.width);

    _root ["fr" + enID] ._y = - 5;

    _root ["fr" + enID] .onEnterFrame = function()

    {

    var chk:Boolean = false;

    var currMov:MovieClip;

    ce ._y += 5 ;

    currMov = this;

    if (this.hitTest (_root.target_mc, true))

    {

    trace ("the enemy detected a success.");

    }

    if (this ._y > (Stage.height - 10))

    {

    this.removeMovieClip ();

    }

    }

    enemyTime = 0;

    }

    }

    If you have two targets mc then they must have different instance names and you must hitTest for each of them.

    If (this.) HitTest (target_mc1) | this.hitTest (target_mc2))
    {
    trace ("the enemy detected a success.");
    }

    And if you need to deal with them in different ways depending on who gets the success, just use two separate tests.

    As far as why my way and not your way, I have to be honest and say that I spent time trying to get your way to work and by trial and error, I ended up with, that's what you see.  I thought that the biggest change took place (which means he started work) when I changed the hitTest to not include the "true" setting, which I think is applicable to the use of corrdinates, and not an object.  But when I started your code and changed only this line, it still does not work, so something else in my revised code also applies.

    I didn't like using the random calculation for falling objects, which may have been part of the problem.  That will produce a fractional value with a point decimal, and names of the instance with dots in them are probably an accident waiting to happen (ex: en0.27365514)

    If you want to know what changes were absolutely necessary for its work, start with your code and the hitTest change first and then see what must be done to get things working properly.  I was tempted, but I had other things I wanted to do, so I got what I got the job.

  • LabVIEW 2009 .exe works only with windows 2000

    I created a simple vi with Labview 2009 for resetting a counter in the registry key. I changed it to an exe. The program works well on any machine with XP, but it does not work on the machine, that I need on which is running Windows 2000 SP4. I have installed the runtime of 2009, but I keep getting an error when it starts the vi is not executable and I need the full development to correct errors. But like I said it works everywhere else. I tried other exe wrote in LV2009 on this machine and they work. Is there something in my vi which is not compatible with Windows 2000?

    Thank you

    dkfire wrote:

    If you build an exe on a XP machine, then it will work only on XP.

    You need generate the exe on a Windows 2000 machine to make it work.

    Simply not true - even close to not being not right.

    Chris,

    My guess is that the .NET component is not present on the pc of w2k.

  • DeskJet F4180: F4180 driver works only with Windows 10

    Printer prints all bad, except the dark colors. Turns red magenta, green is dark blue etc.

    Printer worked fine with win xp.

    Test page prints perfectly without error

    Using the prints to photocopy an exact color copy - it's just data coming directly from the computer which is incorrect, so the work of does'nt driver properly with win 10. I checked that I have the latest version of the driver 6.1.7600.16385.

    I have noted this problem has already been spotted upward - when a new driver is available?

    or can anyone suggest a work around.

    Printer I tried with my laptop win10 and the fault has been the same.

    Printer I tried with my old desktop winxp and the rift was healed - perfect impression of a jpeg file.

    Reconnected printer back on my desk win10 and printed on the same jpeg file and printing was perfect!

    Have you tried a few other files that I had problems with and prints are very well - can only be assumed that the problem was down to the usb connector.

    Thanks for the help

    Concerning

Maybe you are looking for

  • RN102 stuck after starting

    My RN102 will not accomplish its restart, is here (+ 1 h at the time of writing) with albums light flashes at a constant rate and the disc two lights are constantly. Fine ran constantly for the past few months, don't you remember last reboot as works

  • NCsoft launcher has stopped working, a problem has caused the blocking of the program works correctly.

    Well... it was annoying HORFICALLY, I just download Aion and every time I do the Launcher, it gives me the error "Ceased to function" message. It's really just annoying horribally. Can someone help me please? How can I fix? I just want to play aion >

  • pavilion g6 laoptop keyboard problems

    In recent days, some of the buttons on the key board does not work. As a student, my daughter used this machine for two years before me? So I do not know the treatment he got! Is there a problem with these keyboards or I will try a removal and cleani

  • M600 series printers LaserJet Enterprise (601) with custom tray (cb527a)

    I have a custom of paper (4.13 "x 8.5") piece that allows to print fine from Tray 1. I bought custom support tray (cb527a) because the data sheet says it can print dimensions of 102 ~ 105 mm to 170 mm to 140 mm to 282 mm. I succumbed in a sheet 4.13

  • Series of Windows 8 does not work

    Hello I have Windows 8, he got from Future shop, a store of electronics in the Canada, a year or two ago. It came witha record of 32-bit and 64-bit disc. I used the disk of 64-bit on the notea book that we have. I've just updated our book net last ni