DX NetOps

  • 1.  Procedures / Dynamic alarm title

    Posted Apr 03, 2018 09:09 AM

    Hello CA,

     

    We are trying to make a procedure to enhance our alarm title with some attributes from a trap.

    The procedure is a copy/past of :

    Dynamic Alarm Title Configuration for Border Gatew - CA Knowledge 

     

    This is the procedure:

    0xfff00004 P "CreateEventWithVariables({C CURRENT_MODEL},{H 0xfff0023a},SetEventVariable(GetEventVariableList(), {H 0x12b4c},Append({S\"Interface up down 100x in 3h, Interface:\"},ToString(GetEventVariable({U3})))))"

     

    This is the allsaying error:

    Procedure did not parse successfully (error reason: Procedure parsing failure) for event 0xfff00004 on line 285 of event disposition file ../custom/Events/EventDisp
    0xfff00004 P "CreateEventWithVariables({C CURRENT_MODEL},{H 0xfff0023a},SetEventVariable(GetEventVariableList(), {H 0x12b4c},Append({S\"Interface up down 100x in 3h, Interface:\"},ToString(GetEventVariable({U3})))))"

     

    Kind regards,

    Lieven Stubbe

    Belgian railways



  • 2.  Re: Procedures / Dynamic alarm title

    Broadcom Employee
    Posted Apr 03, 2018 10:52 AM

    Hi Lieven,

     

    If this is just a copy/paste of the procedure outlined in the knowledge article, can you please elaborate on why you added the "ToString" entry at the end of the procedure?

     

    Best,

     

    Harold



  • 3.  Re: Procedures / Dynamic alarm title

    Posted Apr 04, 2018 02:31 AM

    Hi Harold,

     

    In some chats on the CA community/Google people resolved some issues by transforming the dynamic variable to a string. I removed the ToString, but things stay the same.

    What am I doing wrong?

     

    Kind regards,

    Lieven Stubbe

    Belgian railways



  • 4.  Re: Procedures / Dynamic alarm title

    Posted Apr 05, 2018 08:14 AM

    If we break it down, and take away the ToString for the GetEvent Variable: 

     

    0xfff00004 P " \
       CreateEventWithVariables( \
       {C CURRENT_MODEL}, \
       {H 0xfff0023a}, \
       SetEventVariable( \
          GetEventVariableList(), \
             {H 0x12b4c}, \
             Append({S\"Interface up down 100x in 3h, Interface:\"}, \
             GetEventVariable({U3}) \

            ) \
          ) \
       ) \
    )" 

     

    It looks to me there's a parenthesis too much at the end.



  • 5.  Re: Procedures / Dynamic alarm title
    Best Answer

    Posted Apr 05, 2018 08:54 AM

    The following parses without any errors:

     

    0xfff00004 P " \
    CreateEventWithVariables( \
    { C CURRENT_MODEL }, \
    { H 0xfff0023a },\
    SetEventVariable(\
    GetEventVariableList(),\
    { H 0x00012b4c },\
    Append( \
    { S \"Interface up down 100x in 3h, Interface: \" },\
    GetEventVariable( { U 3 } ) ) ) )"