cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How can we get the dynatrace agent version installed in Linux and Windows? This is required for writing automation purpose.

 
4 REPLIES 4

Using CLI can we get the information on the version of dynatrace installed in Linux and Windows?


sam_stachura
Participant

Old question I know, still nothing easily found in docs or online...

This would be great to know in a cli or something, since we have hosts with old agents that no longer are registered on the server.

Figured out the following that may help others in resurrecting old systems.

Running version?

cat /opt/dynatrace/oneagent/agent/installer.version
1.163.277.20190318-125829


Also can see lots of versions including "main" with the following:

cat /opt/dynatrace/oneagent/agent/conf/binaries.json
{
    "os": {
        "main": {
            "linux-x86-32": {
                "version": "1.163.274.20190318-080539",
                "installer-version": "1.163.277.20190318-125829",
                "name": "liboneagentos.so"
            },
            "linux-x86-64": {
                "version": "1.163.274.20190318-080539",
                "installer-version": "1.163.277.20190318-125829",
                "name": "liboneagentos.so"
            }
        }
    },
...
lots of other bits of java / dotnet / sdk / plugins and their versions listed here
...


Closest way I know to check what is installed on linux is the following as root:

ls -alh /opt/dynatrace/oneagent/agent/bin/
total 8.0K
drwxr-xr-x. 12 root dtuser 4.0K May 28 22:33 .
drwxrwxr-t. 12 root dtuser 4.0K Jun 19 19:22 ..
drwxr-xr-x.  3 root dtuser   17 Oct 12  2018 1.153.307.20181012-145950
drwxr-xr-x.  3 root dtuser   17 Dec  6  2018 1.155.320.20181206-145336
drwxr-xr-x.  3 root dtuser   17 Dec 11  2018 1.157.201.20181211-092722
drwxr-xr-x.  3 root dtuser   17 Dec 13  2018 1.157.210.20181213-075558
drwxr-xr-x.  3 root dtuser   17 Jan 30 14:21 1.159.273.20190130-144157
drwxr-xr-x.  3 root dtuser   17 Feb 12 08:52 1.159.302.20190212-090730
drwxr-xr-x.  3 root dtuser   17 Feb 18 09:38 1.159.309.20190218-095935
drwxr-xr-x.  3 root dtuser   17 Feb 27 10:11 1.161.250.20190227-102535
drwxr-xr-x.  3 root dtuser   17 Mar  6 09:39 1.161.272.20190306-094718
drwxr-xr-x.  3 root dtuser   17 Mar 18 12:57 1.163.277.20190318-125829

Reverse engineered that from the info on this page: https://www.dynatrace.com/support/help/technology-support/operating-systems/linux/operation/oneagent...


Dant3
Pro

I think you could get it from the host info at topology.


Services Solution Engineer @PowerCloud - Observability/CloudOps Certified / Former SE @Dynatrace.

Karolina_Linda
Community Team
Community Team

This has been resolved since version 178. Please find the documentation here: Check installed version of OneAgent.

Keep calm and build Community!

Featured Posts