How to enable Date and Time Stamp with the time zone in CA Spectrum AlarmNotifier.

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

Problem:

What is the correct way to add Date and Time Stamp to use with AlarmNotifier.

 

Solution:


The 'MSG_TIMESTAMP_FORMAT' is no longer supported and it has not been for
many years now which is why its not in the documentation. Back in 8.1 h08
CA introduced $RAW_ALARM_TIME variable which takes the Unix Time stamp (
seconds since Jan 1, 1970 ), which you can use and format and convert it to
however you want.
 
The setscript mentions this
 
# If you wish to see the UNIX alarm time printed out you need to set
# USE_NEW_INTERFACE to true in the configuration file and uncomment
# the following line.
#echo "Raw Alarm Time: " $RAW_ALARM_TIME
 
You can also make this into the more human friendly readable format by
 
> date -u -d @"1424780111"
Tue Feb 24 12:15:11 UTC 2015