How can I get activity log output when doing curl commands for install or replicate package | Community
Skip to main content
October 16, 2015
Solved

How can I get activity log output when doing curl commands for install or replicate package

  • October 16, 2015
  • 2 replies
  • 2116 views

If I do a package install or a reinstall using the CRX Package Manager, I get an "Activity Log" at the bottom of the screen which displays details of the install.  Is there a way to get these details to output when doing a cURL command?  Specifically, I would like the activity log to either 1) show up in the console output of the cURL command, 2) show up in an existing AEM log file, or 3) show up in a new file (the name of which I specify) on the file system.  I am doing cURL commands for upload a package and then install a package.  

Additionally, can I get these same activity log details when I replicate a package from the author server to the publish server(s)?  

I am on AEM 5.6.1 running on RedHat Linux.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Sham_HC

are you not seeing in the curl output ? 

curl -u admin:admin -F file=@your-pkg.zip -F force=true -F install=true http://localhost:4502/crx/packmgr/service.jsp

2 replies

Sham_HC
Sham_HCAccepted solution
Level 10
October 16, 2015

are you not seeing in the curl output ? 

curl -u admin:admin -F file=@your-pkg.zip -F force=true -F install=true http://localhost:4502/crx/packmgr/service.jsp
October 16, 2015

Below is some of the output I receive (an upload, then and install, then a replicate).  If I use "--verbose" on cURL, I get additional information, but it is information about cURL, not information coming from the install or the replicate.

****************************************************************************************************************************************************

deploy-to-aem-author:
     [exec]   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
     [exec]                                  Dload  Upload   Total   Spent    Left  Speed
     [exec] 
     [exec] {"success":true,"msg":"Package uploaded","path":"/etc/packages/countryfinancial/cfin-release-1.0.0-SNAPSHOT.zip"}
     [exec]   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0  0 6455k    0     0    0     0      0      0 --:--:--  0:00:03 --:--:--     0 99 6455k    0     0  100 6455k      0  1633k  0:00:03  0:00:03 --:--:-- 1633k100 6455k  100   113  100 6455k     28  1633k  0:00:04  0:00:03  0:00:01 1633k
     [exec]   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
     [exec]                                  Dload  Upload   Total   Spent    Left  Speed
     [exec] 
     [exec] {"success":true,"msg":"Package installed"}
     [exec]   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0100   148    0     0  100   148      0    135  0:00:01  0:00:01 --:--:--   135100   148    0     0  100   148      0     70  0:00:02  0:00:02 --:--:--    70100   148    0     0  100   148      0     47  0:00:03  0:00:03 --:--:--    47100   148    0     0  100   148      0     36  0:00:04  0:00:04 --:--:--    36100   148    0     0  100   148      0     29  0:00:05  0:00:05 --:--:--    29100   190  100    42  100   148      7     25  0:00:06  0:00:05  0:00:01     0100   190  100    42  100   148      7     25  0:00:06  0:00:05  0:00:01     0

replicate-code-to-aem-publish:
     [exec]   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
     [exec]                                  Dload  Upload   Total   Spent    Left  Speed
     [exec] 
     [exec] {"success":true,"msg":"Package is replicated asynchronously"}
     [exec]   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0100    61  100    61    0     0    156      0 --:--:-- --:--:-- --:--:--   156