Help Docs

Backup and Restore Agent Configurations

In general, the APM Insight .NET agent can be installed in multiple load balanced servers. The same agent configurations like standalone app filters, Windows service apps filters, and more can be applied across all servers to replicate the same configurations.

But if you have hundreds of servers, it may be difficult to replicate the same configuration for each server. In these cases, you can take the backup configuration from one server and restore it in rest of the servers using the APM Insight Health Monitor Tool.

To take a backup of configurations

  1. Open the Health Monitor tool, and navigate to the Tools tab. 
  2. Clicking Back Up Configuration will create a DotNetAgentConfigBackUp.zip file in a location of your choice.
  3. This back up configuration file will be used to restore the same configurations on another server.

Instructions to restore the configurations from a backup file

The configuration file can be restored in two ways.

  1. Restore the configuration file after agent installation:
  1. Copy the DotNetAgentConfigBackUp.zip to the new server where the agent is installed.
  2. Open the Health monitor tool, and navigate to the Tools tab.
  3. Click Restore Configuration, and load the DotNetAgentConfigBackUp.zip file.
  4. This will automatically restart the agent service.
  5. Manually restart Windows services and standalone apps.

2. Restore the configuration file during agent installation via command line

In case if you have not installed the agent across your servers, you can install the agent and restore the configurations via command line. This eliminates the need to install the agent and then install the health monitor across all agents.

The installing agent will take the configurations automatically from the back up file and install with those defined configurations. We can also make a batch script to execute the same in hundreds of servers to reduce the agent configuration work in application servers.

Steps:

  1. Copy the DotNetAgentConfigBackUp.zip file to the new server where the agent needs to be installed.
  2. Place the configuration backup file in the same location as the agent MSI.
  3. Use the below command to install the agent MSI while restoring the configurations.
    C:\> msiexec -i apminsight-dotnetagent.msi configbackupfile=DotNetAgentConfigBackUp.zip
  4. Note: Restart Windows services and standalone apps manually.

Was this document helpful?

Would you like to help us improve our documents? Tell us what you think we could do better.


We're sorry to hear that you're not satisfied with the document. We'd love to learn what we could do to improve the experience.


Thanks for taking the time to share your feedback. We'll use your feedback to improve our online help resources.

Shortlink has been copied!