Spectrum Probable Cause files with backslash characters
book
Article ID: 109807
calendar_today
Updated On:
Products
CA Spectrum
Issue/Introduction
Probable Cause files with backslash "\" characters do not show the backslash characters in OneClick Alarm Details tab. The backslash was added to the Probable Cause file using the Event Configuration tool and saved.
The Probable Cause file saved in the $SPECROOT/custom/Events/CsPCause directory contains the backslash.
However, if you exit the Event Configuration tool, start it again and select the same event, you will notice the backslash is now gone. However it still appears in the Probable Cause file saved in the $SPECROOT/custom/Events/CsPCause directory.
Additionally, Alarm Details does not display the backslash:
Environment
Release: Any Component: SPCAEM
Cause
The backslash character is a special character that needs to be escaped.
Resolution
When using a backslash in a Probable Cause file, you need to escape it using three additional backslashes for a total of four backslashes "\\\\".
Using the example from Issue section, I configure the Probable Cause file in the Event Configuration tools as follows:
NOTE: After saving the change using four backslash characters, you will notice the four change to one. The corresponding Probable Cause file in the $SPECROOT/custom/Events/CsPCause file will contain all four backslash characters.
After making the change, update both the SpectroSERVER and OneClick Event Configurations so the new Probable Cause file is read into memory. Then, log out and then back into OneClick. The backslash should now appear in OneClick: