Downloaded OneAgent installers contain already list of valid endpoint connections in your environment (SaaS cluster + ActiveGates) and are updated regularly. OneAgents are regularly updated in case of changes. If you remove an ActiveGate, it gets removed from the list. There is no need to run the oneagentctl and the OneAgent will try other connections prioritizing ActiveGates before SaaS or Managed Clusters. So it will automatically connect to Dynatrace clusters if you for example have one ActiveGate and you remove it.
The oneagentctl set-server is used when for example you are in an isolated environment and you must reach your ActiveGate or server on different IP address than the one known (NAT is used for example) or you are migrating your OneAgent to a different Dynatrace environment (in that case you must also change the environment token)