Syslog triggered action during 8am – 4pm, Monday – Friday

Hi. I am new to EEM, and have read some postings here before giving this a try. But i Need some help and recommendations.
C6513E Supervisor Engine 720 10GE with s72033-adventerprisek9_wan-mz.122-33.SXH8.bin (does not support some of the command syntax)
C2821 – current IOS no good. What software version would be recommended?
objective: during 8am – 4pm, Monday – Friday, to detect eigrp neighbor, if it goes down, passive the respective interface.
example:
read out Vlan108 from “Neighbor * is down” and execute commands “router eigrp 36” and “passive-interface Vlan108”
May 13 09:32:36: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 36: Neighbor 10.9.3.2 (Vlan108) is down
event manager applet eigrp36_flap
event timer cron cron-entry 0 8 * * 1-5 name MonFri maxrun 28800
event syslog pattern "DUAL-5-NBRCHANGE: IP-EIGRP(0) 36: Neighbor ([^,]+) is down "
action 1.0 regexp "Neighbor \(([^,]+)\) is down" $_syslog_msg match vlan
action 2.0 cli command "enable"
action 3.0 cli command "configure terminal"
action 4.0 cli command "router eigrp 36"
action 5.0 cli command "passive interface $vlan"
action 6.0 cli command "exit"
action 7.0 cli command "exit"
The script is version one and must have some issue with it. I haven't been able to test the script, since the platform/IOS listed above cannot support all the command syntax.
Thanks in advance.
N

If this must run on your 6500, then you'll need Tcl.  This applet will work natively on IOS 12.4(22)T and higher.  For other versions, you'll need to first convert it to Tcl at http://www.marcuscom.com/convert_applet/ and register it as an EEM Tcl policy.
event manager applet passive-eigrp
 event syslog pattern "DUAL-5-NBRCHANGE: IP-EIGRP(0) 36: Neighbor.*is down"
 action 001 cli command "enable"
 action 002 cli command "show clock"
 action 003 regexp "([0-9]+):[0-9]+:[0-9]+ [^ ]+ (Mon|Tue|Wed|Thu|Fri)" "$_cli_result" match hour day
 action 004 if $hour ge 8
 action 005  if $hour lt 16
 action 006   regexp "Neighbor [0-9\.]+ .([A-Za-z0-9\.:]+)" $_syslog_msg match intf
 action 007   cli command "config t"
 action 008   cli command "router eigrp 36"
 action 009   cli command "passive interface $intf"
 action 010   cli command "end"
 action 011  end
 action 012 end

