cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How can I upload multiple JMX plugins with a single curl command?

Hello,

Is it possible to upload multiple JMX ZIPs for an environment using a single curl command? If yes, what is the format? I tried

-F "file=@custom.caches.zip;type=application/zip" -F "file=@custom.OSFileDescriptors.zip;type=application/zip"

Does not work. Also tried

-F "file=@custom.caches.zip,custom.OSFileDescriptors.zip;type=application/zip"

 

Does not work either.

3 REPLIES 3

Julius_Loman
DynaMight Legend
DynaMight Legend

As far as I know there is no way to upload multiple plugins in a single request. You have to upload each plugin definition in a separate request.

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

OK.

Here is the question - how can I speed up the upload/remediation?


I have a list of 10 plugins. And I have a list of 700 tenants missing these plugins. Calling API 7000 times takes 3 hours. Yes, my script has measured it.


I need to do it in less than 10 minutes. How can I do it?


You will have to rewrite your scripts to do the requests in parallel. You can issue multiple requests in parallel.

I'd recommend to read this blog post to get inspired:
https://www.dynatrace.com/news/blog/managing-the-dynatrace-api-across-multiple-thousand-environments...

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

Featured Posts