DX NetOps

  • 1.  ifalias in link down message

    Posted Apr 22, 2013 02:19 PM
    Hi folks,

    Looking (again) to add the ifalias information to a Link Down message. The event that is alarmed on is generated on the device model, so it's difficult to grab this information from the port model (unlike the "bad link" alarm which is on the port model).

    Thoughts now are to create an event procedure? GetModelsByRelation, then loop through looking for right ifindex? Or to use correlation to assert the event to the port model - where it would be easy to use the 0x11f7e attribute.

    Anyone else gotten anywhere with this before?

    Thanks,
    Rod
    (Wishing I was at CA World) :)


  • 2.  RE: ifalias in link down message

    Posted Apr 22, 2013 02:52 PM
    Hey Rod,

    I think an Event Procedure is exactly what you need. I think the event id of the link down alarm asserted on the device model is 0x10308. One of the varbinds that is sent with the link down trap is the ifIndex of the interface where the link down trap was detected. We can use that to specify the instance of the ifAlias attribute to extract for a new event varbind and use it in a new event. I think the following event procedure should work. What it does is grab the instance from U 1 (event variable 1 from the link down trap), grabs the corresponding instance for ifAlias (0x11f84) stores it to event variable 20 for the new event 0x0f320002.


    0x10308 E 50 P " \
    CreateEventWithAttributes( \
    { C CURRENT_MODEL }, \
    { H 0x0f320002 }, \
    SetEventAttribute( \
    GetEventAttributeList(), \
    { U 20 }, \
    ReadAttributeInstance( \
    { C CURRENT_MODEL }, \
    { H 0x11f84 }, \
    GetEventAttribute( { U 1 } ))))"

    0x0f320002 E 50

    Let me know if that works for you.

    Joe


  • 3.  RE: ifalias in link down message

    Posted Apr 23, 2013 11:08 AM
    Hey Joe,

    Wow!!! This is a really nice surprise and not how I thought it worked at all.

    Verified it works - and even works from the CLI to 'show attr=0x11f84,iid=X'

    Thanks a bunch!
    Rod


  • 4.  RE: ifalias in link down message

    Posted Apr 23, 2013 12:25 PM
    I am glad to hear it is working for you.

    Joe


  • 5.  Re: ifalias in link down message

    Posted Oct 30, 2014 10:48 AM

    Hi Joseph,

    Can you give me a example of the alert map for it ?

    Because I can't do that it work

     

     

    And, How would be the sintaxis of the event 0x0f320002 ?

     

     

    Thanks, very much!



  • 6.  Re: ifalias in link down message

    Posted Nov 24, 2018 12:22 PM

    HEy Joseph, 

     If i want to add IFALIS to bad link Event it work on it?