Display VRF description in Syslogs (Can it be done?)

Hello everyone,
I'm rather new to the forums and my searching hasn't been quite as successful as I had hoped.
As the title suggests, I'm trying to collect additional information in my syslogs.
Below is the output of one to be used as an example:
Device:
Cisco IOS Software, C3900e Software (C3900e-UNIVERSALK9-M), Version 15.2(4)M2, RELEASE SOFTWARE (fc2)
"The Router named R1 with IP 1.1.1.1 sent the following syslog at 08:07:01 PM:
PassiveMonitor.Payload.Message=<1>11111: 111111: Dec 20 20:06:56.333 CST: %BGP-5-ADJCHANGE: neighbor 2.2.2.2 vpn vrf 333 Down BGP Notification received"
(I've modified the output just a little, but the situation stays the same.)
From what I've read, it seems like I could do this via scripting but I'm rather unfamiliar the scripting that can be used in IOS. I'm currently reading about TCL and its capabilities but I was curious of this is the right path or if I could get the same results in an easier way.
The reasoning behind this is that this device has 300+ VRFs configured and each one is quite specific to its own environment. We've assisted configuration by adding descriptions to each one, but when it's not included in a syslog it makes troubleshooting that much harder. It would be nice to know which environment is in question when these logs are received.
Many thanks as this is something that's been troubling me for quite some time.

Thank you for the assistance on this!
Here is what I came up with after reading your suggestion:
(I've created two. One to alert that it's down, the other to alert that it's back up.)
This is my first completed EEM, could you verify it for accuracy?
event manager applet vrf_down
event syslog pattern "vpn vrf ([0-9]+) Down"
action 1.0 regexp "vpn vrf ([0-9]+)" $_syslog_msg match vnum
action 2.0 if $_regexp_result eq 1
action 3.0 cli command "show ip vrf detail $vnum | sec Description"
action 4.0 regexp "Description: (.*)" $_cli_result match desc
action 5.0 syslog msg "BGP for VRF: $vnum - ( $desc ) has been dropped."
action 6.0 end
event manager applet vrf_up
event syslog pattern "vpn vrf ([0-9]+) Up"
action 1.0 regexp "vpn vrf ([0-9]+)" $_syslog_msg match vnum
action 2.0 if $_regexp_result eq 1
action 3.0 cli command "show ip vrf detail $vnum | sec Description"
action 4.0 regexp "Description: (.*)" $_cli_result match desc
action 5.0 syslog msg "BGP for VRF: $vnum - ( $desc ) has recovered."
action 6.0 end

Similar Messages

  • How to display a description and make validations

    Hello colleagues...
    As most of you I'm coming from a Forms background and I'm triying to understand some techniques.
    But my question is If have a simple PL/SQL block to display a descripction and make some validations, How can I do the same task using Jdeveloper? for example: I have the follwing PL/SQL in and KEY-NEXT-ITEM trigger.
    DECLARE
    v_status varchar2(1):=null;
    BEGIN
    SELECT department_description, department_status
    INTO :block.department_description, v_status
    FROM departments
    where department_id = :block.department_id;
    if v_status = 'D' then
    message('The department is disable...');
    raise form_trigger_failure;
    end if;
    next_item;
    EXCEPTION
    when no_data_found then
    message('The department you typed does not exist...');
    raise form_trigger_failure;
    END;
    in this case I'm displaying the description of a department and I've validated that the department has to exists and has to be enable. both tasks in the same block.
    How can I don the same thing using Jdeveloper and ADF Business Components?
    Rafael Enrique Martinez.

    Both of these are explained in the ADF Developer Guide that you should read.
    Your view object can contain information from multiple tables (with one being the main/updateable table, and the other being read only). This is how you take part of the first issue.
    http://download.oracle.com/docs/html/B25947_01/bcvoeo003.htm#sm0176
    The validation can be assigned directly to the attribute you want to validate.
    Just add a validation to the attribute in the entity object.
    http://download.oracle.com/docs/html/B25947_01/bcentities007.htm#sm0152

  • In the report we have to display DAY DESCRIPTION(Ex:Monday,Sunday,...)

    In the report we have to display DAY DESCRIPTION(Ex:Monday,Sunday,...)in  columns. How to get it? Can anyone help me?
    Thanks in Advance

    If we put calday in dril down we can display mm/dd/yyyy formate. Instead of this we have to display monday,tuesday,wednesday etc. corresponding to that date.
    In the repot level if i go to properties there is no option for key and text. i think time charecteristics don't have that type of option.
    If any doughts plz let me know
    thanks 4 ur reply

  • Custom Infotype - to display the description  in query ouput!!

    I have created a Custom Infotype  and when I run a Infoset Query against the custom infoset, the field is getting displayed but not the description.
    For Ex
    ADP Infotype Company Code A11 - America
                           Company Code A12 - Africa
                                                    A13 - Russion,
    My issue is, when i run the query, the three letter code (A111, A12) is getting displayed but not the descripton itself.
    Can some one please let me know how to display the description in the output when we nun the infoset Query.
    Thanks for your assiance!!

    Hi,
    Have u given proper Data element and Domain to the field?
    Generate the Query again.
    Manoj

  • How to display a description in fact table from an unrelated DIM table in powerpivot?

    Hello,
    I have two tables in powerpivot 2010: 1 that is my fact and the is unrelated. I'm relatively new to SQL and powerpivot.
    What I need to do is display a description from my DIM table based on a column in my fact. Is this possible? In my fact, I
    have  a ReasonID, the DIM has the ReasonID and description. I just need the description added in my fact as a new /
    another column. Thanks. John

    Hello,
    When you have the same column in both tables, then they are related, even if in database no primary / foreign key is defined. In PowerPivot we can define additional / manual relation, just Change to "Diagram View" and define the relation like below:
    But if you still want the "Dim description" as a computed column in your fact table, then you can use the
    LOOKUPVALUE function
    =LOOKUPVALUE(Dim01[Description], Dim01[ReasonId], Fact01[ReasonId])
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Display Value/Description in Lookup During Request-Based Provision

    Hello everyone! I'm currently using a lookup for a list of values during a request-based provision. I've created the request page, however, selecting the attributes isn't working the way I would like it to. For whatever reason, it's only displaying the Description or Decode value during the request. However, during direct-provisioning, I can see both, and when I choose one, the Value or Encode value is what is propagated to the OID. How can I configure my request-based lookup to show both the value and the description like it is shown during a direct provision? Here is the metadata I'm using:
    <AttributeReference
    available-in-bulk = "true"
    length = "50"
    widget = "text"
    type = "String"
    attr-ref = "UD_ULHOST"
    name = "Unix Linux Hosts">
    <AttributeReference
    name = "Host"
    attr-ref = "Host"
    type = "String"
    length = "50"
    widget = "lookup"
    available-in-bulk = "true"
    lookup-code="ULHst">
    </AttributeReference>

    Can I designate my lookup code in that, though?
    I have a lookup named LKTst with the following
    Encode Decode
    ServerA Group1
    ServerB Group1
    ServerC Group2
    Can I still reference this lookup from the query? And if so, how?
    Thank you for your help!

  • Firefox does not display item description while in EBAY.

    In Firefox I log on to EBAY. Any item that I call up does not display the description nor did IE 8. I upgraded IE 8 to IE 9 and EBAY now works in IE 9.I have set off the forged wed site message. I have installed latest Firefox, Realplayer and Flash player. I am running Kaspersky firewall, and several malware scan and registry fixers.
    The operating system is a current Windows 7.
    Ebay says it is not their problem yet the symptoms occurred when they changed how they display the description for an item.
    Need help.
    Thanks
    Mike

    Hi,
    You can try to '''Clear Now''' the '''Cache''', '''Cookies''', and '''Site Preferences''' in '''Tools''' ('''Alt''' + '''T''') > [https://support.mozilla.org/en-US/kb/Clear%20Recent%20History Clear Recent History].
    For optimal firewall/AV/other security software configuration, please see [https://support.mozilla.org/en-US/kb/Firewalls this]. Ideally Firefox and its processes/related files should have full trust in all the modules/configuration areas of the security software - a genuine/original Firefox installer as well as all the installed EXEs (Application) and DLLs (Application extension) are digitally signed by Mozilla Corporation (right-click > Properties > Digital Signatures).
    [http://kb.mozillazine.org/Firewalls AV/Firewalls Configuration]
    You may also have to restart the PC before the new rules sink in completely.
    If problems persist, you may also want to Reset Firefox and start afresh.
    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!

  • Displaying the description using a Named List of Values

    Hi All,
    Can anyone help me to display just the Description rather then Value on an updateable report using a Named List of Values.
    Thanks
    Arif

    Hi
    Create the named list of values. Go to the Report Attributes and then to the column attributes page for the column that you want to be displayed as description. In Tabular Form Element section select Display As: Select List (named LOV). Then in the List of Values section select the LOV that you created in the Named LOV. Set Display Extra Values to No.
    -Priyanka

  • I want display account description per perticular  code_combination_id

    Hi
    Can any one give the query, I want display account description per perticular code_combination_id, Where this account discription will store?

    Hi.
    Use either of the below queries:
    Query 1.
    =====
    select ffv.description
    from fnd_id_flex_structures ffst
    ,fnd_id_flex_segments ffse
    ,fnd_flex_value_sets ffvs
    ,fnd_flex_values_vl ffv
    where ffst.application_id = 101
    and ffst.id_flex_code = 'GL#'
    and ffst.id_flex_structure_code = '<<Your Accounting Flexfield Structure Name>>'
    and ffst.application_id = ffse.application_id
    and ffst.id_flex_code = ffse.id_flex_code
    and ffst.id_flex_num = ffse.id_flex_num
    and ffse.flex_value_set_id = ffvs.flex_value_set_id
    and ffvs.flex_value_set_id = ffv.flex_value_set_id
    and ffse.segment_name = '&Segment_Name'
    and ffv.flex_value = '&value'
    Query 2:
    =====
    select id_flex_num
    from fnd_id_flex_structures
    where application_id = 101
    and id_flex_code = 'GL#'
    and id_flex_structure_code = '<<Your Accounting Flexfield Structure Name>>'
    select ffv.flex_value
    ,ffvv.description
    ,ffvs.FLEX_VALUE_SET_ID
    ,ffse.segment_name
    from fnd_id_flex_structures ffst
    ,fnd_id_flex_segments ffse
    ,fnd_flex_value_sets ffvs
    ,fnd_flex_values ffv
    ,fnd_flex_values_vl ffvv
    where ffst.application_id = 101
    and ffst.id_flex_code = 'GL#'
    and ffst.id_flex_num =50134 -- This is derived from the first part of Query 2
    and ffst.id_flex_num = ffse.id_flex_num
    and ffse.segment_name = <SegmetName>
    and ffse.flex_value_set_id = ffvs.flex_value_set_id
    and ffvs.flex_value_set_id = ffv.flex_value_set_id
    and ffv.flex_value_id = ffvv.flex_value_id
    and nvl(ffvv.end_date_active,SYSDATE) >= SYSDATE
    Hope this helps.
    Cheers
    JD

  • I need to read data from a text file and display it in a datagrid.how can this be done..please help

    hey ppl
    i have a datagrid in my form.i need to read input(fields..sort of a database) from a text file and display its contents in the datagrid.
    how can this  be done.. and also after every few seconds reading event should be re executed.. and that the contents of the datagrid will keep changing as per the changes in the file...
    please help as this is urgent and important.. if possible please provide me with an example code as i am completely new to flex... 
    thanks.....  

    It's not possible to read from a file without using classes from the core API*. You'll have to get clarification from your instructor as to which classes are and are not allowed.
    [http://java.sun.com/docs/books/tutorial/essential/io/]
    *Unless you write a bunch of JNI code to replicate what the java.io classes are doing.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • My printer menu is no longer displaying in English. I can't read the display to try to troubleshoot

    My boss' printer HP Color LaserJet CP2025 - menu no longer displays in English. I can't read the display to troubleshoot or reset. Is there another way to change the setting?

    I have not verified these steps, but this is what I located:
    A. To change the display language back to English, please perform the following steps:
    1. Press the right arrow 2 times, press the OK button (you should be in the System Setup menu).
    2. Press the OK button again (you should be in Language). 
    3. Press the right arrow until you see something that may be English, press OK button. The menu is a continuous loop, so if you miss it the first time the option will return.
    007OHMSS
    I was a support engineer for HP.
    If the advice resolved the situation, please mark it as a solution. Thank you.

  • Problem in displaying the description of item

    Hi,
    I am working on a report of production order and i want to display the description of the Item but the problem the matnr is stored in ITPO1 AND i am displaying the values of ITPO5 which contains the difference value of qty of Item . To display the quantities i am using the table AUFM and i want to display the description of the production order Item which is stored in the ITPO1 .
    I am declaring the value of item in the ITPO5 and writing this select single query but it is not displaying the data.
    LOOP AT ITPO5.
          SELECT SINGLE MAKTG FROM MAKT INTO ITPO5-ITEMDESC WHERE MATNR = ITPO1-MATNR.
          WRITE: / ITPO5-AUFNR,ITPO5-ITEMDESC,ITPO5-I_QTY.
          TOT_QTY = TOT_QTY + ITPO5-I_QTY.
        ENDLOOP.
    Plzz provide me guidelines how to solve this problem.

    HI,
    Check this way..
    LOOP AT ITPO5.
    LOOP AT ITPO1 WHERE AUFNR = ITPO5-AUFNR.
    CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
      EXPORTING
        input              = ITPO1-MATNR
    IMPORTING
       OUTPUT             = ITPO1-MATNR
    EXCEPTIONS
       LENGTH_ERROR       = 1
       OTHERS             = 2 .
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    SELECT SINGLE MAKTG FROM MAKT INTO ITPO5-ITEMDESC WHERE MATNR = ITPO1-MATNR.
    IF SY_SUBRC EQ 0.
    WRITE: / ITPO5-AUFNR,ITPO5-ITEMDESC,ITPO5-I_QTY.
    TOT_QTY = TOT_QTY + ITPO5-I_QTY.
    ENDIF.
    ENDLOOP.

  • I am using my Description as the caption on Slideshow.  I ticked the "Show Title Slide" button and iPhoto physically copied the description on the first slide onto the end of every other description.  I can find no way of removing them other than by hand.

    I am using my Description as the caption on Slideshow.  I ticked the "Show Title Slide" button and iPhoto physically copied the description on the first slide onto the end of every other description.  I can find no way of removing them other than by hand.  Unticking the "show title slide" did not reverse the situation back to my required state.   Any ideas why it might have happened or how it might br resolved?   Regards, Marshfrog1

    Attached is Dennis Linam’s Audition – “Log File” and “Log – Last File”
    Contact information Dennis [email protected]
    Previous contact information with your organization (DURIM):
    Dennis - i just finished my audition trial and bought the subscription the 2014 version.
    created by durin in Audition CS5.5, CS6 & CC - View the full discussion 
    DURIM - Okay.  I would expect the "Cache Warning" message because your default directories would not be the same as the ones in the settings file I generated.
    If you go back to the "7.0" directory and open the "Logs" folder, can you copy the "Audition Log.txt" file and send it as an attachment to [email protected]?  We'll take a look in that logfile and see if it gives us more information about why this is failing now.
    Also, do you have any other Adobe applications installed on this machine, such as Premiere Pro?  If so, do they launch as expected or fail as well?
    I do have the trial Pro version of Adobe reader, but I have not activated it, because I fear the same thing will happen did it. I cannot afford to activate the subscription for that product and take the chance of it not working either. I depend on those two programs religiously. Here is the files that you requested. I appreciate any help you can give me to get this audition program started
    Audition Log- file
    Ticks = 16       C:\Program Files (x86)\Common Files\Adobe\dynamiclink\7.0\dynamiclinkmanager.exe
    Sent from Windows Mail

  • I would like to add content that changes on a calendar basis, such as 'thought for the day". It can then display a different text or image on a nominated day. Can this be done? Robert.

    I would like to add content that changes on a calendar basis, such as 'thought for the day". It can then display a different text or image on a nominated day. Can this be done? Robert.

    OK Thanks Brad.
    I could use Tockify of course, but wanted to create the same things on an existing site.
    I do not know how to copy the code and get it onto Muse, but that’s OK for now. I will work something else out.
    Robert

  • HT201364 texmate and git 1.8.4.2 won't work on OS X Mavericks. I've downloaded them repeatedly and the following errors display "Textmate is damaged and can't be opened"  and Git states "can't be opened because it's from an unidentified developer". Please

    texmate and git 1.8.4.2 won't work on OS X Mavericks. I've downloaded them repeatedly and the following errors display "Textmate is damaged and can't be opened"  and Git states "can't be opened because it's from an unidentified developer". Please help!

    MedlockDustin,
    for TextMate, you’ll need to download TextMate 2.0 alpha, since earlier versions of TextMate aren’t supported on Mavericks. The file will be named “nightly”; save it to your desktop. Once the “nightly” file has finished downloading, rename it to “TextMate.app.tar.bz2” — that will give it the “BZ” icon on your desktop. Once it’s been renamed, you can double-click on it, and TextMate.app will appear on your desktop. Use your administrative login to move TextMate.app to your Applications folder.
    Regarding the “unidentified developer” message displayed by trying to open git 1.8.4.2, please refer to this Apple page for the workaround.

Maybe you are looking for