Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

Auto running online datastore consistency check on a weekly basis and share missing blobs report to mail.

Avatar

Level 2

We have request to execute online datastore consistency check on a weekly basis in server using AEM feature. And also need to share the missing blobs report to users mail. Please share if any input.

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @MohanasundaramMo ,

You can try to implement a custom datastore consistency check class which will be executed by a scheduler and will run on specific cron expression provided to it.
You can have a look at below link which will give you some idea as what the logic would look like:

https://gist.github.com/andrewmkhoury/3a3b5e69900f4e873743


Thanks
Tarun

View solution in original post

7 Replies

Avatar

Correct answer by
Community Advisor

Hi @MohanasundaramMo ,

You can try to implement a custom datastore consistency check class which will be executed by a scheduler and will run on specific cron expression provided to it.
You can have a look at below link which will give you some idea as what the logic would look like:

https://gist.github.com/andrewmkhoury/3a3b5e69900f4e873743


Thanks
Tarun

Avatar

Level 2

Hi TarunKumar,

Thanks for sharing input.

Do we have any method to invoke system/console/jmx service instead of crx/de ?

Avatar

Level 7

Hi @MohanasundaramMo 

 

As you mentioned online datastore consistency check, I think you are trying to invoke it from here - https://experienceleague.adobe.com/docs/experience-manager-65/content/implementing/deploying/configu...

 

You need to invoke programmatically the JMX Mbean listed in the above document. Here is one example of how you could do this using shell script - https://www.baeldung.com/jmx-mbean-shell-access

 

In the same script you can add code to send email to configured email address with the response you get from consistency check invocation.

 

I hope this helps. Please let us know for any questions.

 

Thanks

Narendra

Hi narendragandhi,

Thanks for our input.

Let me try your suggestion and get back to you.

Avatar

Administrator

@MohanasundaramMo Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.



Kautuk Sahni