DX NetOps

  • 1.  Customization of Dynamic Alarm Title

    Posted Feb 14, 2018 06:21 AM

    Hi,

     

    I'm having some issues with Dynamic Alarms title, and I'm sure someone here can help me.

    I start of with a new trap that I have mapped to an event code is: 0xfff0001f, this has a number of variables passed into it of which I want to use one of them to create a dynamic alarm title, as well as some free text.  What I want to achieve is the following:

     

    Testing DAT <Varbind 2>

     

    I have configured Alertmap and Eventdisp file accordingly: 

     

    AlertMap:

    EventDisp:

     

    0xfff0001e P "CreateEventWithVariables({C CURRENT_MODEL},{H 0xfff0001f},\SetEventVariable(GetEventVariableList(),{H 0x12b4c},\Append({S \"Testing DAT\"},GetEventVariable({U 2}))))"
    0xfff0001f E 20 A 3,0xfff0001e,1

     

    When I am trying to send trap am unable to append varbinds to dynamic alarm title

     

    [ge***@IN****** Events]$ snmptrap -v 1 -c public 172.19.251.116 .1.3.6.1.4.1.28116.20 172.19.251.116 6 5247 13:33:00 1.3.6.1.4.1.28116.20.1 s "First Varbind" 1.3.6.1.4.1.28116.20.2 s "Second Varbind"

     

    I got Event and alarm but my alarm title is not populated with varbind value.

     

    Event:

     

    Alarm:

    Event Configuration:

     

    Can you please help me where I was wrong.

     

    Thanks&Regards,

    Sheethal



  • 2.  Re: Customization of Dynamic Alarm Title
    Best Answer

    Broadcom Employee
    Posted Feb 14, 2018 01:54 PM

    Is that EventDisp entry all 1 line?  If so, that's your problem...you have line breaks in there...

     

    This:

    0xfff0001e P "CreateEventWithVariables({C CURRENT_MODEL},{H 0xfff0001f},\SetEventVariable(GetEventVariableList(),{H 0x12b4c},\Append({S \"Testing DAT\"},GetEventVariable({U 2}))))"

     

    Needs to be this:

     

    0xfff0001e P "CreateEventWithVariables({C CURRENT_MODEL},{H 0xfff0001f}, \

    SetEventVariable(GetEventVariableList(),{H 0x12b4c}, \

    Append({S \"Testing DAT\"},GetEventVariable({U 2}))))"

     

    Or this:

     

    0xfff0001e P "CreateEventWithVariables({C CURRENT_MODEL},{H 0xfff0001f},SetEventVariable(GetEventVariableList(),{H 0x12b4c},Append({S \"Testing DAT\"},GetEventVariable({U 2}))))"

     

     

    Be sure to press the Update Event Configuration button on the VNM after making that change.

    Cheers

    Jay



  • 3.  Re: Customization of Dynamic Alarm Title

    Posted Feb 15, 2018 03:07 AM

    Thank you it is working now.