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