Files
doc-exports/docs/ces/umn/ces_faq_0037.html
qiujiandong1 c1d4f578e7 CES UMN 20250530 version
Reviewed-by: Rumpler, Mihály <mihaly.rumpler@t-systems.com>
Co-authored-by: qiujiandong1 <qiujiandong1@huawei.com>
Co-committed-by: qiujiandong1 <qiujiandong1@huawei.com>
2025-11-18 06:22:57 +00:00

4.1 KiB

What Should I Do If the Service Port Is Used by the Agent?

Cloud Eye Agent uses HTTP requests to report data. Any port in the range obtained from path /proc/sys/net/ipv4/ip_local_port_range may be occupied. If any service port is used by the Agent, you can modify path /proc/sys/net/ipv4/ip_local_port_range and restart the Agent to solve the problem.

Linux

  1. Log in an ECS or BMS as user root.
  2. Open the sysctl.conf file.
    vim /etc/sysctl.conf
  3. (Permanent change) Add new ports to the sysctl.conf file.
    net.ipv4.ip_local_port_range=49152 65536
  4. Apply the changes.
    sysctl -p /etc/sysctl.conf
    • The permanent change still takes effect after the ECS or BMS is restarted.
    • For temporary changes (which expires after the ECS or BMS is restarted), run the # echo 49152 65536 > /proc/sys/net/ipv4/ip_local_port_range command.
  5. Restart the Agent.
    Earlier version:
    /usr/local/telescope/telescoped restart
    New version:
    service ces-uniagent stop
    service ces-uniagent start
    /usr/local/uniagent/extension/install/telescope/telescoped restart

Windows

  1. Log in to the ECS as an administrator.
  2. Open Windows PowerShell and run the following command to change the number of ports:
    netsh int ipv4 set dynamicportrange tcp start=49152 num=16384
  3. Go to the Agent installation directory, double-click the shutdown.bat script to stop the Agent, and then run the start.bat script to start the Agent.

    Earlier version: The Agent is installed in the directory where the Agent installation package is decompressed, for example, if the package is decompressed in D:\Agent, the installation path would be D:\Agent\telescope_windows_amd64.

    New version: The default Agent installation path is C:\Program Files\uniagent\extension\install\telescope.