Network Management

Change the default port using SolarWinds.AgentManagement.ServiceCore.dll.config and SolarWinds.Agent.Service.exe.config

This article describes how to change the default port used by Orion to accept connections from remote agents by using the SolarWinds.AgentManagement.ServiceCore.dll.config, to adjust the Agent Management service, and how to adjust agents by either editing SolarWinds.Agent.Service.exe.config or using the Orion Agent Settings tool.

First published date

10/16/2018 9:47 AM

Last published date

5/2/2019 3:00 PM

Overview

This article describes how to change the default port used by Orion to accept connections from remote agents by using the SolarWinds.AgentManagement.ServiceCore.dll.config, to adjust the Agent Management service, and how to adjust agents by either editing SolarWinds.Agent.Service.exe.config or using the Orion Agent Settings tool.

Product section

Network Performance Monitor

Resolution

To manually modify the default port used by the Agent Management service:

  1. Go to C:\Program Files (x86)\SolarWinds\Orion\AgentManagement\ and backup the file SolarWinds.AgentManagement.ServiceCore.dll.config to another location.
  2. Then open the file SolarWinds.AgentManagement.ServiceCore.dll.config in a text editor. The top portion of the document contains the following:
  3. Change the value of messagingPort="17778" to your preferred port value, and then save the file. This will set the Orion server to listen on the port 17778 for agent connections.
  4. Restart the SolarWinds Orion Module Engine service to apply the changes. 
    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
    <configSections>
    <section name="log4net" type="System.Configuration.IgnoreSectionHandler" />
    <section name="agentManagementServiceConfiguration" type="SolarWinds.AgentManagement.ServiceCore.Configuration.AgentManagementServiceConfiguration, SolarWinds.AgentManagement.ServiceCore" />
    <section name="SolarWinds.BusinessLayerHost" type="System.Configuration.IgnoreSectionHandler" />
    <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
    </configSections>
    <agentManagementServiceConfiguration messagingPort="17778" />
This change will persist across runs of the Configuration Wizard however upgrades and repairs may revert the change.


Next agents which are using agent initiated communication method, where the agent is connecting to the Orion server, must be configured with the new port configuration. It is possible to reconfigure agents using the Orion Agent Settings interface.



To use the Orion Agent Settings to modify the communication settings of an agents:

  1. Open Windows Control Panel.
  2. Open the Orion Agent Settings.
  3. Input the preferred Agent communication settings.
  4. Click on OK to apply the settings.


Or the agents can be set by editing the agent's SolarWinds.Agent.Service.exe.config file.

  1. To manually set the agent to connect to this newly configured port go to C:\Program Files (x86)\SolarWinds\Agent\ and backup the SolarWinds.Agent.Service.exe.config file
  2. Open the SolarWinds.Agent.Service.exe.config file in a text editor. The document contains the following lines: 
    <target>
    
    <host0>sup-aus-milh-05</host0>
    
    <port0>17778</port0>
  3. Change <port0>17778</port0> to your preferred port value, and then save the file.

  4. Restart the SolarWinds Agent service to apply the changes.