Smarts SAM: How do I create a server tool to archive notifications?
search cancel

Smarts SAM: How do I create a server tool to archive notifications?

book

Article ID: 303918

calendar_today

Updated On:

Products

VMware

Issue/Introduction

How do I create a server tool to archive notifications?



Environment

VMware Smart Assurance - SMARTS

Resolution

To create a create a server tool to archive notifications, you must create an archiveNotification.sh in the following directory:
<BASEDIR>/SAM/smarts/local/actions/server/
Creating the archiveNotification.sh is done as follows:
#!/bin/sh
 
DMCTL=${SM_HOME}/bin/dmctl
 
`${DMCTL} --server=${SM_SERVER_NAME} invoke ICS_NotificationFactory::ICS-Notific
ationFactory archiveNotification ICS_Notification::${SM_OBJ_Name} "admin" "Archi
ve this event manually"`
 
if [ $? -ne 0 ]; then
    echo "$0: unable to archive Notification"
    exit 1;
fi


Additional Information

For instructions on creating tools, see the following Smarts documentation:

<BASEDIR>/SAM/smarts/doc/sm_config.pdf