DX NetOps

 View Only
  • 1.  add ifalias Attribute in alarm mail of BAD LINK DETECTED

    Posted Jan 18, 2021 04:38 AM
    hi ,

    • this is part of message i receive  " The link status of port (name - RouterA_Tunnel18, type - Gen_IF_Port) is now "bad". (event [0x00010d11])"
    • RouterA  is cisco router  , IFalias id is 0x11f84


    Now i need to add value of IFalias id is 0x11f84   of setscript  mail  ,
    i follow the following steps
    ================================================================================
    I edit eventdisp file located in this path  \SS\CsVendor\Cisco_Router


    0x00010d11 E 50 P " \
    CreateEventWithAttributes( \
    { C CURRENT_MODEL }, \
    { H 0x0f320002 }, \
    SetEventAttribute( \
    GetEventAttributeList(), \
    { U 20 }, \
    ReadAttribute( \
    { C CURRENT_MODEL }, \
    { H 0x11f84 } ) ) )"
    what is next steps please ? i still receive alarms mail without ifalias















  • 2.  RE: add ifalias Attribute in alarm mail of BAD LINK DETECTED

    Broadcom Employee
    Posted Jan 18, 2021 09:47 AM
    What may be the issue is the ifAlias attribute id 0x11f84 is the ifAlias attribute for the device model.

    The 0x10d11 event is generated on the interface model. The ifAlias attribute id for the interface model is 0x11f7e. 

    Reference https://knowledge.broadcom.com/external/article?articleId=51929

    One thing to note is the ifAlias attribute is an external attribute so if the device is not available via SNMP then the snmp GET will fail. Try using the X_ifAlias attribute id 0x13224 as this is an internal attribute. The value in this attribute is the last value of ifAlias received from the device for this interface.

    Joe



  • 3.  RE: add ifalias Attribute in alarm mail of BAD LINK DETECTED

    Posted Jan 18, 2021 01:05 PM
    Hi ,

    I update  eventdisp file    and update event configuration of NVM model

    0x00010d11 E 50 P " \
    CreateEventWithAttributes( \
    { C CURRENT_MODEL }, \
    { H 0x0f320002 }, \
    SetEventAttribute( \
    GetEventAttributeList(), \
    { U 20 }, \
    ReadAttribute( \
    { C CURRENT_MODEL }, \
    { H 0x13224 } ) ) )"

    I find event is update as below  ,  so what is next step?




  • 4.  RE: add ifalias Attribute in alarm mail of BAD LINK DETECTED

    Broadcom Employee
    Posted Jan 18, 2021 02:15 PM


    It was mentioned this was needed for the SetScript for mail (AlarmNotifier). If this is just needed
      for the AlarmNotifier why not configure AlarmNotifier to pass the ifAlias

    .alarmrc

    .alarmrc file
    SetScript
    SetScript1

    SetScript2

    NOTIFIER.OUT
    NOTIFIER.OUT


    This would avoid modifying the 0x10d11 event which is not supported (but can be done) as this 
      is used in Fault Isolation.
     



  • 5.  RE: add ifalias Attribute in alarm mail of BAD LINK DETECTED

    Posted Jan 19, 2021 05:42 PM
    Edited by Ramy Shaker Jan 20, 2021 06:19 AM
    Hi Gregory ,

    I updated setscript same like your snapshot but  the mail is sent without contain ifalias value








  • 6.  RE: add ifalias Attribute in alarm mail of BAD LINK DETECTED

    Broadcom Employee
    Posted Jan 20, 2021 12:11 PM

    For Windows you will need to change the attribute handle to all uppercase

    IFALIAS = $SANM_0X11F7E

    Please try that and see if it works.

    Greg