Manually archive a notification
search cancel

Manually archive a notification

book

Article ID: 304236

calendar_today

Updated On:

Products

VMware Smart Assurance

Issue/Introduction

Process to follow if a notification needs to be manually archived.

Environment

10.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>         \
            <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)

Run the following command.

./dmctl -s INCHARGE-SA geti ICS_Notification | grep Unresponsive;

For each $n result, run the following:

./dmctl -s INCHARGE-SA invoke ICS_NotificationFactory::ICS-NotificationFactory archiveNotification ICS_Notification\:\:$n admin "Forcing archive of notification."; done