Similar Messages

  • Specific requirements on extraction triggering action

    Hello,
    I have a little bit specific requirements on how to replicate data betweeen two Data Warehouses.
    So I have a DW. This DW recieves data from a lot of source systems.
    Also it have some table, the structure of that table like the following (lets name the table "load_proc_table"):
    source_system, load_start_date, load_finish_date.
    What I need is to perfrorm extracting data from the DW basing on previously obtained value of the load_finish_date:
    1. Init load. Extract data, save current value of the load_finish_date (let it be saved_load_finish_date).
    2. Extract data changes using triggering action: when exists (load_proc_table.load_start_date > saved_load_finish_date AND load_proc_table.load_finish_date IS NOT NULL)
    3. Extract only data changed in time period between load_proc_table.load_start_date and load_proc_table.load_finish_date (all rows in the tables are marked with date/time showing when row)
    So the question: is it possible to save load_finish_date and use it for triggering extraction process?
    And is it possible at all to meet requirements described below using Golden Gate?
    Why I need it: I need to run ETL process only after all the actual data will be trasfered to the destination database (between saved_load_finish_date and last load_finish_date values).
    Thanks.
    Sergey.

    I think you mean the followings:
    You plan to use ETL loading tool to do the initial loading. However, you want to replicate the new data added to DW during the loading time.
    If this is the case, you can start the Oracle GoldenGate extraction when you start the initial load to record the changes. Then start the replicat after the initial loading is done.
    If not, please clarify. May I ask what DB is used for your source DW?

  • Syslog triggered fetch config

    Hi,
    I have an issue with syslog triggered fetch config feature. The problem is that LMS expects Sub-facility to be a part of the syslog message.
    I have set the Facility to be SYS and severity 5. Result? Nothing is happening, because none of our devices send Sub-facility and therefore the automated action will never take place.
    Name:  mail notif
    Devices:  *
    State:  Enabled
    Parameters:  TO=[email protected], SUB=CW RME Syslog AA, TEXT=TEST !
    Action Type:  Email
    Messages:  SYS-*-5-*:*
    The devices send *-*-*:*  messages and not *-*-*-*:*
    If you have any solutions for this silly problem I am all yours
    Martin

    Hi Martin,
    okay....now I understand :-)
    Maybe it is a little bit bad description of syslog messages....but the allocation of the variables is as I wrote before.
    %SYS-5-CONFIG_I: Configure....
    means:
    Facility: SYS
    Sub-Facility: not present -> so it will be a * in the filter
    Severity: 5
    Mnemonic: CONFIG_I
    Description: Configuration..... -> so it will be a * in the filter because I am not sure if there are different descriptions between device types.
    I never saw a syslog message with sub-facility, so I can't tell you how this would look like.
    Is the default auto action for config fetch enabled?
    Do the messages arrive at the LMS server?
    I had the same problem with config fetch some times ago.
    https://supportforums.cisco.com/thread/2026181?tstart=0
    Please check if the auto action for another syslog message is working? If you have a test device you can create a filter for that single device and filter for a special syslog message and send an email to you.
    If this is not working, too, it is possible that you have the same analyser problem then me.
    Sven

  • Ciscoworks RME Syslog Automation Actions

    I set up RME several years ago on our Ciscoworks several running LMS 3.2 to notify us on any BGP flaps via email notification.
    I noticed the last couple maintenance period where we had perform Circuit work with our ISP's. We haven't received any emails....I verified those
    routers are configured to send notifications in the Device Selector and even checked the router logs.
    004161: Nov 20 05:04:52 EST: %BGP-5-ADJCHANGE: neighbor X.X.X.X Down BGP Notification sent
    004162: Nov 20 05:04:52 EST: %BGP-3-NOTIFICATION: sent to neighbor X.X.X.X 4/0 (hold time expired) 0 bytes
    The syslog collector status appears to be normal.....is there anything I need to do the fix this?

    Hi,
    Are you receiving any emails from your LMS server?  If not, navigate to  Common Services > Server > Admin > System Preferences to enter your SMTP settings.
    Identifying the syslog message is one step but there are more.
    AUTOMATED ACTIONS
    Set Up
    By default, Automated Actions are used to notify via email, using the `sampleEmailScript.pl`  as the script to run. If you do not want to use this, you could write  or use your own scripts to perform the action that you really want. In  this case please note that we do not provide support for any custom  scripts if the problem seems to be related to the script that you are  using.
    You still need the following settings:
    1.   Select Devices
    In *RME > Tools > Syslog > Automated Actions* and click on create and select the devices that you wish to use.
    2.   Define Message Type
    Please  give a name to the Automated Action and then click on add to define a  message type. In here, please specify the following values:
        Facility: BGP
        Sub-facility: *
        Severity: 5
        Mnemonic: ADJCHANGE
        Description: *
    3.  Select Automated Action
    Select the default script or the script that you wish to use.  Please note that this script must be located in the *CSCOpx/files/scripts/syslog* file and needs to have only write/execute permissions for casuser/Administrator in Windows.
    This way when a message matching the above is generated, the Automated Action is triggered and this will run the script that you choose and do the commands that it has specified.
    Here is an example:
    If you verify that your setup is correctly configured then take a look at the smtp.log found under ../CSCOpx/log. 
    Thanks.

  • Declarative workflows cannot automatically start if the triggering action was performed by System Account

    Hi , 
    I have very strange problem .Only in one site collection across the farm i am getting this error while starting OOTB workflow in list. Everywhere else it works, even another site collection within same web application. I have stopped and restarted all the
    work flow feature but still same issue?
    sachin

    Errors in ULS logs
    Declarative workflows cannot automatically start if the triggering action was performed by System Account. Canceling workflow auto-start. List Id: %s, Item Id: %d, Workflow Association
    Id: %s
    RunWorkflow: Microsoft.SharePoint.SPException: User cannot be found.   
     at Microsoft.SharePoint.SPUserCollection.get_Item(String loginName)   
     at Microsoft.SharePoint.Workflow.SPWorkflowNoCodeSupport.LoadWorkflowBytesElevated(SPFile file, Int32 fileVer, Int32& userid, DateTime& lastModified)   
     at Microsoft.SharePoint.Workflow.SPWorkflowNoCodeSupport.LoadWorkflowBytesElevated(SPWeb web, Guid docLibID, Int32 fileID, Int32 fileVer, Int32& userid, DateTime&
    lastModified)   
     at Microsoft.SharePoint.Workflow.SPWorkflowNoCodeSupport.<>c__DisplayClass1.<LoadWorkflowBytes>b__0(SPSite elevatedSite, SPWeb elevatedWeb)   
     at Microsoft.SharePoint.Workflow.SPWorkflowNoCodeSupport.LoadWorkflowBytes(SPWeb web, Guid docLibID, Int32 fileID, Int32 fileVer, Int32& userid)   
     at Microsoft.SharePoint.Workflow.SPNoCodeXomlCompiler.LoadXomlAssembly(SPWorkflowAssociation association, SPWeb web)   
     at Microsoft.SharePoint.Workflow.SPWinOeHostServices.LoadDeclarativeAssembly(SPWorkflowAssociation association)   
     at Microsoft.SharePoint.Workflow.SPWinOeHostServices.CreateInstance(SPWorkflow workflow)   
     at Microsoft.SharePoint.Workflow.SPWinOeEngine.RunWorkflow(SPWorkflowHostService host, SPWorkflow workflow, Collection`1 events, TimeSpan timeOut)   
     at Microsoft.SharePoint.Workflow.SPWorkflowManager.RunWorkflowElev(SPWorkflow workflow, Collection`1 events, SPWorkflowRunOptionsInternal runOptions)
    Microsoft.SharePoint.SPException: User cannot be found.   
     at Microsoft.SharePoint.SPUserCollection.get_Item(String loginName)   
     at Microsoft.SharePoint.Workflow.SPWorkflowNoCodeSupport.LoadWorkflowBytesElevated(SPFile file, Int32 fileVer, Int32& userid, DateTime& lastModified)   
     at Microsoft.SharePoint.Workflow.SPWorkflowNoCodeSupport.LoadWorkflowBytesElevated(SPWeb web, Guid docLibID, Int32 fileID, Int32 fileVer, Int32& userid, DateTime&
    lastModified)   
     at Microsoft.SharePoint.Workflow.SPWorkflowNoCodeSupport.<>c__DisplayClass1.<LoadWorkflowBytes>b__0(SPSite elevatedSite, SPWeb elevatedWeb)   
     at Microsoft.SharePoint.Workflow.SPWorkflowNoCodeSupport.LoadWorkflowBytes(SPWeb web, Guid docLibID, Int32 fileID, Int32 fileVer, Int32& userid)   
     at Microsoft.SharePoint.Workflow.SPNoCodeXomlCompiler.LoadXomlAssembly(SPWorkflowAssociation association, SPWeb web)   
     at Microsoft.SharePoint.Workflow.SPWinOeHostServices.LoadDeclarativeAssembly(SPWorkflowAssociation association)   
     at Microsoft.SharePoint.Workflow.SPWinOeHostServices.CreateInstance(SPWorkflow workflow)   
     at Microsoft.SharePoint.Workflow.SPWinOeEngine.RunWorkflow(SPWorkflowHostService host, SPWorkflow workflow, Collection`1 events, TimeSpan timeOut)   
     at Microsoft.SharePoint.Workflow.SPWorkflowManager.RunWorkflowElev(SPWorkflow workflow, Collection`1 events, SPWorkflowRunOptionsInternal runOptions)
    The emailenable value is true. And it just does not work for one site collection. It should not be regarding any hot fix. 
    Thank you for your suggestions and time. I will dig up further.
    sachin

  • Embedded Image triggers action even when disabled - Agentry

    Hi;
    I am working on SAP Work Manager 6.0 customising, using Agentry 6.1.3. I have created these embedded images for triggering actions that act on the current selected object on the current screen. The embedded images have rules to display the enabled image when particular conditions are met and rules to display the disabled image when not met. To my suprise, the buttons still seem to trigger the underlying action even when the button is showing the disabled image. Is this standard Agentry behaviour or there is a particular way I have to implement the underlying action to avoid this?
    Your help is much appreciated!
    Thanks and Regards;
    Sizo Ndlovu

    Hi Stephen;
    Thank you for the response. If I understand you correctly, you are saying I should put an action enable rule based on the enable/disable image, to say only enable action if image = enabled? How would this rule look like?
    Thanks;
    Sizo Ndlovu

  • Syslog Automated Action

    Hi,
    LMS 4.2.3
    The syslog automated action work if we send to one e-mail address the messages.
    Once we set two email-adresses ( comma separeted ) in "send to field", the messages are not received.
    Thanks

    One of the logfiles that gives understandable messages mostly.  :-)
    Cheers,
    Michel

  • Workflow  triggering actions?

    We defined multiple workflow actions for opportunity sales assistant. These actions share a common business logic (WF template), but they should be processed by different groups depending on the actions. 
    Is there a way for us to find out the triggering action at runtime? so we can direct the workflow to the responsible group. 
    We were able to pass the opportunity business object to the workflow container, but it doesn't contain any information of the triggering action.
    Thanks, Yan

    You can't update another object when one object is updated i.e. Custom Object can't be updated automatically using Workflow when Contact Object is updated. You need to use Web Services to do this. All you have to do is define some Integration Events on the Parent object (which triggers the Update) and then based on the Integration EVent, update the Child Object (which needs to be updated).
    BTW, this is not related to Contact On Demand, it is related to CRM On Demand Topic

  • [svn:fx-trunk] 10608: Fix FB-19648: 'Terminate' action during debugging does not close the browser on Mac if path contains spaces

    Revision: 10608
    Author:   [email protected]
    Date:     2009-09-25 16:30:55 -0700 (Fri, 25 Sep 2009)
    Log Message:
    Fix FB-19648: 'Terminate' action during debugging does not close the browser on Mac if path contains spaces
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FB-19648
    Modified Paths:
        flex/sdk/trunk/modules/debugger/src/java/flash/tools/debugger/concrete/PlayerSession.java

    Revision: 10608
    Author:   [email protected]
    Date:     2009-09-25 16:30:55 -0700 (Fri, 25 Sep 2009)
    Log Message:
    Fix FB-19648: 'Terminate' action during debugging does not close the browser on Mac if path contains spaces
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FB-19648
    Modified Paths:
        flex/sdk/trunk/modules/debugger/src/java/flash/tools/debugger/concrete/PlayerSession.java

  • ICal Events Monday-Friday on iPad

    Is there a way to place events on iPad app iCal for Monday-Friday. I am a teacher and I am attempting to place my daily schedule in my iPad. I rather not put everything in 5 times a week with a weekly reminder.
    Thanks
    Leroy T.

    If you talking about repeating events - The iPad calendar app is a WYSIWYG calendar, you can only repeat the events the way that app has built in. You cant set the calendar to repeat events from Monday through Friday and only those day. If you are trying to remove weekends from the view, that's not possible either.
    There are many other calendar apps that may be better suited for your needs.
    https://www.google.com/search?q=best%20iPad%20calendar%20apps

  • LMS4 Syslog automated action anomaly

    LMS 4.2.1 on W2K8 R2
    I just want to send an email for any sev 1 or 2 syslog messages received.  I set up an automated action that looks like this:
    Automated Action Summary
    Name:
    Critical Events Email
    Devices:
    State:
    Enabled
    Parameters:
    TO=[email protected], SUB=LMS4 Syslog AA, TEXT=
    Action Type:
    Email
    Messages:
    *-*-1-*:* *-*-2-*:*
    Yet I seem to be getting emails triggered by messages from ASA devices that are not severity 1 or 2, like:
    %ASA-session-4-106023
    %ASA-auth-3-109023
    %ASA-auth-6-109001
    Am I doing something wrong, or is there some sort of bug I am hitting?  I can't believe that I am the first person to try this.
    Thanks,
    -Jeff

    I do not know what exactly you have done so far but in your situation I would enable the following debugs:
    open that file in a text editor
    NMSROOT\MDC\tomcat\webapps\rme\WEB-INF\classes\com\cisco\nm\rmeng\csc\data\Collector.properties
    and change the debug level from Info to Debug:
        DEBUG_LEVEL=DEBUG
    also enable SyslogAnalyzer debugging here:
    Admin > System > Debug Settings > Config and Image Management Debugging Settings
        Set Application Logging Levels >> SyslogAnalyzer (scroll down)
            set Syslog Analyzer and Syslog Analyzer User Interface from INFO to DEBUG
    in a DOS box check the status of the following processes (the should be started) and restart them:
        pdshow SyslogAnalyzer SyslogCollector
        pdterm SyslogAnalyzer SyslogCollector
        pdexec SyslogAnalyzer SyslogCollector
        pdshow SyslogAnalyzer SyslogCollector
    When the issue happens again check the following log files and post them on the forum:
        NMSROOT\log\SyslogCollector.log
        NMSROOT\log\AnalyzerDebug.log

  • Get element that triggered action

    Hello,
    Does anybody know how to find out which element on the screen triggered the action? Within action method I need to know which element triggered the action.
    Elements are created dynamically and action to them is bound during run time.
    Thank you.

    Example: You have 2 buttons "B1", "B2" and both are assigned the same action. How to know in the action handler which button was pressed?
    Solutions: Event parameter mapping
    B1.mappingOfOnAction().addParameter("Button", "B1");
    B2.mappingOfOnAction().addParameter("Button", "B2");
    Declare an action parameter "Button" of type String. Then at runtime, this parameter will contain "B1" or "B2" depending on the button that was pressed.
    Armin

  • Service desk-Email Triggering Action is not getting scheduled

    Hi,
    I have scheduled an action wherein a mail will be triggered to reporter whenever the status changes.
    But this is not happening inspite of all the proper settings maintained in Conditions for Actions.
    This thing is working properly in my Development system but not working in Production system
    I have tried all the possibilities but still not able to reach any solution.
    Could you please suggest me something.?
    Thanks
    Ritu

    Hi,
    I checked SCOT settings too.
    The action is not getting scheduled only so email triggering will not take place.
    I cant see the action in Transaction Data of support message.
    Please suggest your solution
    Thanks
    Ritu

  • LMS 4.2.5 Syslog/Automated Action/Config mgmt issue

    LMS 4.2.5 on Windows
    We use the server as it's own Syslog server. The Syslog collector status is fine. I see syslogs coming into the server. However, I just made some changes on a router so ran a syslog report on it, but nothing was returned. I Tested the Collector Subscription and everything was fine.
    We also have Automated Actions configured on certain syslog messages (duplex mismatch for example). There is an AA configured to send my team e-mails when this event occurs. There was a device that had two days worth of syslog messages complaining about this issue. Yet, we only received about 10 e-mails from the LMS system on it.
    Another issue is with Configuration Mgmt. I fixed the duplex mismatch listed above and went to check the config tree to see if or when something changed. The last config archive was pretty old and I know changes were made on the device since then. This tells me that the LMS server didn't get notified of the config change or it would have gone out and checked it.
    The one thing in common on all of the above is Syslog messages. LMS will take actions based on receiving these messages and those actions don't seem to be firing.
    Any ideas would be greatly appreciated.
    Thanks,
    Mike S.

    To confirm if the device is sending the syslogs and they are being received by LMS server properly, check the $NMSROOT/log/syslog.log and see it has the syslog from the device.
    Unless syslog is there on syslog.log, we don't expect LMS to react on any AA. 
    For configuration backup, try to sync the device config by initiating a manual job to update the latest configuration from device. Even if there is no Automated Action working, you should still have a reoccurring/scheduled job configured to archive configuration backup periodically.
    Following is a document I created for Syslog troubleshooting :
    Ciscoworks LMS : Syslog in a Nutshell!
    -Thanks
    Vinod
    **Encourage Contributors. RATE Them.**

  • Syslog automated action is not working

    Hi,
    I set the automated actions for EIGRP NBRCHANGE message  ( DUAL-5-NBRCHANGE )
    I would like to get email notifications from CW but it is not working. I've checked that syslog messages arrived to CW.
    Other  e-mail funtions ar working like DFM and RME job email notifications.
    how can i troubleshoot what happened?
    Regards,

    What version of RME are you using?  Make sure the message shows up in the RME syslog Standard Report.  If the message isn't making it to the database, then it will definitely not trigger an automated action.  Check your SMTP settings under Common Services > Server > Admin > System Preferences, and use a sniffer to capture tcp/25 traffic when one of these messages arrives to see if the SMTP server is accepting the email message.

