DX NetOps

 View Only

  • 1.  add RELATION_SIDE_RIGHT model to bad link detected alarm

    Posted Nov 18, 2024 07:41 AM

    Hi All,

    I have created event procedure to add right side connected device details to "BAD LINK DETECTED" alarm, but its not fetching connected device (Neighbor) details.

    Please help me to fix event procedure

    0x10d11 E 10 P "\
    CreateEventWithVariables (\
                        {C CURRENT_MODEL},\
                        {H 0xfff00118},\
                        SetEventVariable (\
                            GetEventVariableList(),\
                            {U 100},\
                            ToString(ReadAttribute(\
                                GetElement(\
                                    GetModelsByRelationId(\
                                        {C CURRENT_MODEL},\
                                        {H 0x10005},\
                                        {C RELATION_SIDE_RIGHT}),\
                                    {U 1})),{ H 0x1006e})))"
    0xfff00118 E 10 A 3,0x1040a



  • 2.  RE: add RELATION_SIDE_RIGHT model to bad link detected alarm

    Broadcom Employee
    Posted Nov 18, 2024 08:15 AM

    What details from the connected device are you looking for?




  • 3.  RE: add RELATION_SIDE_RIGHT model to bad link detected alarm

    Posted Nov 18, 2024 08:21 AM

    HOstname name of connected device should be in alarm title or part of alarm description




  • 4.  RE: add RELATION_SIDE_RIGHT model to bad link detected alarm

    Broadcom Employee
    Posted Nov 18, 2024 08:56 AM

    From the look of the Event Procedure, you are saving the model name of the neighbor to event variable 100 ({U 100}).

    Starting with Spectrum 23.3.7, you can add event variables to the alarm title:

    Use Event Table Variables for Dynamic Alarm Titles

    Spectrum now allows you to use Event table variables for dynamic alarm titles. This enhancement ensures that alarm titles display the actual value present in the Event table, rather than just the lookup number of the table. By providing users with accurate information directly in the alarm title, this ability streamlines the troubleshooting process.

    For more information, see Use Event Table Variables for Dynamic Alarm Titles.

    One thing to note though, you are modifying the 0x10d11 by adding an Event Procedure and removing the out of the box alarming. The following is the out of the box configuration of the 0x10d11 event:

    0x00010d11 E 50 A 3, 0x0001040a

    The out of the box configuration of the 0x10d11 event should not be changes as it can cause undesirable results. Reference Event and Alarm Customization. You can ADD to the out of the box configuration but not change it. I recommend to change your event procedure as following:

    0x00010d11 E 50 A 3, 0x0001040a P "\
    CreateEventWithVariables (\
                        {C CURRENT_MODEL},\
                        {H 0xfff00118},\
                        SetEventVariable (\
                            GetEventVariableList(),\
                            {U 100},\
                            ToString(ReadAttribute(\
                                GetElement(\
                                    GetModelsByRelationId(\
                                        {C CURRENT_MODEL},\
                                        {H 0x10005},\
                                        {C RELATION_SIDE_RIGHT}),\
                                    {U 1})),{ H 0x1006e})))"
    0xfff00118 E 10 A 3,0x1040a

    Regards,

    Joe




  • 5.  RE: add RELATION_SIDE_RIGHT model to bad link detected alarm

    Posted Nov 18, 2024 09:06 AM

    You should receive the model_handle on your request, you need to add a procedure the extract the value of the attribute model_name and to push it in the event. 



    ------------------------------
    Cătălin Fărcășanu
    Senior Consultant
    SolvIT Networks
    ------------------------------