29 Apr 2019 10:16 AM - last edited on 11 Apr 2023 09:58 AM by Karolina_Linda
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
Solved! Go to Solution.
06 May 2019 12:08 PM
Anyone? 🙂
06 May 2019 02:10 PM
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.
06 May 2019 02:56 PM
I'm interest in this one:
config.backendCPUCycleTime
I've checked this method before but with no luck.
Sebastian
07 May 2019 10:28 AM
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.
07 May 2019 10:40 AM
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