How do I tell Spectrum AlarmNotifier to not send an e-mail when the alarm is cleared by the user and not the system?

Document ID : KB000057328
Last Modified Date : 14/02/2018
Show Technical Document Details

QUESTION: How do I tell Spectrum AlarmNotifier to not send an e-mail when the alarm is cleared by the user and not the system? I only want AlarmNotifier to send an e-mail when the alarm is cleared by the system.

 

ANSWER: Unfortunately, the user that cleared the alarm is not passed to the AlarmNotifier ClearScript. However, the 0x10706 event is logged for the model and this event contains the name of the user that cleared the alarm. The following is the Event Format file for the 0x10706 event:

{d "%w- %d %m-, %Y - %T"} - User {u} cleared alarm number {I 0x0700} with probable cause id {H 3} for device {m} of type {t}. (event [{e}])

 

The following is an example of a logged 0x10706 event:

 

Mon 25 Jan, 2016 - 14:06:04 - User spectrum@Landscape1 cleared alarm number 23257 with probable cause id 0x00010f82 for device mydevice.com of type Host_systemEDGE. (event [0x00010706])

 

As you can see in the above event, user "spectrum" cleared the alarm.

Information that is passed to the AlarmNotifier ClearScript are the model handle of the model and the alarm id. In the above example of the 0x10706 event, the alarm id is 23257. So, the AlarmNotifier ClearScript can be customized to use Command Line Interface (CLI) commands to find the 0x10706 event associated with the cleared alarm for this model. Then, the username can be checked to see if the alarm was cleared by a user or by the system. If not cleared by the system, the e-mail is not sent.

The following is an example of the CLI command to find the 0x10706 event for alarm 23257:

 

[spectrum@Landscape1 vnmsh]$ ./show events -x mh=0x40a07d | grep 10706 | grep 23257

Mon 25 Jan, 2016 - 14:06:04 - User spectrum@Landscape1 cleared alarm number 23257 with probable cause id 0x00010f82 for device mydevice.com of type Host_systemEDGE. (event [0x00010706])

 

ADDITIONAL INFORMATION:  For more information about AlarmNotifier, please reference the "AlarmNotifier User Guide" for Spectrum 9.4 and below and the "AlarmNotifier" section in the Spectrum 10.0 document.

For more information about CLI, please reference the "Command Line Interface User Guide" for Spectrum 9.4 and below and the "Command Line Interface" section in the 10.0 document.