Smarts SAM: 'dmctl archiveNotification' command does not work when trying to remove a notification
search cancel

Smarts SAM: 'dmctl archiveNotification' command does not work when trying to remove a notification

book

Article ID: 304132

calendar_today

Updated On:

Products

VMware Smart Assurance

Issue/Introduction

Symptoms:




Smarts SAM dmctl archiveNotification command does not work when trying to remove a notification
Smarts SAM dmctl archiveNotification command returns error as in the following example:

Command
./dmctl -s SAM invoke ICS_NotificationFactory::ICS-NotificationFactory archiveNotification ICS_Notification::NOTIFICATION-Session_SESSION-APP-InChargeService__OI-ACM->APP-InChargeService__AMPM-BCB_Disconnected Admin "Notification Archived"

Error
CI-E-EGENERIC-At ICS_NotificationFactory.c:961  argument 1 should be of type
    ICS_Notification: Number and types of arguments in call to operation don't
    match its signature
 MR-WRONG_OPERATION_ARGS-Number and types of arguments in call to operation
    don't match its signature



Cannot remove a notification from the NotificationLog Console with Smarts SAM dmctl command

Environment

VMware Smart Assurance - SMARTS

Cause

This problem is known to occur when the Notification Name has special characters in it such as "->"

Resolution

To resolve this issue, put the name of the Notification in double-quotes (" ") as in the following:

./dmctl -s SAM invoke ICS_NotificationFactory::ICS-NotificationFactory archiveNotification ICS_Notification::"NOTIFICATION-Session_SESSION-APP-InChargeService__OI-ACM->APP-InChargeService__AMPM-BCB_Disconnected" Admin "Notification Archived"