Manually archiving a notification
search cancel

Manually archiving a notification

book

Article ID: 304236

calendar_today

Updated On:

Products

VMware Smart Assurance VMware Telco Cloud Service Assurance

Issue/Introduction

This article explains the workaround for following symptoms observed in Smarts:

  • Process to follow if a notification needs to be manually archived.
  • Remove session disconnect messages from Smarts SAM server.
  • Clear a notification which is INACTIVE or UNINITIALIZED state in Smarts SAM.
 
When an instance/notification is not found error below is witnessed:
Error message: CLI-E-NOTIFICATION_NOT_FOUND-Notification Not found for the given class 'Router' name 'XYZ123' event 'Impacted'. 

Environment

Smarts - 10.1.x
Smarts-DM - 2.x
TCSA - 2.x

Resolution

  • Execute the following command from <BASEDIR>/SAM/smarts/bin:
dmctl -s <SAM or OI> invoke ICS_NotificationFactory::ICS-NotificationFactory archiveNotification ICS_Notification::"<NOTIFICATION_NAME which need to be removed>" <User> "<message>"

Example:

dmctl -s <SAM> invoke ICS_NotificationFactory::ICS-NotificationFactory
archiveNotification ICS_Notification::"NOTIFICATION-<notification_name/instance>" admin Archived this alarm manually.
  • This will result in deletion of the notification object from the topology and an entry in the AuditTrail in SAM.archive file under log directory:
AuditTrail={
{
3,
1026149824,
"User",
"ARCHIVE",
"Archived this alarm manually"
},
.....
  • Bulk removal of notifications via CLI can be achieved by running the following command.

./dmctl -s <SAM or OI> geti ICS_Notification;
  • For each $n result, run the following:

./dmctl -s <SAM or OI> invoke ICS_NotificationFactory::ICS-NotificationFactory archiveNotification ICS_Notification\:\:$n admin "Forcing archive of notification"; done

Additional Information

  • To clear a notification using dmctl, run the following command:

./dmctl -s <SAM or OI> invoke ICS_Notification::"<instance>" clear <user> <SourceDomainName>