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

Overwrite easyTravel config properties via commandline args during start

skrystosik
DynaMight Guru
DynaMight Guru

I have question, when we are starting runEasyTravelNoGui.sh can we overwrite some properties from config file via arguments passed in bash? Or should I create multiple instances of config files and sh pass it to sh script in this way. I know that there is REST interface to change some of problems scenarios but I need commandline option as well.

Sebastian

 

Regards, Sebastian
5 REPLIES 5

skrystosik
DynaMight Guru
DynaMight Guru

Anyone? 🙂


Regards, Sebastian

tomasz_wieremje
Dynatrace Helper
Dynatrace Helper

Hi.
You should be able to overwrite the properties by passing arguments such as these:

-Dconfig.ampBfProtocol=https
-Dconfig.ampBfEnvironment=example.com
-Dconfig.ampBfPort=123

You can change most properties in this way.


skrystosik
DynaMight Guru
DynaMight Guru

I'm interest in this one:

config.backendCPUCycleTime

I've checked this method before but with no luck.

Sebastian


Regards, Sebastian

tomasz_wieremje
Dynatrace Helper
Dynatrace Helper

I tried to set up the parameter you need.

I used the following argument for test "-Dconfig.backendCPUCycleTime=57".

I modified and used "runEasyTravelNoGui.sh".

I checked the value of this parameter through the ConfigurationService with "...:8091/services/ConfigurationService/getBackendCPUCycleTime". And what I got is the value I set, that is "57":

<ns:getBackendCPUCycleTimeResponse xmlns:ns="http://webservice.business.easytravel.dynatrace.com">
<ns:return>57</ns:return>
</ns:getBackendCPUCycleTimeResponse>

So I would say that setting the value with an argument works fine.


Ok I've pasted this argument in wrong place. I've used it as argument for easyTravelNoGUI.sh execution, not in java parameters inside. My bad 🙂

Sebastian


Regards, Sebastian

Featured Posts