Clear and Archive notifications using dmctl utility.
search cancel

Clear and Archive notifications using dmctl utility.

book

Article ID: 303970

calendar_today

Updated On:

Products

VMware Smart Assurance

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

SMARTS - 10.1.x

Resolution

  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>


See Additional Information tab for example.

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