Smarts SAM: How can I manually archive a Notification in Smarts SAM?
search cancel

Smarts SAM: How can I manually archive a Notification in Smarts SAM?

book

Article ID: 304236

calendar_today

Updated On:

Products

VMware

Issue/Introduction

Symptoms:
Smarts SAM: How can I manually archive a Notification in Smarts SAM?

Environment

VMware Smart Assurance - SMARTS

Resolution

How can I manually archive a Notification in Smarts SAM?



Execute the following command from <BASEDIR>/SAM/smarts/bin:

dmctl -s <SAM or OI> invoke ICS_NotificationFactory::ICS-NotificationFactory          \
            archiveNotification                                         \
 
           ICS_Notification::<NOTIFICATION-Host_dickcissel.smarts.com_Down>         \
            
<User>                                                           \
            "Archived this SUSPENDED alarm"

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 SUSPENDED alarm"
                            },
                            .....
i.e. Mass removal of notifications via CLI (on UNIX)

For "n" in "./dmctl -s INCHARGE-SA geti ICS_Notification | grep Unresponsive";
DO
./dmctl -s INCHARGE-SA invoke ICS_NotificationFactory::ICS-NotificationFactory archiveNotification ICS_Notification\:\:$n admin "Forcing archive of notification."; done