Page 1 of 1

[RESOLVED] Server change

Published: Dec 19, 2023 - 11:11
by ymeyer
Hello,

We've upgraded our server to a new license, so we're currently running on two machines. The vast majority of our network and its agents are still pointing to the old server. The WAPT agent is distributed via GPO.
After testing, it seems necessary to manually uninstall the old agent before deploying the new one. Following this, the client connects correctly to the new console.
Is there a solution that would allow us to avoid doing this on each machine individually and facilitate this migration?

Re: Server change

Published: Dec 19, 2023 - 11:17
by dcardon
Hi Yannick,

old server version, new server version? See the forum rules. Changing the server configuration shouldn't be a problem. Are you using dynamic configuration packages?

Denis

Re: Server change

Published: Dec 19, 2023 - 11:35
by ymeyer
Hello Denis,

Thank you for your reply.
I should have specified that these are indeed two separate servers. Both are running version 2.4.0.14143 on Ubuntu Linux, with the same version for the agent and wapt deploy.
What do you mean by dynamic configuration packages?

Re: Server change

Published: Dec 19, 2023 - 12:42
by dcardon
Hi Yannick,

yes, it's clearer with the additional information. :-)

waptdeploy relies on the agent version, so since it hasn't changed, it doesn't deploy the new one. It's possible to add a --force parameter to waptdeploy in your GPO, however, this will reinstall the agent every time the machine restarts, so it should only be used for a short time.

Another way is to put a package on your old server that installs your new agent. This will force the switchover.

Regards,

Denis

Re: Server change

Published: Dec 19, 2023 - 1:50 PM
by ymeyer
Thanks Denis.

What does creating this package for the new agent involve? I assume it's done through the agent's dynamic configuration, within the package templates?

Re: Server change

Published: Dec 19, 2023 - 2:10 PM
by dcardon
Hello Yannick,

You can retrieve the xxx-waptupgrade package from your new server and import it onto your old server, setting the default mode to force=True by modifying the following line in setup.py:

Code: Select all

def install():
    force = True
    # if you want to modify the keys depending on environment (win32/win64... params..)
Sincerely,

Denis

Re: Server change

Published: Dec 19, 2023 - 3:53 PM
by ymeyer
Problem solved. Thank you very much, Denis.