Send email from the OneClick console on an alarm and also Acknowledge the same time

Document ID : KB000110654
Last Modified Date : 10/08/2018
Show Technical Document Details
Question:
Wanted to know the possibility, of having CA Spectrum 10.2.3 (RHEL 7.3) upon an alarm being selected and sent to an email address, automatically being set to acknowledge state.

What is the best way to accomplish this request?
Answer:
Spectrum does not have this functionality out-of-the-box in the OneClick console.

The alternative is, to ...

Use the functionality right-click "Assign" on alarm, to send out a Mail to a "Repair Person / Troubleshooter". To also acknowledge the alarm with the same task, use the UpdateScript of the Spectrum Alarm Notifier, as it is possible to send a (updatealarm) request to Spectrum for an Acknowledge of the alarm.

The reason for to use right-click "Assign", instead of right-click "Mail" on an alarm from the OneClick console is, right-click "Mail" will not trigger an alarm update in the Spectrum Alarm Notifier. Right-click "Assign" alarm is sending out an email and will also trigger the Spectrum Alarm Notifier - UpdateScript.

1. Assign and Unassign Troubleshooters:
https://docops.ca.com/ca-spectrum/10-2-3/en/managing-client-applications/using-oneclick/monitoring-your-network-with-oneclick/manage-alarms#ManageAlarms-AssignandUnassignTroubleshooters
(you either pre-define "Troubleshooter" for an alarm with their email address or you "Create" them during the "Assign" steps of the alarm)

2. Steps to Auto Acknowledge and alarm, with the "Assign" of a "Repair Person" (or "Troubleshooter") on an alarm in the OneClick console:
###################################################
- If you do not use Alarm Notifier, you have to configure the Spectrum Processd service to control the Alarm Notifier.
(https://docops.ca.com/ca-spectrum/10-2-3/en/managing-client-applications/alarmnotifier/operating-alarmnotifier/start-alarmnotifier-with-the-process-daemon)

- You have to modify the $SPECROOT/Notifier/UpdateScript file, by adding the following content at the end of the script:
-----------------------------------------------------------------------
if [ "$REPAIRPERSON" != "" ] && [ "$ACKD" = "FALSE" ]
    then
        $SPECROOT/Notifier/updatealarm $MHANDLE $AID 0x11f4d TRUE
fi
-----------------------------------------------------------------------

This will run the "updatealarm" Application ($SPECROOT/Notifier directory) to send Spectrum and update on the current alarm, by setting the "Acknowledge" attribute to TRUE.
The alarm in the OneClick console should then be updated in the "Acknowledged" column for this alarm, showing then as "ticked".
###################################################