Setscript errors received when executing Alarm Notifier

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

Description:

Some customizations done in the setscript may include sending SMS for Spectrum emails. When you execute the Alarm Notifier, initially for some time you are not able to get notifications for the alarm. See solution for the complete errors and the environmental variable required.

Solution:

Find the errors in the notifier.out file:

====================================================           
/d/win32app/SPECTRUM/Notifier/SetScript: line 18: $'\r': command not found       
/d/win32app/SPECTRUM/Notifier/SetScript: line 53: $'\r': command not found       
/d/win32app/SPECTRUM/Notifier/SetScript: line 54: $'\r': command not found       
/d/win32app/SPECTRUM/Notifier/SetScript: line 55: syntax error near unexpected token '$'in\r''       
/d/win32app/SPECTRUM/Notifier/SetScript: line 55: 'case '/bin/uname` in       
'       
=====================================================  

After some time we used to get notifications without making any changes.

To avoid this error in the notifier.out file

  1. Set the environmental variable shellopts = igncr to resolve the case.

  2. Restart the operating system for the changes to take effect.