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

Bulk configuration of the IBM MQ endpoints

Babar_Qayyum
DynaMight Guru
DynaMight Guru

Dear All,

 

Is there a way to perform a bulk configuration of the IBM MQ endpoints?
The customer has to configure 1000+ endpoints with the different names of groups.

 

Regards,

Babar

4 REPLIES 4

pahofmann
DynaMight Guru
DynaMight Guru

Yes. As it's an extension you can write a smalls script that utilizes the Extensions API to add Endpoints.

Dynatrace Certified Master, AppMon Certified Master - Dynatrace Partner - 360Performance.net

Hello @pahofmann 

Thank you for your comments. Do you have such type of a script?

Regards,

Babar

Nothing I could share really, but it depends on the format the data is in anyway. 

It's a pretty straight forward script and should require only a few lines of code.

 

  1. Create a JSON/YAML with the payload data as a template that you can read as a base for the request payload (can be copied from API explorer)
  2. Read the data for the endoints (from a csv/cmdb or where ever it is)
  3. Iterate over data
    1. replace values in template
    2. send the request

 

Dynatrace Certified Master, AppMon Certified Master - Dynatrace Partner - 360Performance.net

we can try an sh similar like below if we support curl operation on api end points

 

url="apiendpoint/?q="

for i in  $(caturl.txt);do
content="$(curl -s "$url/$i")"
echo "$content" >> output.txt
done

 

Where caturl.txt will include all endpoints that needed to be updated in next lines.

KG

Featured Posts