DX NetOps

 View Only
  • 1.  Dynamic Alarm title

    Posted Jun 05, 2018 10:49 AM

    Hello,

     

    I have a problem to display a dynamic alarm title.

    In EventDisp File, there is a code :

     

    0x5b10152 P "CreateEventWithVariables(\
                                                 {C CURRENT_MODEL},\
                                                 {H 0x5e100078},\
                                                 SetEventVariable( GetEventVariableList(), {H 0x12b4c},\
                                                                   Append(GetEventVariable({U 1}),{S\" - A FAN FAILURE HAS BEEN DETECTED\"})\
                                                                 )\
                                               )"

     

    but when that alarm appears in my oneclick console,  the column "alarm title" is empty.

     

    can you help me please ?

     

    Best regards,

    Jeremy

     


  • 2.  Re: Dynamic Alarm title

    Posted Jun 05, 2018 11:20 AM

    Hi Jeremy,

     

    Please have the space between S and \" - A FAN FAILURE HAS BEEN DETECTED\" in the Append section of the procedure.

     

    Append(GetEventVariable({U 1}),{S \" - A FAN FAILURE HAS BEEN DETECTED\"})

     

    Also make sure that, the event 0x5e100078 is set to generate an alarm (Minor, Major, Critical and etc.)

     

    Regards,

    Rajashekar



  • 3.  Re: Dynamic Alarm title
    Best Answer

    Posted Jun 05, 2018 01:09 PM

    I got the following to work in my lab:

     

    0x5b10152 P " \
    CreateEventWithVariables( \
    { C CURRENT_MODEL }, \
    { H 0xfff00000 },\
    SetEventVariable(\
    GetEventVariableList(),\
    { H 0x00012b4c },\
    Append( \
    { S \"A FAN FAILURE HAS BEEN DETECTED ON FAN: \" },\
    GetEventVariable( { U 1 } ) ) ) )"
    0xfff00000 E 20 A 1,0x05b10152,1



  • 4.  Re: Dynamic Alarm title

    Posted Jun 05, 2018 02:13 PM

    Yes. This is working. Jeremy, use the below Append code.

     

    Append({S \"A FAN FAILURE HAS BEEN DETECTED ON - \"},GetEventVariable({U 1}))

     

    Joe,

     

    Do you know why the string is not appended to variable 1 to display the alarm title as "Variable-1 - - A FAN FAILURE HAS BEEN DETECTED"

     

    Append has below structure considering parameters list.

     

    <parameter-list>
    <procedure-parameter>
    <parameter-position>1</parameter-position>
    <parameter-type>
    <parameter-text-string/>
    </parameter-type>
    <parameter-description>
    A text string.
    </parameter-description>
    </procedure-parameter>
    <procedure-parameter>
    <parameter-position>2</parameter-position>
    <parameter-type>
    <parameter-text-string/>
    </parameter-type>
    <parameter-description>
    A text string to be appended to the first parameter.
    </parameter-description>
    </procedure-parameter>
    </parameter-list>



  • 5.  Re: Dynamic Alarm title

    Posted Jun 05, 2018 03:01 PM

    I do not



  • 6.  Re: Dynamic Alarm title

    Posted Jun 06, 2018 03:24 AM

    Hello,

     

    I modified my code :

    0x5b10152 P " CreateEventWithVariables( { C CURRENT_MODEL }, { H 0x5e100078 },SetEventVariable(GetEventVariableList(),{ H 0x00012b4c },Append( { S \"A FAN FAILURE HAS BEEN DETECTED ON FAN: \" },GetEventVariable( { U 2 } ) ) ) )"

     

    0x5e100078 E 20 A 3,0x5b10152

     

    My critical alarm is generate, but in the alarm title It's always empty so I don't understand.

     

    Is there any other changes made ?

     

    Best regards,

    Jeremy



  • 7.  Re: Dynamic Alarm title

    Posted Jun 06, 2018 05:36 AM

    Are you seeing the variable 2 (i.e {U 2}) value in the event? As per your earlier post, the variable is 1 (i.e. {U 1}). Please check this.

    If the above doesn't work, provide the below information.

     

    Is there any alarm title assigned to 0x5b10152 cause code? and provide the trap details and event message for 0x5b10152 and 0x5e100078?

     

    Regards,

    Rajashekar



  • 8.  Re: Dynamic Alarm title

    Posted Jun 06, 2018 08:06 AM

    Hi,

     

    I test if my event code are correct.

    So, for generate this event i use the tool "snmptrap" with a linux host.

    There is this event who was generate :

     

    "Critical","Host_Device","6 juin 2018 09:14:36 CEST","x64lmwbidbd","A ""fnTrapFanFailure"" event has occurred, from Host_Device device, named x64lmwbidbd.

     

    A fan failure has been detected. Not all devices have fan sensors.
            See manual for specifications.

     

    fnSysSerial =
    sysName = ","System","","","0x5e100078"

     

    In the console "event configuration", for the code 0x05b10152 there is no configuration title.

    is what to put the same as eventdisp ?

     

    Best regards,

    Jeremy



  • 9.  Re: Dynamic Alarm title

    Posted Jun 06, 2018 08:20 AM

    When using snmptrap, are you sending values for fnSysSerial and sysName? The above text for the 0x5e100078 event does not show values.

     

    Joe



  • 10.  Re: Dynamic Alarm title

    Posted Jun 06, 2018 09:28 AM

    Hi Joseph,

     

    In fact, il my command line snmptrap, I was missing a piece of code.

    It's now OK.

    My alarm title dynamic appaers.

     

    Thank you very much to you and Rajashekar.

     

    Best regards,

    Jeremy