DX NetOps

  • 1.  Addition of extra attribute in event message for alarm

    Posted Jan 31, 2018 04:22 AM

    Hi,

     

    I need a requirement in ca spectrum alarm for bad link detected where I want below details

     

    1. In the event message I want interface if-alias attribute to be displayed.

    2. In the Alarm title, I want title like bad link detected on device, Interface, If-alias

     

    Can the above requirement achievable, If yes kindly guide me with the solution.

     

    Regards,

    Vishnu Prasad



  • 2.  Re: Addition of extra attribute in event message for alarm

    Posted Jan 31, 2018 05:16 AM


  • 3.  Re: Addition of extra attribute in event message for alarm

    Posted Jan 31, 2018 05:27 AM

    Hi,

     

    Thanks for the response.

     

    Is there any detailed step by step document for this process available?

     

    In the link stated by you, It was clearly mentioned not to customize 10d11 event. But my requirement is to add if_alias attribute in 10d11 event.

     

    Regards,

    Vishnu Prasad



  • 4.  Re: Addition of extra attribute in event message for alarm

    Posted Jan 31, 2018 06:27 AM

    Hi,

     

    No problem, is your end requirement to see the IF-Alias attribute in the emails?

     

    Thanks



  • 5.  Re: Addition of extra attribute in event message for alarm

    Posted Jan 31, 2018 06:51 AM

    Hi,

     

    I want to see IF-Alias attribute in event message of the alarm generated.

     

    We are not triggering an emails from Spectrum.

     

    Thanks



  • 6.  Re: Addition of extra attribute in event message for alarm

    Broadcom Employee
    Posted Jan 31, 2018 10:25 AM
      |   view attached

    You’re going to need to use event procedures to do this, and I would highly recommend that you use the internal X_if_Alias attribute and not the external ifalias attribute.

     

    Here’s info on event procedures:

     

    https://docops.ca.com/ca-spectrum/10-2-2/en/managing-network/event-configuration/how-to-use-procedures-in-event-processing

     

    And here’s some info on using one to add the info to the alarm title:

     

    https://communities.ca.com/thread/241694347

     

    Cheers!

    Jay



  • 7.  Re: Addition of extra attribute in event message for alarm

    Posted Feb 01, 2018 03:54 AM

    Hi Jay,

     

    I already tried as stated by you by referring to some of the posts i n communities and written as below in EventDisp file but still no luck.

     

    0xfff00001 E 50 P " \
    CreateEventWithAttributes( \
    { C CURRENT_MODEL }, \
    { H 0x00010d11 }, \
    SetEventAttribute( \
    GetEventAttributeList(), \
    { U 20 }, \
    ReadAttributeInstance( \
    { C CURRENT_MODEL }, \
    { H 0xaaf7e }, \
    GetEventAttribute( { U 8 } ))))"
    0xfff00001 E 50

     

    Can you look into above procedure and let me know in case of any changes that need to be done for this.

     

    Regards,

    Vishnu Prasad



  • 8.  Re: Addition of extra attribute in event message for alarm
    Best Answer

    Broadcom Employee
    Posted Feb 02, 2018 06:27 AM

    Hi Vishnu,

     

    From Jason´s link above, you would need to follow the example that Joe Ackley wrote previously.

     

    ----

    You will need to use an Event Procedure with the Append parameter. The following is an example:

     

    0xfff00000 E 0 P "CreateEventWithVariables({ C CURRENT_MODEL },{ H 0xfff00001 },SetEventVariable (GetEventVariableList(),{ H 0x00012b4c },Append({ S \"Alarm: \" },Append(Append({ S \"\" },GetEventVariable ( { U 103 } )),Append({ S \" Job: \" },Append (Append ({ S \"\" },GetEventVariable ( { U 104 })),Append ({ S \" Event: \" },GetEventVariable ( { U 101 } ))))))))"

     

    In the above example, the resulting Alarm Title will have the following format:

     

    Alarm: <Value of varbind 103> Job: <Value of varbing 104> Event: <Value of varbind 101>

     

    ----

     

    Best regards,

    Glenn