What's on the file system, does the file C:\NetXMS\var\nxagent-4.0.2151-x64.exe exist or there are a number of .part files there?
I am surprised that the agent went to shutdown - did it happen automatically or you stopped it manually? It could be that you need to wait for some time after last chunk gets uploaded for upgrade process to initiate - then in log file (on debug level 6 or higher) there should be visible command that starts the installer.
I am surprised that the agent went to shutdown - did it happen automatically or you stopped it manually? It could be that you need to wait for some time after last chunk gets uploaded for upgrade process to initiate - then in log file (on debug level 6 or higher) there should be visible command that starts the installer.