How to Install .NET agent via command line

How to Install .NET agent via command line

Follow the instructions given below to install APM Insight .Net agent via command line:
  1. Download APM Insight .NET agent (apminsight-dotnetagent.msi)  here.
  2. Navigate to the path where you have downloaded the msi file and execute the following command:

       msiexec -i apminsight-dotnetagent.msi license.key=<YOUR LICENSE KEY> editconfig=false   iisreset=false   /log apm_install.log /quiet

For version 7.0.2 and above:

Info
msiexec -i apminsight-dotnetagent.msi license.key=<Your_License_Key> apm.host=<https/http>://<APM_HOST>:<APM_PORT> apm_exporter_host=<DATA_EXPORTER_HOST> apm_exporter_status_port=<DATA_EXPORTER_STATUS_PORT> apm_exporter_data_port=<DATA_EXPORTER_DATA_PORT> editconfig=false iisreset=true /log apm_install.log /quiet

Given configurations are optional:

  • apm_exporter_host
    By default, 
    DATA_EXPORTER_HOST=localhost
  • apm_exporter_status_port
    By default, 
    DATA_EXPORTER_STATUS_PORT=20021
  • apm_exporter_data_port
    By default, 
    DATA_EXPORTER_DATA_PORT=20022

For version 6.7.1 to v6.9.2:
Info
msiexec -i apminsight-dotnetagent.msi license.key=<Your_License_Key> apm.host=<https/http>://<APM_HOST>:<APM_PORT> editconfig=false iisreset=true /log apm_install.log /quiet

For version 6.5.1 to 6.7.0:
Info
msiexec -i apminsight-dotnetagent.msi license.key=<Your_License_Key> apm.host=<APM_HOST> apm.port=<APM_PORT> apm.protocol.https=True editconfig=false iisreset=true /log apm_install.log /quiet
Command line arguments:  
    editconfig - Agent will open edit configuration window by default. Set this to false to install the agent without opening the edit configuration window.
    iisreset - Agent resets IIS by default. Set this to false to install without resetting IIS.         
   NOTE: Agent can monitor the applications only after running the iisreset.

NotesNote: Perform some transaction to start monitoring



                  New to ADSelfService Plus?