<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Replication Agent maintenance Mode in Adobe Experience Manager Questions</title>
    <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/replication-agent-maintenance-mode/m-p/444253#M126961</link>
    <description>&lt;P&gt;Great explanation&amp;nbsp;&lt;LI-USER uid="1832459"&gt;&lt;/LI-USER&gt;&amp;nbsp;.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 13 Mar 2022 02:28:31 GMT</pubDate>
    <dc:creator>tb1687196</dc:creator>
    <dc:date>2022-03-13T02:28:31Z</dc:date>
    <item>
      <title>Replication Agent maintenance Mode</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/replication-agent-maintenance-mode/m-p/443676#M126773</link>
      <description>&lt;P&gt;What is the use of putting your Replication Agent to maintenanceMode=true while certain activities like Asset Moves are running on your AEM server?&lt;BR /&gt;&lt;BR /&gt;What exactly does the maitenanceMode=true do?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;LI-USER uid="1439549"&gt;&lt;/LI-USER&gt;&amp;nbsp;&lt;LI-USER uid="6786635"&gt;&lt;/LI-USER&gt;&amp;nbsp;Have you come across usage of this property?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2022 14:04:08 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/replication-agent-maintenance-mode/m-p/443676#M126773</guid>
      <dc:creator>bnagesh</dc:creator>
      <dc:date>2022-03-09T14:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: Replication Agent maintenance Mode</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/replication-agent-maintenance-mode/m-p/444016#M126881</link>
      <description>&lt;P&gt;I have got following article&amp;nbsp;&lt;A href="https://rashidjorvee.blogspot.com/2020/08/pause-option-in-aem-replication-agent.html" target="_blank" rel="noopener"&gt;https://rashidjorvee.blogspot.com/2020/08/pause-option-in-aem-replication-agent.html&lt;/A&gt;&amp;nbsp;and here it is mentioned "&lt;SPAN&gt;&lt;STRONG&gt;At some point we need to stop the replication from AEM author to publisher for sometime or few minutes, so that no content get published from author to publisher instance. This may we need to handle the maintenance window or stop accepting new content from authors.&lt;/STRONG&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But this pause didn't put replication agent in maintenance mode[clearly highlighted in above article] or set any property called maintenance&amp;nbsp;in JCR -&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DEBAL_DAS_0-1646973435948.png" style="width: 400px;"&gt;&lt;img src="https://experienceleaguecommunities.adobe.com/t5/image/serverpage/image-id/39145iE2FD5F18F50D69B3/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="DEBAL_DAS_0-1646973435948.png" alt="DEBAL_DAS_0-1646973435948.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I could see&amp;nbsp;&lt;A href="eclipse-javadoc:%E2%98%82=aem-demo.core/C:%5C/Users%5C/debal%5C/.m2%5C/repository%5C/com%5C/adobe%5C/aem%5C/uber-jar%5C/6.5.9%5C/uber-jar-6.5.9.jar=/maven.pomderived=/true=/=/maven.pomderived=/true=/=/maven.groupId=/com.adobe.aem=/=/maven.artifactId=/uber-jar=/=/maven.version=/6.5.9=/=/maven.scope=/provided=/%3Ccom" target="_blank" rel="noopener"&gt;com&lt;/A&gt;.&lt;A href="eclipse-javadoc:%E2%98%82=aem-demo.core/C:%5C/Users%5C/debal%5C/.m2%5C/repository%5C/com%5C/adobe%5C/aem%5C/uber-jar%5C/6.5.9%5C/uber-jar-6.5.9.jar=/maven.pomderived=/true=/=/maven.pomderived=/true=/=/maven.groupId=/com.adobe.aem=/=/maven.artifactId=/uber-jar=/=/maven.version=/6.5.9=/=/maven.scope=/provided=/%3Ccom.day" target="_blank" rel="noopener"&gt;day&lt;/A&gt;.&lt;A href="eclipse-javadoc:%E2%98%82=aem-demo.core/C:%5C/Users%5C/debal%5C/.m2%5C/repository%5C/com%5C/adobe%5C/aem%5C/uber-jar%5C/6.5.9%5C/uber-jar-6.5.9.jar=/maven.pomderived=/true=/=/maven.pomderived=/true=/=/maven.groupId=/com.adobe.aem=/=/maven.artifactId=/uber-jar=/=/maven.version=/6.5.9=/=/maven.scope=/provided=/%3Ccom.day.cq" target="_blank" rel="noopener"&gt;cq&lt;/A&gt;.&lt;A href="eclipse-javadoc:%E2%98%82=aem-demo.core/C:%5C/Users%5C/debal%5C/.m2%5C/repository%5C/com%5C/adobe%5C/aem%5C/uber-jar%5C/6.5.9%5C/uber-jar-6.5.9.jar=/maven.pomderived=/true=/=/maven.pomderived=/true=/=/maven.groupId=/com.adobe.aem=/=/maven.artifactId=/uber-jar=/=/maven.version=/6.5.9=/=/maven.scope=/provided=/%3Ccom.day.cq.replication" target="_blank" rel="noopener"&gt;replication&lt;/A&gt;.Agent has following method:&amp;nbsp;isInMaintenanceMode()&lt;/P&gt;&lt;H5&gt;Wrote this sample servlet to read enabled agents -&lt;/H5&gt;&lt;P&gt;package com.aem.demo.core.servlets;&lt;/P&gt;&lt;P&gt;import java.io.IOException;&lt;/P&gt;&lt;P&gt;import javax.servlet.Servlet;&lt;/P&gt;&lt;P&gt;import org.apache.sling.api.SlingHttpServletRequest;&lt;BR /&gt;import org.apache.sling.api.SlingHttpServletResponse;&lt;BR /&gt;import org.apache.sling.api.servlets.HttpConstants;&lt;BR /&gt;import org.apache.sling.api.servlets.SlingAllMethodsServlet;&lt;BR /&gt;import org.osgi.service.component.annotations.Component;&lt;BR /&gt;import org.osgi.service.component.annotations.Reference;&lt;BR /&gt;import org.slf4j.Logger;&lt;BR /&gt;import org.slf4j.LoggerFactory;&lt;/P&gt;&lt;P&gt;import com.day.cq.replication.Agent;&lt;BR /&gt;import com.day.cq.replication.AgentManager;&lt;/P&gt;&lt;P&gt;&lt;LI-USER uid="8220494"&gt;&lt;/LI-USER&gt;(service = Servlet.class, property = { "sling.servlet.paths=" + "/bin/agentDetails",&lt;BR /&gt;"sling.servlet.methods=" + HttpConstants.METHOD_GET })&lt;BR /&gt;public class AgentDetailsServlet extends SlingAllMethodsServlet {&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;LI-USER uid="3214626"&gt;&lt;/LI-USER&gt;&lt;BR /&gt;AgentManager agentManager;&lt;/P&gt;&lt;P&gt;/**&lt;BR /&gt;*&lt;BR /&gt;*/&lt;BR /&gt;&lt;BR /&gt;private final Logger logger = LoggerFactory.getLogger(AgentDetailsServlet.class);&lt;/P&gt;&lt;P&gt;protected void doGet(SlingHttpServletRequest slingHttpServletRequest,&lt;BR /&gt;SlingHttpServletResponse slingHttpServletResponse) throws IOException {&lt;BR /&gt;&lt;BR /&gt;for (Agent agent : agentManager.getAgents().values()) {&lt;BR /&gt;if (agent.isEnabled()) {&lt;BR /&gt;&lt;BR /&gt;logger.info("**** Agent Details ****{}", agent.getId());&lt;BR /&gt;logger.info("**** Agent Details ****{}", agent.getConfiguration().getName());&lt;BR /&gt;slingHttpServletResponse.getWriter().write(agent.getId().concat("****************").concat(agent.getConfiguration().getName()));&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will explore this functionality and keep you posted.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Mar 2022 08:27:13 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/replication-agent-maintenance-mode/m-p/444016#M126881</guid>
      <dc:creator>DEBAL_DAS</dc:creator>
      <dc:date>2022-03-12T08:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Replication Agent maintenance Mode</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/replication-agent-maintenance-mode/m-p/444027#M126888</link>
      <description>&lt;P&gt;&lt;LI-USER uid="1832459"&gt;&lt;/LI-USER&gt;&amp;nbsp;Thanks for your time and effort, this suggestion was indeed provided by Adobe Day care team for one of our tickets. But we couldn't find any documentation related to it in helpX or other blogs.&lt;BR /&gt;So wanted to understand this feature what they suggested. We have also replied back to them with more info in parllel. But wanted to check if anyone else has come across this scenario where we put Agents in Maintenance mode.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 05:33:22 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/replication-agent-maintenance-mode/m-p/444027#M126888</guid>
      <dc:creator>bnagesh</dc:creator>
      <dc:date>2022-03-11T05:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: Replication Agent maintenance Mode</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/replication-agent-maintenance-mode/m-p/444182#M126944</link>
      <description>&lt;P&gt;If you have the maintenance mode enabled for an agent, this agent is no longer considered when checking the replication status. That means it still delivers content, but you don't see pending replication (e.g. in Classic UI's siteadmin) even if this queue is full, but the others are not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it is mostly used if the authors should not care about the queue size of an agent, e.g. because you are performing a time-consuming maintenance on a publish system, which is not reachable from enduser (and when thus a growing replication queue doesn't matter until the system is being put back into service).&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 18:21:49 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/replication-agent-maintenance-mode/m-p/444182#M126944</guid>
      <dc:creator>Jörg_Hoh</dc:creator>
      <dc:date>2022-03-11T18:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: Replication Agent maintenance Mode</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/replication-agent-maintenance-mode/m-p/444218#M126953</link>
      <description>&lt;P&gt;&lt;LI-USER uid="1439549"&gt;&lt;/LI-USER&gt;&amp;nbsp;Thanks for the information provided.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Mar 2022 05:53:47 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/replication-agent-maintenance-mode/m-p/444218#M126953</guid>
      <dc:creator>bnagesh</dc:creator>
      <dc:date>2022-03-12T05:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: Replication Agent maintenance Mode</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/replication-agent-maintenance-mode/m-p/444232#M126955</link>
      <description>&lt;P&gt;Thanks for your explanation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;LI-USER uid="17516726"&gt;&lt;/LI-USER&gt;&amp;nbsp;and&amp;nbsp;&lt;LI-USER uid="1439549"&gt;&lt;/LI-USER&gt;&amp;nbsp;, Earlier I made a mistake in my curl command associated with&amp;nbsp;&lt;STRONG&gt;maintenanceMode&amp;nbsp;&lt;/STRONG&gt;property name [plz accept my apology].&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the correct curl command to create a replication agent and put in on&amp;nbsp;&lt;STRONG&gt;maintenanceMode -&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;curl -u admin:admin -X POST -F "jcr:primaryType=cq:Page" -F "jcr:primaryType=nt:unstructured" -F "jcr:content/jcr:title=Replication Agent2" -F "jcr:content/sling:resourceType=cq/replication/components/agent" -F "jcr:content/cq:template=/libs/cq/replication/templates/agent" -F "jcr:content/logLevel=info" -F "jcr:content/retryDelay=60000" -F "jcr:content/serializationType=durbo" -F "jcr:content/transportUri=&lt;A href="http://localhost:4503/bin/receive?sling:authRequestLogin=1" target="_blank"&gt;http://localhost:4503/bin/receive?sling:authRequestLogin=1&lt;/A&gt;" -F "jcr:content/jcr:description=Agent that replicates to the default publish instance." -F "jcr:content/transportUser=admin" -F "jcr:content/transportPassword=admin" -F "jcr:content/&lt;STRONG&gt;maintenanceMode&lt;/STRONG&gt;=true" &lt;A href="http://localhost:4502/etc/replication/agents.author/publish2" target="_blank"&gt;http://localhost:4502/etc/replication/agents.author/publish2&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have noticed&amp;nbsp;&lt;STRONG&gt;maintenanceMode=true&amp;nbsp;&lt;/STRONG&gt;makes the agent disable as shown below -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DEBAL_DAS_0-1647074390420.png" style="width: 400px;"&gt;&lt;img src="https://experienceleaguecommunities.adobe.com/t5/image/serverpage/image-id/39190i682198F944111743/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="DEBAL_DAS_0-1647074390420.png" alt="DEBAL_DAS_0-1647074390420.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DEBAL_DAS_1-1647074475518.png" style="width: 400px;"&gt;&lt;img src="https://experienceleaguecommunities.adobe.com/t5/image/serverpage/image-id/39191iCAF7A419EEB3C8D7/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="DEBAL_DAS_1-1647074475518.png" alt="DEBAL_DAS_1-1647074475518.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now the below servlet is giving expected agent name -&lt;/P&gt;&lt;P&gt;package com.aem.demo.core.servlets;&lt;/P&gt;&lt;P&gt;import java.io.IOException;&lt;/P&gt;&lt;P&gt;import javax.servlet.Servlet;&lt;/P&gt;&lt;P&gt;import org.apache.sling.api.SlingHttpServletRequest;&lt;BR /&gt;import org.apache.sling.api.SlingHttpServletResponse;&lt;BR /&gt;import org.apache.sling.api.servlets.HttpConstants;&lt;BR /&gt;import org.apache.sling.api.servlets.SlingAllMethodsServlet;&lt;BR /&gt;import org.osgi.service.component.annotations.Component;&lt;BR /&gt;import org.osgi.service.component.annotations.Reference;&lt;BR /&gt;import org.slf4j.Logger;&lt;BR /&gt;import org.slf4j.LoggerFactory;&lt;/P&gt;&lt;P&gt;import com.day.cq.replication.Agent;&lt;BR /&gt;import com.day.cq.replication.AgentManager;&lt;/P&gt;&lt;P&gt;@Component(service = Servlet.class, property = { "sling.servlet.paths=" + "/bin/agentDetails",&lt;BR /&gt;"sling.servlet.methods=" + HttpConstants.METHOD_GET })&lt;BR /&gt;public class AgentDetailsServlet extends SlingAllMethodsServlet {&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;@Reference&lt;BR /&gt;AgentManager agentManager;&lt;/P&gt;&lt;P&gt;/**&lt;BR /&gt;*&lt;BR /&gt;*/&lt;BR /&gt;&lt;BR /&gt;private final Logger logger = LoggerFactory.getLogger(AgentDetailsServlet.class);&lt;/P&gt;&lt;P&gt;protected void doGet(SlingHttpServletRequest slingHttpServletRequest,&lt;BR /&gt;SlingHttpServletResponse slingHttpServletResponse) throws IOException {&lt;BR /&gt;&lt;BR /&gt;for (Agent agent : agentManager.getAgents().values()) {&lt;BR /&gt;if (agent.&lt;STRONG&gt;isInMaintenanceMode&lt;/STRONG&gt;()) {&lt;BR /&gt;&lt;BR /&gt;logger.info("**** Agent Details ****{}", agent.getId());&lt;BR /&gt;logger.info("**** Agent Name ****{}", agent.getConfiguration().getName());&lt;BR /&gt;slingHttpServletResponse.getWriter().write(agent.getId().concat("****************").concat(agent.getConfiguration().getName()));&lt;BR /&gt;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DEBAL_DAS_2-1647074610137.png" style="width: 400px;"&gt;&lt;img src="https://experienceleaguecommunities.adobe.com/t5/image/serverpage/image-id/39192i163B321CAD6C12C6/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="DEBAL_DAS_2-1647074610137.png" alt="DEBAL_DAS_2-1647074610137.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;Referred api :&amp;nbsp;&lt;A href="https://developer.adobe.com/experience-manager/reference-materials/6-5/javadoc/constant-values.html#com.day.cq.replication.AgentConfig.AGENT_MAINTENANCE" target="_blank"&gt;https://developer.adobe.com/experience-manager/reference-materials/6-5/javadoc/constant-values.html#com.day.cq.replication.AgentConfig.AGENT_MAINTENANCE&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Mar 2022 08:44:38 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/replication-agent-maintenance-mode/m-p/444232#M126955</guid>
      <dc:creator>DEBAL_DAS</dc:creator>
      <dc:date>2022-03-12T08:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: Replication Agent maintenance Mode</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/replication-agent-maintenance-mode/m-p/444253#M126961</link>
      <description>&lt;P&gt;Great explanation&amp;nbsp;&lt;LI-USER uid="1832459"&gt;&lt;/LI-USER&gt;&amp;nbsp;.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Mar 2022 02:28:31 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/replication-agent-maintenance-mode/m-p/444253#M126961</guid>
      <dc:creator>tb1687196</dc:creator>
      <dc:date>2022-03-13T02:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: Replication Agent maintenance Mode</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/replication-agent-maintenance-mode/m-p/444278#M126966</link>
      <description>&lt;P&gt;This helps. Thank you&amp;nbsp;&lt;LI-USER uid="1832459"&gt;&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Mar 2022 18:24:26 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/replication-agent-maintenance-mode/m-p/444278#M126966</guid>
      <dc:creator>bnagesh</dc:creator>
      <dc:date>2022-03-13T18:24:26Z</dc:date>
    </item>
  </channel>
</rss>

