NetXMS Support Forum

English Support => General Support => Topic started by: scomoletti on April 30, 2018, 09:58:49 PM

Title: Nxagent Unattended install on Windows
Post by: scomoletti on April 30, 2018, 09:58:49 PM
Is there a way to perform a scripted/silent install of the windows agent? I have ansible handing *NIX but the help menu for the windows agent does not make it clear how to provide the configuration prompted for during the install.

Thanks and regards
Title: Re: Nxagent Unattended install on Windows
Post by: Victor Kirhenshtein on May 02, 2018, 09:27:20 PM
Hi,

there are multiple command line options to Windows agent installer. You can get standard installer options by running it with /?. Generally for unattended install you'll have to specify /VERYSILENT and /SUPPRESSMSGBOXES options. There are also custom command line options that allows you to pass information for generated agent configuration file:

/SERVER= 
Set server IP address or host name (will be set in configuration file as MasterServers)

/CENTRALCONFIG
Read configuration from server on startup

/LOCALCONFIG
Use local configuration file (it is the default)

/SUBAGENT=
Add sub-agent loading directive to configuration file. Possible sub-agent names are ECS, FILEMGR, LOGWATCH, PING, PORTCHECK, WINPERF, WMI, and UPS. You can specify this parameter multiple times to add more than one sub-agent.

Best regards,
Victor