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

Using CURL to manipulate org.apache.jackrabbit.oak

Avatar

Level 2

I am trying to automate the tarnmk compaction process of a Primary/Standby 6.2 AEM environment running on AEM 6.2.

As part of this, I need to interrogate and invoke the cleanup/stop/start methods of the the standby server's org.apache.jackrabbit.oak.

Has anyone had any experience with this?

I found this basic reference for jmx with curl but I am unclear how to form this for AEM.

curl -s -X POST --user 'myuser:mypass'

  --data "action=invokeOp&name=App:service=ThisServiceOp&methodIndex=3&arg0=value1&arg1=value1&submit=Invoke"

  http://yourhost.domain.com/jmx-console/HtmlAdaptor

1 Accepted Solution

Avatar

Correct answer by
Administrator

How to find cURL command for any AEM Operation?

You are free to find out any cURL command used for any AEM operation.

Follow below steps to know any AEM cURL command :-

  • Use FireFox –> Press F12 and open FireBug console.
  • Click on “NET” tab in FireBug and enable it by clicking “Enable”.
  • Perform any AEM operation on webpage.
  • Click “invoke”.
  • In FireBug console , you will see the full request URL when you take mouse on top of your request url under POST tab . Copy full path along with parameters from “POST” tab under it.
  • You got your URL that you can append at the end of cURL command and access the same resource using cURL. Above process is very much useful for testers to automate AEM operations. Lets have a look at AEM cURL commands.

Source :- http://www.aemcq5tutorials.com/tutorials/adobe-cq5-aem-curl-commands/#find AEM cURL command

~kautuk



Kautuk Sahni

View solution in original post

1 Reply

Avatar

Correct answer by
Administrator

How to find cURL command for any AEM Operation?

You are free to find out any cURL command used for any AEM operation.

Follow below steps to know any AEM cURL command :-

  • Use FireFox –> Press F12 and open FireBug console.
  • Click on “NET” tab in FireBug and enable it by clicking “Enable”.
  • Perform any AEM operation on webpage.
  • Click “invoke”.
  • In FireBug console , you will see the full request URL when you take mouse on top of your request url under POST tab . Copy full path along with parameters from “POST” tab under it.
  • You got your URL that you can append at the end of cURL command and access the same resource using cURL. Above process is very much useful for testers to automate AEM operations. Lets have a look at AEM cURL commands.

Source :- http://www.aemcq5tutorials.com/tutorials/adobe-cq5-aem-curl-commands/#find AEM cURL command

~kautuk



Kautuk Sahni