Is there any option to download an older version of OneAgent, what is older than X version -2? Because I can download only the current (1.305) and the last 2 versions (1.303 and 1.301). The last supported version was the 1.299 (then the 2012R2 has deprecated).
Depending on your access, there are 2 options
1. using the API (v1 deployment)
first you can see what the available versions are for the agent. Deployment API - List available versions of OneAgent — Dynatrace Docs
Then you can use the Deployment API to pull down the required version
2. If you have access to the old settings screen, you can go to
Monitoring → Monitoring Overview → select your installer and download.
This will take you to the deployment screen with the version and download options.