Smarts SAM: How can I clear and archive notifications using dmctl?
search cancel

Smarts SAM: How can I clear and archive notifications using dmctl?

book

Article ID: 303970

calendar_today

Updated On:

Products

VMware

Issue/Introduction

How can I clear and archive Smarts Service Assurance Manager (Smarts SAM) notifications using dmctl?
How can I remove notifications from Smarts SAM using dmctl?

Environment

VMware Smart Assurance - SMARTS

Resolution

To remove a Smarts SAM notification using dmctl, the notification must be cleared then archived as follows: 
  1. To clear a notification using dmctl, run the following command:

    dmctl -s <SAM> invoke ICS_Notificaion::<instance> clear <user> <SourceDomainName>

     
  2. To archive a notification using dmctl, run the following command:

    dmctl -s <SAM> invoke ICS_NotificationFactory::ICS-NotificationFactory archiveNotification ICS_Notification::<instance> <user> <SourceDomainName>


Additional Information

Example

The following shows how to remove ICS_Notification::NOTIFICATION-Router123_Down from INCHARGE-SA:

  1. Get the SourceDomainName:

    dmctl -s INCHARGE-SA get ICS_Notification::NOTIFICATION-Router123_Down | grep SourceDomainName

    Properties of ICS_Notification::NOTIFICATION-Router123_Down:
                         SourceDomainName = INCHARGE-AM


     
  2. Clear the notification:

    dmctl -s INCHARGE-SA invoke ICS_Notification::NOTIFICATION-Router123_Down clear admin INCHARGE-AM

     
  3. Archive the notification:

    dmctl -s INCHARGE-SA invoke ICS_NotificationFactory::ICS-NotificationFactory archiveNotification ICS_Notification::NOTIFICATION-Router123_Down admin INCHARGE-AM