DX NetOps

  • 1.  How can I get a dynamic title in a SANM email?

    Posted Apr 26, 2017 04:13 PM

    Hi,

     

    I have custom event that adds a custom Alarm Title from one of the trap varbinds. How do I get this value in a SANM generated email ? Is it included by default in the environment or must I add a new attribute? If so, which attribute?

     

    Thanks for any help,

     

    Rick



  • 2.  Re: How can I get a dynamic title in a SANM email?

    Posted Apr 26, 2017 04:31 PM


  • 3.  Re: How can I get a dynamic title in a SANM email?

    Broadcom Employee
    Posted Apr 27, 2017 02:27 AM

    Hi Rick,

     

    Also below info might be helpful for you.

     

    if you are passing the Alarm title to mail subject use an if statement to differentiate between Static and Dynamic alarm titles

    Something like

     

    # Assign Dynamic or Static Alarm Title

    if [ -n "$SANM_0x12b4c" ]

    then

    ALARM_TITLE="$SANM_0x12b4c"

    else

    PCAUSE_HEAD=`echo "$PCAUSE" | /usr/bin/head -1`

    ALARM_TITLE="$PCAUSE_HEAD"

    fi

     

    Regards

    Sunny



  • 4.  Re: How can I get a dynamic title in a SANM email?
    Best Answer

    Broadcom Employee
    Posted Apr 27, 2017 03:22 AM