DX NetOps Manager

Expand all | Collapse all

Event Procedure with Multiple variables

  • 1.  Event Procedure with Multiple variables

    Posted 05-24-2019 07:34 AM

    Fellow Spectrum admins,

     

    I am trying to create an event using Event Procedure and define 2 variables in it: Event title (0x12b4c) and status (0x11f4f), using the EventDisp entry below:

     

     

    0xfff00042 E 0 P "CreateEventWithVariables(\
    {C CURRENT_MODEL},\
    {H 0xfff00060},\
    SetEventVariable(\
    SetEventVariable(\
    GetEventVariableList(),\
    {H 0x11f4f},\
    GetEventVariable({U 1})\
    ),\
    GetEventVariableList(),\
    {H 0x12b4c},\
    Append({S \"DNS RESOLUTION FAILURE - \"},GetRegexp( GetEventVariable({ U 0 }), { S \"DNS request failed for server (.*)\" }, { U 1 } ))\
    )\
    )"

     

    Could someone please help me in pinpointing the error? I've spent my quote of neurons for the day

     

    Thanks!

    Zacchi



  • 2.  RE: Event Procedure with Multiple variables

    Posted 06-03-2019 02:20 AM
    Hi all,

    I have managed to make it work.
    0xfff00042 E 0  P " \

    CreateEventWithVariables( \

    {C CURRENT_MODEL}, \

        {H 0xfff00060}, \

    SetEventVariable( \

    SetEventVariable( \

    GetEventVariableList(), \

    {H 0x12b4c}, Append({S \"DNS RESOLUTION FAILURE - \"}, GetRegexp( GetEventVariable({ U 0 }), { S \"DNS request failed for server (.*)\" }, { U 1 } ))

    ), \

    {H 0x11f4f}, Append({S \"\"}, GetRegexp( GetEventVariable({ U 0 }), { S \"DNS request failed for server (.*)\" }, { U 1 } ))

    )\

    )"