Maybe you are looking for

  • Can Apple replace my macbook pro (mid 2012) retina's battery if I think that the battery health has gone bad/in need of and renewal?

    Can Apple replace my macbook pro (mid 2012) retina's battery if I think that the battery health has gone bad/in need of and renewal??? I've had my Macbook for about 11 months now and i use it every day; its gone though about 420 cycles of charging an

  • Inserting new table data into database

    Hi, im trying to find out if i can insert a row of data into a mdb table. basically i have a List of Client objects for an application, and im iterating through this list. Now i take out an object and my aim is to place the details of that Client int

  • Designer ES2

    According to this link  -  http://www.adobe.com/devnet/livecycle/articles/lcdesigneres2_whats_new.html  -  Acrobat Extended 9 owners should be able to obtain Designer ES2 as an update,  but the Customer Service of BOTH LiveCycle and Acrobat don't kno

  • The great 2 am wake up call

    I'm really starting to get irritated and ****** off. Every day at 2 am my husbands phone resets over and over again until we power it off.  From looking around I cannot find if there is a resolution to this or not.  We both have the Droid incredible

  • Any way to log email sent from websites?

    In pouring over my logs, I am trying to figure out if email that is outgoing is logged.  It doesn't look like it.  Specifically, I see the clients i expect and I see attempts to login -- most using plaintext which is turned off. I don't see where ema