-
Notifications
You must be signed in to change notification settings - Fork 0
/
scalability_script.txt
10 lines (10 loc) · 1.37 KB
/
scalability_script.txt
1
2
3
4
5
6
7
8
9
10
#!/bin/bash
wget -O Dynatrace-OneAgent.sh "https://<HOST>.dynatrace-managed.com/e/<ENVIRONMENT_ID>/api/v1/deployment/installer/agent/unix/default/latest?Api-Token=<PAAS_TOKEN>&arch=x86&flavor=default"
/bin/sh Dynatrace-OneAgent.sh APP_LOG_CONTENT_ACCESS=1 INFRA_ONLY=0 HOST_GROUP=hostgroup
sed -i.bak "s/config.apmTenant=4fd7f2b6-461e-4453-861f-83dda76a1a3f/config.apmTenant=/" /home/ubuntu/easyTravel/easytravel-2.0.0-x64/resources/easyTravelConfig.properties
sed -i.bak "s/config.apmServerHost=<HOST>.dynatrace-managed.com/config.apmServerHost=/" /home/ubuntu/easyTravel/easytravel-2.0.0-x64/resources/easyTravelConfig.properties
sed -i.bak "s/config.openKitMobileLoadGenerator=false/config.openKitMobileLoadGenerator=true/" /home/ubuntu/easyTravel/easytravel-2.0.0-x64/resources/easyTravelConfig.properties
sed -i.bak "s;config.mobileBeaconUrl=;config.mobileBeaconUrl=https://<HOST>.dynatrace-managed.com:8443/mbeacon/<ENVIRONMENT_ID>;" /home/ubuntu/easyTravel/easytravel-2.0.0-x64/resources/easyTravelConfig.properties
sed -i.bak "s/config.etMobileAppId=/config.etMobileAppId=752c288d-5973-4c79-b7d1-3a49d4d42ea0/" /home/ubuntu/easyTravel/easytravel-2.0.0-x64/resources/easyTravelConfig.properties
su -c 'nohup /home/ubuntu/easytravel-2.0.0-x64/runEasyTravelNoGUI.sh --startgroup UEM --startscenario "Standard with REST Service and Angular2 frontend" &' - ubuntu
echo "sudo halt" | at now + 1 hours