DX NetOps

 View Only
Expand all | Collapse all

Age out of alarms

  • 1.  Age out of alarms

    Posted Mar 29, 2023 04:05 AM
    Edited by Anjali Singh Mar 29, 2023 08:23 AM

    Hi Community

    I tried to clear age out alarm through SANM, I followed below link for it but at the end age out alarms were not clear. Kindly suggest me what should I do.

    For your reference, I attached a link below:

    https://www.linkedin.com/pulse/did-you-knowhow-auto-clear-alarms-spectrum-dont-clear-jermery-jones/

    Thanks 



    ------------------------------
    Anjali
    ------------------------------



  • 2.  RE: Age out of alarms

    Broadcom Employee
    Posted Mar 29, 2023 07:54 PM

    Hi Anjali,

    What is the Cause Code of the alarm you want to clear?

    Have you tried the Alarm Age-out under the Alarm Management subview of the VNM model?

    Thanks,
    Silvio




  • 3.  RE: Age out of alarms

    Posted Mar 30, 2023 12:54 AM

    Hi Silvio,

    I want to clear all minor alarms only through SANM, because through VNM model we need to give all cause codes of the alarms. Is there any procedure to do it by SANM.

    Thanks




  • 4.  RE: Age out of alarms

    Broadcom Employee
    Posted Apr 19, 2023 08:00 AM
    Edited by Priyesh Patel Apr 24, 2023 08:43 AM

    Hello SPECTRUM Experts;

    Can some one please respond to this query?

    Requirement: Customer wants to age out all minor alarms after 'n' weeks of time automatically from the Spectrum. Configuration of multiple/specific cause codes under VNM age out is high touch and customer has resistance for doing it, is there a way which is light touch? 
    e.g.
    Age out the alarm = "Yes" if "Age = 'n' hours" AND "severity = minor".




  • 5.  RE: Age out of alarms

    Broadcom Employee
    Posted Apr 19, 2023 08:18 AM

    Question: How do we trigger AlarmClear via SANM policy? 




  • 6.  RE: Age out of alarms

    Broadcom Employee
    Posted Apr 19, 2023 11:12 AM

    Hi Priyesh,

    You can launch the AlarmClear through one of the AlarmNotifier scripts: SetScript, ClearScript, or UpdateScript



    Thanks,

    Silvio




  • 7.  RE: Age out of alarms

    Broadcom Employee
    Posted Apr 20, 2023 04:38 AM

    @Silvio Okamoto

    Should I add below command having AlarmClear.exe at the end of the Set Script. Is my understanding correct?

    d:/win32app/Spectrum/Notifier/AlarmClear.exe -a $GLOBAL_ALARM_ID -l $LANDSCAPE




  • 8.  RE: Age out of alarms

    Posted Apr 20, 2023 07:51 AM

    That would be correct. AlarmClear on SetScript. The SetScript is called whenever the alarm reaches the configured AlarmNotifier instance.



    ------------------------------
    Cătălin Fărcășanu
    Senior Consultant
    SolvIT Networks
    ------------------------------



  • 9.  RE: Age out of alarms

    Broadcom Employee
    Posted Apr 20, 2023 03:35 AM

    Hello Priyesh,

    AlarmNotifier calls the ClearScript when an alarm is cleared in Spectrum, it is not the script doing the clear.
    Hence, you need to configure SANM to match specific alarms and AlarmNotifier will run the Set, clear or update scripts based on the alarm status change.

    HTH,
    Nestor




  • 10.  RE: Age out of alarms

    Posted Apr 21, 2023 12:39 PM

    Customer should not have resistance on expert recommendation. This is why they ask for your help, to have you solving their problems.
    There is no automated way of clearing alarms, except for the configuration you mentioned.

    SANM is used for filtering alarms and assigning them to relevant Notifier Applications. It think you cannot keep alarms there for 4 weeks before being sent over to relevant Notifier instances. Maybe someone from Broadcom could comment on this approach and impact on functioning of system. I never tried something like this, considering that each alarm should have some sort of pseudo-watch assigned to it and keep that watch for up to 4 weeks. I would not do it this way.

    I would try to do it with a program/script that runs every 24 hours, it lists all existing alarms and decides which one should be cleared. I think you can create a filter that would only display the alarm you're be interested in, an then decide based on either alarm date/time or last occurrence which one should be cleared. I would recommend using RestAPI for this and not CLI.



    ------------------------------
    Cătălin Fărcășanu
    Senior Consultant
    SolvIT Networks
    ------------------------------



  • 11.  RE: Age out of alarms

    Broadcom Employee
    Posted Apr 21, 2023 06:05 AM
    Edited by Priyesh Patel Apr 25, 2023 01:59 AM

    Requirement: Age out the alarm = "Yes" if "Age = 'n' hours" AND "severity = minor"

    BEST OOTB Approach:

    Spectrum OneClick> VNM Model > Configure Alarm Management > Age out settings: hours = 'n' / Cause Codes: Add required minor alarm cause codes.

    Another Approach (missing facts about it's accuracy & performance implication!):


    Step 1. Create a separate instance of SANM: https://techdocs.broadcom.com/us/en/ca-enterprise-software/it-operations-management/spectrum/22-2/managing-client-applications/alarmnotifier/operating-alarmnotifier/start-alarmnotifier-with-the-process-daemon.html#concept.dita_59f8a3f406a930b03d73fd821f4973a06751bdb1_RunMultipleAlarmNotifiers

    Step 2. Restart Processd and verify another instance of SANMP is showing up in Task Manager. i.e. The SPECTRUM AlarmNotifier process in Task Manager. Also the same should Appear under OneClick / Locator / SAMP

    Step 3. Configure a Alarm Filter Policy e.g. Severity = Minor with Age 'n' hr and associate that policy with newly created SANM instance from the oneclick/locator

    Step 4. Make sure to edit the setscript for this custom instance of SANM

    we added a command at the end of the file

    e.g. Note: the use of " " in the set script

    "D:/win32app/Spectrum/Notifier/AlarmClear.exe" -a "$AID" -l "$LANDSCAPE"

    Troubleshooting:

    A. While doing this you will need to be sure whether Alarm Filter is matching the alarms you wanted (in our case minor alarms, look for Filter Passed in traces), look the same in SANM traces.


    B. Notifier.out Keep your eye on this file to see actions of notifier triggering the .exe files or not and is it successful or not.




  • 12.  RE: Age out of alarms

    Posted Apr 21, 2023 06:12 AM

    Please don´t confuse SANM with AlarmNotifier. Traditionally, SANM stands for Spectrum Alarm Notification Manager and not Spectrum Alarm Notifier.

    AlarmNotifier is the destination for the Alarms filtered by SANM. SANM just delivers the alarms to the corresponding Alarm Notifier Application, based on the defined filter alarm criteria.



    ------------------------------
    Cătălin Fărcășanu
    Senior Consultant
    SolvIT Networks
    ------------------------------