Saving results of event-triggered traceroute

I'm trying  to troubleshoot a situation where a router frequently  loses the path to  both its DMVPN headends, and I want to figure out  where on the path to  the headends the problem is happening.
I'd  like to fire off two traceroutes (one to each headend) every time I  lose   an EIGRP neighbor, and save the results in a way that I can view  later,   even if the router's uplink to the rest of the world is down.
Is there a way to do this? From a  brief skim of the documentation, it doesn't look like I can write the  result to flash?
Edited to add:
I'm trying to do this with an EEM TCL script that detects the EIGRP neighbor change, then starts a traceroute.

Thanks Joe. So far I've written an EEM applet that sends the traceroute results to syslog, which works perfectly (albeit making for weird looking syslog messages).
I then ran that through the applet-to-tcl converter on your webpage, and I've gotten stuck after adding in the code to try writing the results to a file. Bear in mind that I'm learning tcl as I go along... this is what I have (I changed the "a" to "w" from your example, since I want to overwrite the file):
::cisco::eem::event_register_syslog pattern "DUAL-5-NBRCHANGE.*down"
namespace import ::cisco::eem::*
namespace import ::cisco::lib::*
if { [catch {cli_open} result] } {
    error $result $errorInfo
} else {
    array set cli1 $result
if { [catch {cli_exec $cli(fd) "enable"} _cli_result] } {
    error $_cli_result $errorInfo
set f [open "flash:dmvpn_results.txt" "w"]
if { [catch {cli_exec $cli1(fd) "show clock"} _cli_result] } {
    error $_cli_result $errorInfo
puts $f $_cli_result
if { [catch {cli_exec $cli1(fd) "traceroute ip 8.8.8.8 time 1 probe 1 ttl 1 15"} _cli_result] } {
    error $_cli_result $errorInfo
puts $f $_cli_result
if { [catch {cli_exec $cli1(fd) "traceroute ip 4.2.2.2 time 1 probe 1 ttl 1 15"} _cli_result] } {
    error $_cli_result $errorInfo
puts $f $_cli_result
close $f
catch {cli_close $cli(fd) $cli(tty_id)}
I then copied this into flash:/policies/dmvpn_trace.tcl and added this to the config:
event manager directory user policy "flash:/policies"
event manager policy dmvpn_trace.tcl
but I get no file in flash when I test it by bouncing an EIGRP neighbor.
Edited to Add:
I just realized I should run a "debug event manager tcl commands" and got:
can't read "cli(fd)": no such variable
so I'll go back and try to figure that out... I pasted that in from the applet-to-tcl converter but I must have missed something.

Similar Messages

  • VMware Performance Event Triggers use case questions.

    1) Can the CPO VMware Adapter Performance Event Triggers and their
    SAMPLE SIZE, INTERVAL, and CONDITIONS attributes be configured
    for the following use case?
    2) Can VMWare Performance Event Triggers be CORRELATED?  and if so would it be needed to satisfy the use case?
    3) Would an additional performance monitoring tool be required to satisy the use case?:
    If a VM CPU or RAM has been 80% for 2 hours then trigger a workflow
    and
    If a VM CPU or RAM has been at 60% for X days then trigger a workflow

    I will first describe how you could instrument a correlation method, but ultimately, I'm not sure it is really necessary for the uses cases described.
    To correlate VMware performance events over a designated timeframe, you would create a correlation process that tracks the underlying performance event and decides whether or not to trigger the process you want triggered when the correlated event is detected.
    Here's how it works.
    First, create a global table with three columns:
    1) Virtual Machine path
    2) Consecutive Trigger Count
    3) Last Trigger time
    Create a process that is triggered by a VMware performance event (such as Memory Avg > 80%) where you can set a sample size and interval that makes sense given the timeframe of interest (2 hours or X days). For example, a sample size of 10 and interval of 30 seconds (5 minutes) is a reasonable time slice from vCenter for a 2 hour timeframe. This results in requiring 24 consecutive triggers to raise the actual event of interest. (2 hours divided by 5 minutes)
    That is, the formula is:
    Sample Size * Interval / Timeframe = Consecutive Trigger Count
    The correlation process triggered by the raw VMware event does the following:
    1) If there is no existing entry in the global table for the VM, add entry to table with count = 1 and current time
    2) if entry exists, check the current time against the last trigger time
       a) if it is the next interval, for example, current time is 12:15 and last triggered time was 12:10 (see note below),
            Increment counter and set last trigger time 
            If count = 24, then run the process that handles the "VM Memory Avg > 80% for at least 2 hours " and delete entry from table.
           If count < 24, the process exits having only incremented the counter and set the last trigger time
       b) if the current time is > than last trigger time + time slice (+ a little padding), set the counter back to 1
    Note: When comparing current time w/last time, you should pad to account for slight processing delays so compare current-time < last-time+(time slice*2). Anything less than 10 minutes in this case would be considered a consecutive trigger. You could also compare current-time < last-time+time-slice+1, which is probably also safe.
    Now, having gone through all that, you may not need the correlation process after all. Simply adjust your sample size to be large enough to accommodate your ultimate timeframe and you can trigger your event handler directly without the need to correlate. So for the 2 hour window, just create a sample size of 240 (* 30 seconds = 2 hours). This may or may not work depending on how performance metrics have been configured on the server (sample size, intervals and how much is saved). You can only set your own sample and intervals to multiples of those configured values (so be careful and refer to the VMware documentation when relying on such metrics)
    You may find that the correlation method I first described is more reliable, especially for longer timeframes such as X days (where you need to sample hourly rather than every 5 minutes).
    In any case, I think you can do what is asked without external monitoring, but it will require some experimentation and a deeper knowledge of how performance metric sampling works for ESX.

  • How to disable the "turn page" event triggered by the scroll/swipe function?

    The problem is as follows.
    The default behaviour of Acrobat Reader (both stand alone and browser plug-in) is to allow scrolling/swiping with the mouse wheel/trackpad. This is useful when the pdf's page length is greater than the screen's own length, because you can read the pdf with no need to distract your attention from the text to the scrollbar button. However, the same scroll/swipe function turns into a usability problem when the pdf is embedded in a html page and the pdf's page length is smaller than the browser's length. In this case, the scroll/swipe turns the page, distracting your attention from the text to the unintended behaviour of the browser. What happens is that you are so used to scrolling/swiping that you did it unintentionally in the pdf's caption area. You really did not want to turn pages in the pdf. Furthermore, if the pdf takes the whole html page, being a website, the scroll/swipe function flips the website pages in ways that neither the reader nor the writer had ever intended. Hence the question. How to disable, in this case, the "turn page" event triggered by the scroll/swipe function? A JavaScript should do, but the SDK documents did not help so far...
    Message was edited by: 41457173
    Message was edited by: 41457173

    ... or release a patch for the API,
    ... or suggest an alternative route to achieve the intended result.

  • Customers should receive event triggered notification.

    Hi,
              I am suppose to do the e-mail design documentation using sap crm on 1. Customer Receives Event Triggered Notification. and 2. Customer receives the marketing information. on these two topics got no idea on these things at all. Could any one please help me in finding the  material for these and also please describe the overview of these two things.
    Thanks and Regards,
    Venkat.
    Message was edited by:
            venkat ratnam

    Hi,
    I cant say about the documentation but what I know is we have to perform the Scott configuration in the system,Maintain the distriution list in custom table for email detials of the customer & develop an exit which will send the required information on event of saving the document..Hope this will help..
    Thanks

  • Problem in creating Saved Result Set (SRS) in OBIEE 10.1.3.4

    Hi,
    We have migrated Siebel Analytincs 7.8.5 to OBIEE 10.1.3.4, and we are now unable to create any SRS from OBIEE though we can create Segment and marketing cache for the segment.
    We did the following steps -
    1. Unisntall Siebel Analytincs 7.8.5
    2. Install OBIEE 10.1.3.4
    3. Use MIGRATE tool (sawmigrate) to migrate RPD & WEBCAT
    4. We have ALTERed the SRS tables - M_SR_HEADER, M_SR_ACCOUNT (as in OBIEE version there are many new columns have been added)
    5. We passed GLOBAL CONSISTENCY in the RPD
    6. We followed the steps in the document *"Oracle®Marketing Segmentation Guide Version 10.1.3.4 July 2008"*
    7. We created a Saved Result Set Format as instructed in the document - here we are very confused to select the list of columns - we don't know what should be the excat source / format
    8. Then we click the SRS create button
    9. We got the below error -
    Error Codes: QS2QOLYY:GDL67CY9:IHVF6OM7:OPR4ONWY:U9IM8TAC
    Error in getting cursor for WorkNode (Id:0)
    Authentication Failure.
    Odbc driver returned an error (SQLDriverConnectW).
    *State: 08004. Code: 10018. [NQODBC] [SQL_STATE: 08004] [nQSError: 10018] Access for the requested connection is refused. [nQSError: 43001] Authentication failed for Administrator in repository Star: invalid user/password. (08004)*
    Can anyone help us to resolve the issue ?
    A quick response is much much appreciated.
    Many Thanks,
    Prasanta

    Hi,
    It seems like you didnt setup the Administrator user for Saved Result Sets as it mentioned in the Marketing Segmentation Guide.
    Here is an extract from the guide:
    Setting Up the Web Administrator for Managing Cache and Saved Result Sets
    Some queries issued by the segmentation engine require the use of the Execute Physical stored
    procedure. These queries include delete statements on the cache, delete statements on the saved
    result sets, and insert statements for the cache and saved result set. The Execute Physical stored
    procedure must be run by a user with administrator privileges. The administrator user is set up in
    the instanceconfig.xml file.
    NOTE: The BI Administrator password and login parameters are case sensitive.
    To set up the administrative user in the instanceconfig.xml file
    1 Open a command shell and navigate to the <OracleBI>/web/bin, where <OracleBI> represents
    the root directory of the installation.
    2 Execute the following command:
    cryptotools credstore -add -infile <OracleBIData>/web/config/credentialstore.xml
    3 When prompted, enter the following values:
    Credential Alias: admin
    Username: Administrator
    Password: <enter Admin password here>
    Do you want to encrypt the password? y
    Passphrase for encryption: <password >
    Do you want to write the passphrase to the xml? n
    File "<OracleBIData>/web/config/credentialstore.xml" exists. Do you want to overwrite it? y
    4 Open the credentialstore.xml file and verify that the following section has been created:
    <sawcs:credential type="usernamePassword" alias=“admin">
    <sawcs:username> Administrator </sawcs:username>
    <sawcs:password>
    <xenc:EncryptedData>

  • Event triggering by abap class & ISR

    hi gurus
    1 ) can i able to see the event triggering by abap class in SWEL ?  ,
    2) in custom  ISR scenario , new form scenario has been created by our functional consultant , and asking me to trigger a workflow for approval ,  when employee fills that particular ISR FORM , workflow should start and to go his HR administrator , when HR administrator double click on workitem he should get the ISR form in display mode  & also with some descpition text  is to be added in the screen (like user decision description ) with approval button ..... my question is how to trigger a event from in form scenario ? , how to bring the FORM screen to display mode  to the HR administrator ?
    regards
    surya

    Hi Surya
    The BO for ISR forms is BUS7051 - Notification. Turn on the trace via SWELS and create a PCR/ISR form and you should see the events being triggered in SWEL.
    Good Luck
    Ravi

  • Hello! I'm using Aperture with Efex plugins and notice, what when I saving result in plugin and go back to aperture, preview mode is going to grey color and not working until I reboot Aperture. Did you saw this problem?

    Hello! I'm using Aperture with Efex plugins and notice, what when I saving result in plugin and go back to aperture, preview mode is going to grey color and not working until I reboot Aperture. What is intresting - in full screen mode everything works fine. Did you saw this problem?

    It seems there's a workaround here:
    https://discussions.apple.com/thread/5566037?tstart=0

  • Event triggered for checkbox in cl_gui_alv_grid

    Hi All ,
    I have a requirement like ,i give PO number on selection-screen.After execution, the items should be displayed on second screen ,which has some options on the top like before GR or after GR .(custom screen designed with cl_gui_alv_grid for display)
    I desgined checkboxes for each row of the line item.user can click on multiple rows and click on EXECUTE button on the screen.After that smartform should trigger and print .
    Now my query is how to capture the checkboxes which the user has entered (thru cl_gui_alv_grid) . Is there any event that gets triggered upon clicking the checkboxes?? I need the data of the corresponding row to process further .User can click on multiple items.
    Please respond
    Thanks

    Hi Hemanth
    You should have a field in your internal table matching the checkbox column in ALV.
    Call method CHECK_CHANGED_DATA of CL_GUI_ALV_GRID on user command for execute button,
    it will set the field  = 'X' for ticked lines in your internal table.
    Then use a loop on your internal table and find selected lines.
    You don't need an event triggered when user clicks.
    Edited by: Bulent Balci on Aug 3, 2010 4:42 PM

  • Bug in scrollbar event triggering?

    In LabVIEW 8.6, I am trying to fire an event when I finish moving the scrollbar of an array indicator.  I use the "mouse up" event to avoid having the event structure fire constantly the entire time I am moving the scrollbar.  However, there seems to be a bug (?) in the event detection.  It works fine as long as I have the mouse on top of the scrollbar when I release it.  However, Win XP allows you to continue to move the scrollbar even if the mouse is off to the left or right of the bar (when you click on the scrollbar it "locks" the focus onto it).  However, LabVIEW does not seem to realize this and if I have the mouse slightly off to the right of the scrollbar when I release, the event doesnt fire. LV seems to base the event off of whether the mouse is on top of the pixels of the indicator rather than whether I still have control of the scrollbar.

    Technically it is not a bug.  There is no event triggered because when you do the Mouse Up, you are no longer on the scrollbar.  Unfortunately, the behavior in Windows that allows you to continue to move the scrollbar even when you aren't on it is conflicting with the desire to detect when you let go of the scroll bar.
    There was a recent thread discussingthis very issue and a way to get the behavior you are looking for.
    Re: Handle mouse up on numeric slider control - even when mouse leaves control

  • How to realize the other three events triggered by a sequence of events occurs?

    How to realize the other three events triggered by a sequence of events that occurs between Labview, and the time interval between three events for the 50ms?
    1110340053

    Are you another student who feels the need to post their "student ID" number as a part of the message?  There is really no need to do that, it is meaningless to us.
    You should ask your instructor to answer your questions rather than allowing them to turn the whole class of students loose on the forums usually asking the same identical question.
    At least in your case, the question is different from most we've seen.  Unfortunately, you haven't asked a clear enough question for us to understand what you are talking about.
    What "events" are you talking about?  Post a VI that demonstrates the code that you have written so far.

  • Event Triggers not getting executed

    I'm having following code in beforeData(PLSQL) event trigger:
    ADCPackageName.MethodName
    There is no such package in database, even my report works fine and publish data without any error.
    Is there any configuration for enabling event triggers.
    I didn't sufficient documents on event triggers. I want to use them for returning some values to report variables and validating input parameters.

    Hi,
    I tried to use "SAP_WAPI_CREATE_EVENT" also but it is also behaving in the same manner.
    At first execution event is getting triggered but my workitem is not getting terminated.
    But when i am executing the same report second time, again my event is getting triggered, and this time my workitem got terminated, and workflow proceeded furthur.
    I checked it from SWEL, i have two entries for my event (i.e; first and second execution of report).
    Any idea why it is behaving like this.
    Please find below code for reference, apart from below code i have only declarations.
    call function 'SWC_ELEMENT_SET'
      EXPORTING
        element       = 'ActualState'
        field         = 'A'
      TABLES
        container     = it_cont
      EXCEPTIONS
        type_conflict = 1
        others        = 2.
    CALL FUNCTION 'SWE_EVENT_CREATE'
      EXPORTING
        OBJTYPE                       = 'WORKINGWI'
        OBJKEY                        = '000000003061'
        EVENT                         = 'Approve'
    IMPORTING
       EVENT_ID                      = it_event_id
      RECEIVER_COUNT                =
    TABLES
       EVENT_CONTAINER               = it_cont
    EXCEPTIONS
       OBJTYPE_NOT_FOUND             = 1
       OTHERS                        = 2
    COMMIT WORK.
    Regards,
    Amar

  • Strange ZEN logout event triggering

    Strange ZEN logout event triggering
    Hi!
    ZCM 10.3.2, Windows XP/7, Novell Client installed, have a bundle associated to device and should be triggered at ZENworks logout. This all seems to work ok, in ordinary way. But, when user auth is ok with Novell Client (against eDir), but is not attached with DLU via ZEN and appear Windows Workstation login screen and user cancel this dialog and return to Novell Client login screen, then before mentioned bundle is triggered, in some unknown for me reason. Because there is no ZEN login, not speaking about logout. I have similar bundle set to trigger at user login ... it does not run same way. Also, don't see same behavior when bundle is set to run at user logout.
    Any ideas?
    Btw. this kind of cancelling login is seems to related to getting a'lot of Bundle.ItemCreationError's described in http://forums.novell.com/novell-prod...ionerrors.html.
    More thanks, Alar.

    Originally Posted by NovAlf
    Strange ZEN logout event triggering
    Hi!
    ZCM 10.3.2, Windows XP/7, Novell Client installed, have a bundle associated to device and should be triggered at ZENworks logout. This all seems to work ok, in ordinary way. But, when user auth is ok with Novell Client (against eDir), but is not attached with DLU via ZEN and appear Windows Workstation login screen and user cancel this dialog and return to Novell Client login screen, then before mentioned bundle is triggered, in some unknown for me reason. Because there is no ZEN login, not speaking about logout. I have similar bundle set to trigger at user login ... it does not run same way. Also, don't see same behavior when bundle is set to run at user logout.
    Any ideas?
    Btw. this kind of cancelling login is seems to related to getting a'lot of Bundle.ItemCreationError's described in http://forums.novell.com/novell-prod...ionerrors.html.
    More thanks, Alar.
    Hi Alar,
    Do you have any update on you problem because I have the same issue and I am wondering if you found any way to bypass it??
    I found another thread but no solution:
    http://forums.novell.com/novell/nove...ter-login.html
    Thank you in advance for your answer,
    OAKFND
    PS: Zen version is 11.1

  • Squence of events triggered in reports

    Hi all,
               Please specify squence of events trigger. When top-of-page event triggers? When end of selection event triggers
    venkraa

    When u start the Report:
    LOAD-OF-PROGRAM
    INITIALIZATION
    Before displayins Selection Screen:
    AT SELECTION-SCREEN OUTPUT.
    Before leaving Selection Screen:
    AT SELECTION-SCREEN.
    After processing Selection Screen when the List starts:
    START-OF-SELECTION.
    Before displaying the List .. After completing START-OF-SELECTION.
    END-OF-SELECTION.
    For Every page:
    TOP-OF-PAGE .
    END-OF-PAGE.
    For more details check this link -
    Events in Report
    the top of page can put any where in the program..
    end of selection is after selecting data means the population of data is done in the start-of-selection and no data is selected in the end of selection if you write select after the end of selection ...is of no use..
    regards,
    venkat
    regards,
    venkat .

  • Event Triggered process chain

    Hi Experts,
    We have a meta chain which contains two local chain in sequance and consuming 10 hours to complete
    Process Chain 1
    Process Chain 2
    We have used the events to trigger process chain 2 only when it meet certain condition and modified the meta chain as
    Process Chain 1
    Abap Prg to trigger Process chain 2
    But now the meta chain just consume 4 hours to complete even though process chain 2 is on progres.
    This is giving wrong update to the users as the load is completed.
    Is it possible to retain the status of the meta chain as in progress untill the process chain 2 triggered by event gets complets.
    Regards
    Suresh Kumar

    Hi Suresh,
    when you are using event as a process in the metachain, it checks if the event ran succesfullly or not.
    once the event is succesfull(event -  triggering of the process chain but not completion), the step turns green.
    so follow below procedure.
    1)in the abap program, instead of triggering the process chain,write a program which raises an exceptio if the condition you required is satisfied so that the step becomes red.
    use the proicess chain as next step in the process chain and conect this program to processchain step with th condition failure.
    Hope this helps,
    Srinath.

  • Event triggering

    Hi guys,
    I created events in sm64. These events should start a process chain. However when I trigger them manually I do not get the event in the event history nor does my process chain start. Do I have to activate any other stuff for events?
    Thanks in advance.
    Stefan

    Hi,
    You need to assign the EVENT which you have created at the definition of the
    Job scheduling for the process chain. you'll find the 'Event' assignment during
    creating of the job..so, when ever your event triggers you job would get processed
    which is in turn attached to your proces chain/info package.
    Hope this helps..
    assign points if useful..
    Cheers,
    Pattan.

