07 Apr 2025 11:32 AM - edited 07 Apr 2025 02:38 PM
Im wanting to run a workflow task to check oneagent updates and if they are upto date sends out an Successful email with the ones updated and if not up to date sends out a non successful email with the list of ones that are not up to date but cannot find a DQL query for oneagent versions. Is there a way to use SRG to do this?
Solved! Go to Solution.
07 Apr 2025 06:22 PM
In DQL you can use the installerVersion field on the host entity to see what the OneAgent version is.
fetch dt.entity.host
| fieldsAdd installerVersion
I hope this helps.
09 Apr 2025 10:34 AM - edited 09 Apr 2025 10:35 AM
That works perfectly thank you, is there a way to check what the newest one agent version is and compare it to that list that generates if its up to date send out a successful email if its not up to date send out an unsuccessful email like the attached workflow
09 Apr 2025 12:05 PM
you can try to build a JS using clusterVersionClient.getVersion();
https://developer.dynatrace.com/develop/sdks/client-classic-environment-v1/#clusterversionclient