NetXMS Support Forum

English Support => General Support => Topic started by: silversword on July 14, 2017, 06:49:11 AM

Title: Centralized Agent Upgrades from server
Post by: silversword on July 14, 2017, 06:49:11 AM
I see this:
https://www.netxms.org/documentation/adminguide/upgrade.html#centralized-agent-upgrade

However if you have a mix of win32 and win64, how do you determine what's already installed so you're upgrading with the right version?

Testing, I see when I use the wrong version I get: "Package is not compatible with target machine" when trying to install a x32...so, must me a x64 agent.

Trying to install the x64 agent, I get: Unable to start upgrade process.

Any additional ideas/howto's?

Title: Re: Centralized Agent Upgrades from server
Post by: Tursiops on July 14, 2017, 08:11:57 AM
Hi,

I use containers with auto-apply templates. Something like this:
if ( ( $node->isAgent ) && ($node->platformNAme == "windows-i386" ) ) return true;
and the matching
if ( ( $node->isAgent ) && ($node->platformNAme == "windows-x64" ) ) return true;
Then simply apply the correct packages to those containers.

That won't fix your "Unable to start upgrade process" though.
I've seen that a few times when the upgrade does go through, but the agent version in the Console doesn't update until the next configuration poll.

Cheers
Title: Re: Centralized Agent Upgrades from server
Post by: silversword on July 20, 2017, 04:14:16 PM
Great thanks for those scripts Tursiops. Still have to enable debug, and post the logs to try and narrow down the cause of the failure.