Allow to send clear email to one SANM filter

book

Article ID: 129943

calendar_today

Updated On:

Products

CA Spectrum

Issue/Introduction

Right now, we have not enabled ClearScript to send the clear message, but we want to configure to send the clear message, to just one filter in SANM and not in all of them.

is there any way to do that?

Environment

Release:
Component: SPCOCK

Resolution

there are 2 possible ways.

1. you could a new run an additional AlarmNotifier and attach a different SANM policy with the required filters to the new notifier app.
This is discussed at the link below.


Begin by copying the Notifier folder to NotifierSetScript for example.
Rename the executables and scripts Then only configure the setscript and alarmrc as required and delete the others.

https://docops.ca.com/ca-spectrum/10-2-3/en/managing-client-applications/alarmnotifier/operating-alarmnotifier/start-alarmnotifier-with-the-process-daemon#StartAlarmNotifierwiththeProcessDaemon-RunMultipleAlarmNotifiers

Or

2. in the SetScript:

add :
NOTIFDATA=`echo $NOTIFDATA | sed 's/send_clear_update,//g'`
###

In the ClearScript: 
first we actívate it,
(SENDMAIL=True 
VARFORMAIL=NotificationData).

then : 

if [ "`echo $NOTIFDATA | grep send_clear_update`" ]
then
echo "Execute ClearEmail"
NOTIFDATA=`echo $NOTIFDATA | sed 's/send_clear_update,//g'`
else
exit 0
fi

and in the SANM filter in notificación data add  "send_clear_update", [email protected], ………