Maybe you are looking for

  • Animated GIF Export issues

    I have a simple Flash animation which I'd like to be made into a transparent GIF. When I do the GIF export, only the first frame of my movieclips (which are placed in the main timeline) get rendered. It seems like Flash only records the main timeline

  • Using wdm driver for 24-bit out

    I'm trying to modify a visual c++ program to play 24-bit wave files using an Audigy LS. (I had been using a 6-bit SB Li've.) I recoded to use DirectSound rather than Playsound. How do I get my program to use the wdm (Directx) driver, which I'm told I

  • Dropped my S230u twist and trying to fix it

    Hi A few months back my thinkpad s230 u twist machine fell off a cushion (couple of feet off) and then when tried to use it, it would boot up but then freeze. Now when I try and boot it tries to go to auto repair, then get a blue screen saying Your P

  • CFC with ORM and REST?

    As a user who's still learning all the ColdFusion in's and out's, I'm just curious about this. Is it possible to make a component both ORM and REST enabled? I have yet to try it but was just doing some reading on both, thought I'd check here first. M

  • Creating Attribute Dimensions

    I have a Cost Center dimension with 10,500 members. I want to quickly tag these cost centers with 2 attributes. 1st is the first 3 characters of the string(8 in total) as company and the 4th position as dept. How can I do this in an automated way sin