To run this script:
- Download the oak-run version matching the version of Oak installed in AEM: http://repo1.maven.org/maven2/org/apache/jackrabbit/oak-run
- Download the attached adminUtils.groovy script
- Upload the adminUtils.groovy script and the oak-run jar to your AEM server
- Run the command to start the oak-run console. For example:
java -Xmx2048m -jar /tmp/oak-run-1.6.1.jar console /app/aem/aem63/crx-quickstart/repository/segmentstore --read-write - Once the oak-run console is open then load the groovy script using this command: