Setup Configuration File
You must generate a setup configuration file to run an unattended installation. See 'Setup Configuration File Properties' on Unattended Installation for .NET.
New Installation
For new installations, use one of these methods to create the setup configuration file:
-
Run the Splunk AppDynamics Agent Configuration utility from the command line and pass the -s
%ProgramFiles%\AppDynamics\AppDynamics .NET Agent\AppDynamics.Agent.Winston.exe -s <path to setup configuration file>
- Manually create a setup configuration file from a sample template.
Remove any plain-text authentication elements from the setup configuration file. You pass the credentials as part of the unattended installation command:
- Controller Account element:
<account name="myaccount" password="myaccesskey"/>
-
Proxy Authentication element: If you are using a proxy authentication, use this format in the setup configuration file.
<proxy host="myproxy.example.com" port="3128" enabled="true"> <authentication enabled="true" domain="mydomain.com"/> </proxy>
Upgrade
If your upgrade meets the criteria for an in-place upgrade on Upgrade the .NET Agent for Windows, you can encrypt the credentials for the .NET Agent and upgrade the agent at the same time.
Copy the Agent element from your existing config.xml
file to the setup configuration file. Remove any plain-text authentication elements from the setup configuration file. You pass the credentials as part of the unattended installation command:
- Controller Account element:
<account name="mycontroller.saas.appdynamics.com" password="myaccesskey"/>
- Proxy Authentication element:
<authentication enabled="true" user_name="my_proxy_user" password="password" domain="my_windows_domain"/>
Sample Setup Configuration File
This example shows a setup configuration file that instruments: two IIS Applications, MainBC
and SampleHTTPService
; a Windows service, BasicWindowsService
; and a standalone application, MyStandaloneApp.exe.
<winston>
<logFileDirectory directory="C:\ProgramData\AppDynamics\DotNetAgent\Logs" />
<logFileFolderAccessPermissions defaultAccountsEnabled="false">
<account name="NT AUTHORITY\LOCAL SERVICE" displayName="LOCAL SERVICE" />
<account name="NT AUTHORITY\SYSTEM" displayName="SYSTEM" />
<account name="NT AUTHORITY\NETWORK SERVICE" displayName="NETWORK SERVICE" />
<account name="IIS_IUSRS" displayName="ApplicationPool Identity" />
</logFileFolderAccessPermissions>
<appdynamics-agent xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<controller host="mycontroller.appdyanmics.com" port="443" ssl="true">
<application name="My Business Application" />
</controller>
<machine-agent />
<app-agents>
<IIS>
<applications>
<application path="/" site="MainBC">
<tier name="Main Site" />
</application>
<application path="/" site="SampleHTTPService">
<tier name="HTTP Services" />
</application>
</applications>
</IIS>
<standalone-applications>
<standalone-application name="BasicWindowsService" args="-x">
<tier name="Windows Service Tier"/>
</standalone-application>
<standalone-application executable="MyStandaloneApp.exe">
<tier name="Standalone App" />
</standalone-application>
</standalone-applications>
</app-agents>
</appdynamics-agent>
</winston>