What Should I Do If a Service Port Is Used by the Agent?
Cloud Eye Agent uses a port from path /proc/sys/net/ipv4/ip_local_port_range to send HTTP requests. Any port in the range obtained may be occupied. If the port used by the Agent is the same as the service port, you can modify path /proc/sys/net/ipv4/ip_local_port_range and restart the Agent to solve the problem.
Linux
- Log in an ECS or BMS as user root.
- Open the sysctl.conf file.
vim /etc/sysctl.conf
- (Permanent change) Add new ports to the sysctl.conf file.
net.ipv4.ip_local_port_range=49152 65536
- Apply the changes.
sysctl -p /etc/sysctl.conf
- The permanent change still takes effect after the ECS or BMS is restarted.
- For temporary change (which expires after the ECS or BMS is restarted), run # echo 49152 65536 > /proc/sys/net/ipv4/ip_local_port_range.
- Restart the Agent. New version:
service ces-uniagent stop service ces-uniagent start /usr/local/uniagent/extension/install/telescope/telescoped restart
Windows
- Log in to the ECS as an administrator.
- Open Windows PowerShell and run the following command to change the number of ports:
netsh int ipv4 set dynamicportrange tcp start=49152 num=16384
- 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 C:\Program Files\telescope.
New version: The default Agent installation path is C:\Program Files\uniagent\extension\install\telescope.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot