Splunk AppDynamics

.Net MSI Installer Arguments

Andrew_Nerdahl
Explorer

I'm working on an ansible playbook for agent deployment and I'm wondering if anyone knows if the agruments that can be passed to the msi installer are documented anywhere? I need to pass the installation and program data directory locations to win_package.

Thanks!

Labels (1)
0 Karma
1 Solution

Andrew_Nerdahl
Explorer

https://docs.appdynamics.com/display/PRO44/Unattended+Installation+for+.NET

Optional Parameters:

AD_SetupFile: Pass the absolute file path to the setup configuration file.

INSTALLDIR: Specify the the directory to install the .NET Agent executables and supporting files.

DOTNETAGENTFOLDER: New in 4.1.3, specify the parent directory for local data including agent configuration files and log files.

For example:

msiexec /i dotNetAgentSetup64.msi /q /norestart /lv %TEMP%\AgentInstaller.log AD_SetupFile=C:\temp\SetupConfig.xml INSTALLDIR=D:\AppDynamics DOTNETAGENTFOLDER=D:\AppDynamicsData

View solution in original post

nkarthick2511
Explorer

Hi Andrew,

Im working on a playbook to install .Net agent on a windows host.

Im getting the following error while trying to install .Net agent.

WIN-XXXXXXX | FAILED! => {
"changed": false,
"msg": "the file at the URL http://download.appdynamics.com/download/prox/download-file/dotnet/4.5.18.1/dotNetAgentSetup64-4.5.1... cannot be reached: The remote server returned an error: (405) Method Not Allowed.",
"reboot_required": false
}

Provided below is the command I used to install

ansible windows -i hosts -m win_package -a "path='http://download.appdynamics.com/download/prox/download-file/dotnet/4.5.18.1/dotNetAgentSetup64-4.5.1...' product_id='AppD_.Net_Agent'"

Could you please help in this case if possible.

Tags (1)

Andrew_Nerdahl
Explorer

Hello,

I would imagine that you're running into a situation with a 405 error that there is an authentication requirement that isn't being met on the remote server. To avoid this issue, I download and maintain a local repository of the agent files I distribute on my Ansible server. It also allows me to control the number of versions I have deployed to my environment at anyone time.

However, it looks like you'll want to utilize the username and password parameters (that give you access to the AppDynamics website) for win_package, as outlined in the Ansible module documentation.

https://docs.ansible.com/ansible/latest/modules/win_package_module.html

Hopefully that helps.

nkarthick2511
Explorer

Agreed and will incline towards the Local Repository way.

Thanks for your Response Andrew.

0 Karma

Andrew_Nerdahl
Explorer

https://docs.appdynamics.com/display/PRO44/Unattended+Installation+for+.NET

Optional Parameters:

AD_SetupFile: Pass the absolute file path to the setup configuration file.

INSTALLDIR: Specify the the directory to install the .NET Agent executables and supporting files.

DOTNETAGENTFOLDER: New in 4.1.3, specify the parent directory for local data including agent configuration files and log files.

For example:

msiexec /i dotNetAgentSetup64.msi /q /norestart /lv %TEMP%\AgentInstaller.log AD_SetupFile=C:\temp\SetupConfig.xml INSTALLDIR=D:\AppDynamics DOTNETAGENTFOLDER=D:\AppDynamicsData

Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Agent Mode Engaged! Enchaining Agentic Operations with Splunk AI Assistant 2.0

    Are you ready to transform how your team handles complex data requests? We invite you to our upcoming ...

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...