VMware Smart Assurance: Watch4net and Smarts Service Assurance Manager - Stale alerts and messages in Notification Cache, How to synchronize SAM and Notification Cache?
search cancel

VMware Smart Assurance: Watch4net and Smarts Service Assurance Manager - Stale alerts and messages in Notification Cache, How to synchronize SAM and Notification Cache?

book

Article ID: 345367

calendar_today

Updated On:

Products

VMware

Issue/Introduction

Symptoms:
Stale alerts and messages in Notification Cache. SAM and Notification Cache are not synced.

Environment

VMware Smart Assurance - Watch4Net/M&R
VMware Smart Assurance - SMARTS

Resolution

There are two options to synchronize SAM and the Notification cache:
Stopping the SAM publisher to clear the Notification cache or stopping SAM to clear the Notification cache.

Stopping the SAM publisher to clear the Notification cache:
This method of clearing the Notification cache has less impact on the system as only SAM publisher is stopped.
Procedure:
1. Stop the publisher:
$Smarts_Basedir/bin# dmctl -s INCHARGE-SA-PRES invoke SM_AMQPNotificationPublisher::SM-AMQPNotificationPublisher stop
2. Clear the Notifications cache by typing these commands:
a. $Smarts_Basedir/bin# sm_service stop smarts-elasticsearch
b. $Smarts_Basedir/bin# sm_service stop smarts-tomcat
c. $Smarts_Basedir# rm -rf local/repos/emc-alerts-es/nodes
d. $Smarts_Basedir/bin# sm_service start smarts-elasticsearch
e. $Smarts_Basedir/bin# sm_service start smarts-tomcat
3. Start the publisher:
$Smarts_Basedir/bin# dmctl -s INCHARGE-SA-PRES invoke SM_AMQPNotificationPublisher::SM-AMQPNotificationPublisher start

 

 

Stopping SAM to clear the Notification cache:
This method of clearing the Notification cache has a substantial impact on the system, as SAM domain needs to be stopped.
Procedure:
1. Stop the SAM service:
$Smarts_Basedir/bin# sm_service stop ic-sam-pres
2. Clear the Notifications cache by typing these commands:
a. $Smarts_Basedir/bin# sm_service stop smarts-elasticsearch
b. $Smarts_Basedir/bin# sm_service stop smarts-tomcat
b. $Smarts_Basedir# rm -rf local/repos/emc-alerts-es/nodes
d. $Smarts_Basedir/bin# sm_service start smarts-elasticsearch
e. $Smarts_Basedir/bin# sm_service start smarts-tomcat
3. Start the SAM service:
$Smarts_Basedir/bin# sm_service start ic-sam-pres