The "last occurrence" date in the OC alarm view is not getting updated correctly.
Release : 20.4
Component :
Working as designed
IM and alarm console (OC) retrieve data from different sources. The settings nis_update_skip_factor & supp_divisor on NAS configuration will help the OC alarm console to show the same values as IM GUI but these are applicable for only new incoming alarms and it doesn't update existing alarms.
To update existing alarms, we provided the script for one-time updates.
Please be aware this is a one-time update, new alarms will still show the Last Occurrence of the last event change:
Read More: UIM 20.4 - "Last Occurrence" and "Event Count" Explained (broadcom.com)
The script below will update the data in NAS_TRANSACTION_SUMMARY.
NOTE: We would recommend to backup the tables NAS_ALARMS, NAS_TRANSACTION_SUMMARY, and NAS_TRANSACTION_LOG before running the script.
Connect to any data client and run the below statements. Run MSSQL scripts for the MSSQL database, run MYSQL scripts for the MYSQL database.
MSSQL Script
================================
UPDATE NTS
SET NTS.TIME = NTL.TIME
FROM
NAS_TRANSACTION_SUMMARY NTS join
(
select NIMID, MAX(TIME) AS TIME
from NAS_TRANSACTION_LOG
group by NIMID
) NTL
on NTS.NIMID = NTL.NIMID
================================
MYSQL Script
================================
SET SQL_SAFE_UPDATES=0;
Update NAS_TRANSACTION_SUMMARY NTS join
(
select NIMID, MAX(TIME) AS TIME
from NAS_TRANSACTION_LOG
group by NIMID
) NTL
on NTS.NIMID = NTL.NIMID
set NTS.TIME = NTL.TIME;
SET SQL_SAFE_UPDATES=1;
================================
- What are the 3 date/time fields in the OC alarm view explanation?
Creation Date & Time - Normally the created field corresponds to the date and time of the first occurrence of the alarm
Arrival Time - corresponds to the date and time when the alarm arrived in the NAS
Last Occurrence - This corresponds to the date and time of the last event change of the alarm
Read more: UIM - Time related fields in the NAS_* alarm Tables (broadcom.com)
- What has this script to do with the online console?
The one-time script updates the time column in NAS_TRANSACTION_SUMMARY table which is displayed as the last occurrence date in UI.