# How to download agents through the Environment ActiveGate in the SaaS version?

**URL:** <https://community.dynatrace.com/t/how-to-download-agents-through-the-environment-activegate-in-the-saas-version/23001>\
**Category:** Open Q&A\
**Tags:** activegate, dynatrace-saas\
**Created:** [February 5, 2020, 7:31am UTC](https://community.dynatrace.com/t/how-to-download-agents-through-the-environment-activegate-in-the-saas-version/23001 "2020-02-05T07:31:23Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![janne\_olkoniemi](https://avatars.discourse-cdn.com/v4/letter/j/8e8cbc/32.png) [@janne\_olkoniemi](https://community.dynatrace.com/u/janne_olkoniemi)\
**Post date:** [February 5, 2020, 7:31am UTC](https://community.dynatrace.com/t/how-to-download-agents-through-the-environment-activegate-in-the-saas-version/23001/1 "2020-02-05T07:31:23Z")

</div>

Dear All,

Since I’m getting a little bit of mixed information I would like to have information from all of you guys about this topic.

We are using the SaaS version of Dynatrace and trying to figure out if we can download agents through the environment ActiveGate. I got information from the support that the environment ActiveGate does not contain the agent installation packages and therefore we can’t download the agents through environment Activegate.

I know that this is possible in the Managed environment through the Cluster ActiveGates but seems that we can’t make the agent download process through the environment ActiveGate.

Our case is that the monitored hosts do not have an internet connection and that’s why we would like to route the download process through the environment ActiveGate. But if this is impossible we just need to think about another solution.

Just would like to have comments from the community if it is possible to download the agents through environment ActiveGate or not.

Br,

Janne

---

<div class="post-metadata">

**Author:** ![christian\_wegha](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/christian_wegha/32/8816_2.png) [@christian\_wegha](https://community.dynatrace.com/u/christian_wegha)\
**Post date:** [February 5, 2020, 12:11pm UTC](https://community.dynatrace.com/t/how-to-download-agents-through-the-environment-activegate-in-the-saas-version/23001/2 "2020-02-05T12:11:49Z")

</div>

Hello Janne,

you should be able to download the agent from the internet and then transfer the file to your client/environment and continue with the installation.

Regards,

C.

---

<div class="post-metadata">

**Author:** ![janne\_olkoniemi](https://avatars.discourse-cdn.com/v4/letter/j/8e8cbc/32.png) [@janne\_olkoniemi](https://community.dynatrace.com/u/janne_olkoniemi)\
**Post date:** [February 5, 2020, 2:01pm UTC](https://community.dynatrace.com/t/how-to-download-agents-through-the-environment-activegate-in-the-saas-version/23001/3 "2020-02-05T14:01:06Z")

</div>

Thank you for the suggestion [@christian w.](https://answers.dynatrace.com/users/11725/view.html) and we know this possibility also.

From our perspective it would actually be easier if we could route the agent download trough the ActiveGate than manually copying the installation packet to servers.

If the agent download cant be done trough the ActiveGate we just need to think about setting up proxy or something else.

br,

Janne

---

<div class="post-metadata">

**Author:** ![Yosi\_Neuman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/yosi_neuman/32/9845_2.png) [@Yosi\_Neuman](https://community.dynatrace.com/u/Yosi_Neuman)\
**Post date:** [February 6, 2020, 7:54am UTC](https://community.dynatrace.com/t/how-to-download-agents-through-the-environment-activegate-in-the-saas-version/23001/4 "2020-02-06T07:54:24Z")

</div>

This one should become a RFE and not only for SaaS

Yos

---

<div class="post-metadata">

**Author:** ![Dallas](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dallas/32/31233_2.png) [@Dallas](https://community.dynatrace.com/u/Dallas)\
**Post date:** [February 6, 2020, 10:23pm UTC](https://community.dynatrace.com/t/how-to-download-agents-through-the-environment-activegate-in-the-saas-version/23001/5 "2020-02-06T22:23:22Z")

</div>

Hi Janne,

Yes, you are able to download an agent through the activegate if you have access from your local machine to the ActiveGate.

First go to the “Deploy Dynatrace” and “start installation” then select linux. Take the wget command it gives you and alter it with the activegate IP over port 999 (which is the default communication port). Your environment\_ID can be gathered from your tenant URL (example: \<environment\_ID\>.live.dynatrace.com)

I believe that you should take your URL and make it look like this:

wget -O Dynatrace-OneAgent-Linux-\<Version\_here\> “https://\<ActiveGate\_IP\_Address:9999\>/e/\<environment\_ID\>/api/v1/deployment/installer/agent/unix/default/latest?arch=x86&flavor=default” --header=“Authorization: Api-Token - xxxxx”

Make sure to add the /e/\<environment\_ID\>

I just tested this on my SaaS environment and it works like a charm.

Thanks

-Dallas

---

<div class="post-metadata">

**Author:** ![janne\_olkoniemi](https://avatars.discourse-cdn.com/v4/letter/j/8e8cbc/32.png) [@janne\_olkoniemi](https://community.dynatrace.com/u/janne_olkoniemi)\
**Post date:** [February 7, 2020, 11:07am UTC](https://community.dynatrace.com/t/how-to-download-agents-through-the-environment-activegate-in-the-saas-version/23001/6 "2020-02-07T11:07:57Z")

</div>

Hi [@Dallas P.](https://answers.dynatrace.com/users/19223/view.html),

Thank you so much and you solved our case.

I totally forgot the environment ID from the URL and it’s quite obvious that the download was not working without it. With the ID everything is working as expected with downloading the agents trough the ActiveGate.

-Janne

---

<div class="post-metadata">

**Author:** ![Dallas](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dallas/32/31233_2.png) [@Dallas](https://community.dynatrace.com/u/Dallas)\
**Post date:** [February 7, 2020, 5:55pm UTC](https://community.dynatrace.com/t/how-to-download-agents-through-the-environment-activegate-in-the-saas-version/23001/7 "2020-02-07T17:55:29Z")

</div>

Hey Janne,

Glad to help!

-Dallas

---

<div class="post-metadata">

**Author:** ![joseph\_bannert](https://avatars.discourse-cdn.com/v4/letter/j/82dd89/32.png) [@joseph\_bannert](https://community.dynatrace.com/u/joseph_bannert)\
**Post date:** [August 29, 2022, 3:56am UTC](https://community.dynatrace.com/t/how-to-download-agents-through-the-environment-activegate-in-the-saas-version/23001/8 "2022-08-29T03:56:43Z")

</div>

Hi janne\_olkoniemi,

Note you can also do this on Windows with command prompt like this

```markup
powershell -command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -Uri 'https://<EAG_IP>:9999/e/<Environment_ID>/api/v1/deployment/installer/agent/windows/default/latest?arch=x86&flavor=default' -Headers @{ 'Authorization' = 'Api-Token <PAAS_Token>' } -OutFile 'Dynatrace-OneAgent-Windows.exe'"

```

and if you want to ignore the certificate, put this in a .ps1 file lets call it Download\_OneAgent.ps1

```markup
add-type @"
    using System.Net;
    using System.Security.Cryptography.X509Certificates;
    public class TrustAllCertsPolicy : ICertificatePolicy {
        public bool CheckValidationResult(
            ServicePoint srvPoint, X509Certificate certificate,
            WebRequest request, int certificateProblem) {
            return true;
        }
    }
"@
[System.Net.ServicePointManager]::CertificatePolicy = New-Object TrustAllCertsPolicy;
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -Uri 'https://<EAG_IP>:9999/e/<Environment_ID>/api/v1/deployment/installer/agent/windows/default/latest?arch=x86&flavor=default' -Headers @{ 'Authorization' = 'Api-Token <PAAS_Token>' } -OutFile 'Dynatrace-OneAgent-Windows.exe'

```

then execute it from the command line like this

```markup
powershell -command ".\Download_OneAgent.ps1"

```

For Linux it’s in the docs here&nbsp;[AWS PrivateLink — Dynatrace Docs](https://docs.dynatrace.com/docs/shortlink/aws-privatelink#using-activegate-for-privatelink-connectivity)

Regards, Joe.

---

<div class="post-metadata">

**Author:** ![fstekelenburg](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/fstekelenburg/32/22029_2.png) [@fstekelenburg](https://community.dynatrace.com/u/fstekelenburg)\
**Post date:** [November 1, 2023, 10:49am UTC](https://community.dynatrace.com/t/how-to-download-agents-through-the-environment-activegate-in-the-saas-version/23001/9 "2023-11-01T10:49:15Z")

</div>

I reckon the RFE should include, that if a certain network zone is selected in the OneAgent deployment screen of the UI, the address of the/an activegate in that zone is used in the command suggestion instead.
