How to prevent Spectrum AlarmNotifier from sending an update e-mail when the alarm occurrence increments

Document ID : KB000046703
Last Modified Date : 05/12/2018
Show Technical Document Details
Introduction:

I have an existing alarm where the occurrences increment. I get an e-mail from SANM every time the occurrences increment. Is there a way to prevent that from occurring?

Instructions:

This can be done by configuring AlarmNotifier to receive the occurrences value and then modifying the UpdateScript to check the value of the occurrences and not send an e-mail if occurrences is greater than 1.

To configure AlarmNotifier to receive the occurrences value:

1.  Edit the .alarmrc file associated with that instance of AlarmNotifier and add 0x11fc5 (attribute id for occurrences) to the EXTRA_ATTRS_AS_ARGS parameter. The following is an example:

EXTRA_ATTRS_AS_ARGS=0x0023000e,0x11fc5

2. Edit the UpdateScript associated with that instance of AlarmNotifier to account for the occurrences attribute to the .alarmrc file. The follow is an example:

OCCR="$2"

NOTE: In the above example, "$2" is used because the occurrence attribute 0x11fc5 is the second attribute in the EXTRA_ATTRS_AS_ARGS parameter. If 0x11fc5 was the third attribute in the XTRA_ATTRS_AS_ARGS parameter, you would need to use "$3". Please reference the "Passing CA Spectrum Attributes to Scripts" section of the documentation for more information on using the EXTRA_ATTRS_AS_ARGS parameter. 

https://docops.ca.com/ca-spectrum/10-3-0/en/managing-client-applications/alarmnotifier/customizing-alarmnotifier/passing-ca-spectrum-attributes-to-scripts

3. Modify the UpdateScript associated with that instance of AlarmNotifier to check the value of occurrences (in this example $OCCR) and if greater than 1, do not send a an e-mail.