# OneAgent Download Automation

**URL:** <https://community.dynatrace.com/t/oneagent-download-automation/9439>\
**Category:** Dynatrace Managed\
**Tags:** installation, dynatrace-managed, oneagent\
**Created:** [November 30, 2017, 12:02pm UTC](https://community.dynatrace.com/t/oneagent-download-automation/9439 "2017-11-30T12:02:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gautier\_begin](https://avatars.discourse-cdn.com/v4/letter/g/e36b37/32.png) [@gautier\_begin](https://community.dynatrace.com/u/gautier_begin)\
**Post date:** [November 30, 2017, 12:02pm UTC](https://community.dynatrace.com/t/oneagent-download-automation/9439/1 "2017-11-30T12:02:28Z")

</div>

Hello,

I’m want to automate totally the oneagent installation and I wonder to know how/where to retrive the token ID used in the wget command. I’m using the Managed edition.

wget -O Dynatrace-OneAgent-Linux-1.129.164.sh https://\<dynatraceURL\>/e/\<tenant\>/api/v1/deployment/installer/agent/unix/default/latest?Api-Token=\<token\>&arch=x86

regards,

---

<div class="post-metadata">

**Author:** ![Tomasz\_Gajger](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/tomasz_gajger/32/11712_2.png) [@Tomasz\_Gajger](https://community.dynatrace.com/u/Tomasz_Gajger)\
**Post date:** [December 22, 2017, 7:58am UTC](https://community.dynatrace.com/t/oneagent-download-automation/9439/2 "2017-12-22T07:58:25Z")

</div>

Hi Gautier,  
please see the following help page:

[https://www.dynatrace.com/support/help/get-started…](https://www.dynatrace.com/support/help/get-started/introduction/why-do-i-need-an-access-token-and-an-environment-id/#access-token)  
There you’ll find all the information regarding Api-Token, including the steps needed to created a new one.

Regards,

Tomasz
