Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Using CURL to manipulate org.apache.jackrabbit.oak

ArobMFS
Level 2
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
kautuk_sahni
Correct answer by
Community Manager
Community Manager

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

View solution in original post

1 Reply
kautuk_sahni
Correct answer by
Community Manager
Community Manager

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

View solution in original post