Hi,
I think you can use this command line oneagent tool to point oneagents to new environment ID.
Best regards