ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

How to set the SANM for fault tolerance, when Oneclick connects to secondary Spectrum.

book

Article ID: 40935

calendar_today

Updated On:

Products

CA Spectrum

Issue/Introduction

  • How to set the SANM for fault tolerance, when Oneclick connects to secondary Spectrum. 

 

 

 

Cause

  • This functionality is not available out of the box
  • You need to add a piece of code in set scripts of Primary and Secondary Alarm Notifier. 

Environment

Release: ALL

Resolution

SetScript location: $SPECROOT/Notifier

  • Make sure the Alarm Notifier configurations are same for Primary and Secondary Spectrum. 
  • In set script of primary and secondary spectrum, add this code:

On primary add this - 
if "$SANM_0X12C0A" = "20"  
then 
echo "SS Secondary is running" 
echo "Precedence = $SANM_0X12C0A" 
exit 0 
fi 

On secondary add this -
if "$SANM_0X12C0A" = "10"  
then 
echo "SS Primary is running" 
echo "Precedence = $SANM_0X12C0A" 
exit 0 
fi 

Recycle the Alarm Notifier once the files are saved.

What this will accomplish: 

  • Whenever an alarm is generated, the model in the DB is checked and the attribute 0x12x0a is read - if its 10 (primary server precedence) then Primary Alarm notifier sends it and secondary will write a line to the notifier log file saying primary is running.
  • If 0x12x0a is 20 then Secondary server Alarm notifier will send the mail and the primary would write to the notifier file saying secondary is running.