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
Last published date
Overview
Product section
Resolution
To manually modify the default port used by the Agent Management service:
- Go to C:\Program Files (x86)\SolarWinds\Orion\AgentManagement\ and backup the file SolarWinds.AgentManagement.ServiceCore.dll.config to another location.
- Then open the file SolarWinds.AgentManagement.ServiceCore.dll.config in a text editor. The top portion of the document contains the following:
- 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.
- 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" />
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:
- Open Windows Control Panel.
- Open the Orion Agent Settings.
- Input the preferred Agent communication settings.
- Click on OK to apply the settings.
Or the agents can be set by editing the agent's SolarWinds.Agent.Service.exe.config file.
- 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
- 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>
-
Change <port0>17778</port0> to your preferred port value, and then save the file.
- Restart the SolarWinds Agent service to apply the changes.