How can Spectrum Alarm Notifier data be debugged?
search cancel

How can Spectrum Alarm Notifier data be debugged?

book

Article ID: 139563

calendar_today

Updated On:

Products

CA Spectrum DX NetOps

Issue/Introduction

When looking at the alarm data that Alarm Notifier is processing, how can we debug the alarm info that Spectrum is passing to AlarmNotifier? 

We do not want to debug the SANM filtering, we need to debug the alarm set update and clear.

Environment

Release : 20.2.x

Component : SPCAPP - Spectrum Applications

Resolution

Add the following line to the $SPECROOT/Notifier/.alarmrc:

debug_gas=true

Stop and restart the AlarmNotifier process. The alarm information will output to the NOTIFIER.OUT (or your custom output file if you specified another).

IMPORTANT:   AlarmNotifier debugging should not be left enabled for a prolonged period of time as it will use all available disk space on the file system.   

Be sure to DISABLE the debug debug_gas=false once you have collected adequate information from the trace logs.

To debug the SetScript, you can add this entry to the second line of the SetScript:

set -x

Or, if you want verbose output:

set -xv

 

Additional Information


To see what parameters are being passed to the notifier script the following line can be added
   on the second or third line after the shell directive

echo "Params Passed: $@"