# How can I determine the Dynatrace ActiveGate version via the command line?

**URL:** <https://community.dynatrace.com/t/how-can-i-determine-the-dynatrace-activegate-version-via-the-command-line/32519>\
**Category:** Open Q&A\
**Tags:** installation, activegate\
**Created:** [August 26, 2021, 12:19pm UTC](https://community.dynatrace.com/t/how-can-i-determine-the-dynatrace-activegate-version-via-the-command-line/32519 "2021-08-26T12:19:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matthias-Versio](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/matthias-versio/32/13286_2.png) [@Matthias-Versio](https://community.dynatrace.com/u/Matthias-Versio)\
**Post date:** [August 26, 2021, 12:19pm UTC](https://community.dynatrace.com/t/how-can-i-determine-the-dynatrace-activegate-version-via-the-command-line/32519/1 "2021-08-26T12:19:51Z")

</div>

Hi,

how can I determine the Dynatrace ActiveGate version via the command line?

Regards

Matthias

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [August 26, 2021, 12:51pm UTC](https://community.dynatrace.com/t/how-can-i-determine-the-dynatrace-activegate-version-via-the-command-line/32519/2 "2021-08-26T12:51:26Z")

</div>

That’s a really good question, You can find it in the UI quite easily. Ill ask about the command line option and get back to you today on that.

---

<div class="post-metadata">

**Author:** ![Andy\_Evans](https://avatars.discourse-cdn.com/v4/letter/a/c57346/32.png) [@Andy\_Evans](https://community.dynatrace.com/u/Andy_Evans)\
**Post date:** [August 26, 2021, 1:50pm UTC](https://community.dynatrace.com/t/how-can-i-determine-the-dynatrace-activegate-version-via-the-command-line/32519/3 "2021-08-26T13:50:11Z")

</div>

In the&nbsp;/var/lib/dynatrace/gateway/config directory, there is a version.properties file that contains your current version

---

<div class="post-metadata">

**Author:** ![awahab](https://avatars.discourse-cdn.com/v4/letter/a/22d042/32.png) [@awahab](https://community.dynatrace.com/u/awahab)\
**Post date:** [August 26, 2021, 3:19pm UTC](https://community.dynatrace.com/t/how-can-i-determine-the-dynatrace-activegate-version-via-the-command-line/32519/4 "2021-08-26T15:19:14Z")

</div>

Assuming it is linux box and gateway is installed in&nbsp;/opt/dynatrace/gateway

below grep will give the version

grep GATEWAY\_VERSION= /opt/dynatrace/gateway/dynatracegateway

GATEWAY\_VERSION=“1.221.116.20210716-124604”
