doc-exports/docs/ces/umn/ces_faq_0037.html
gtema f6f2ca6fa5 Update CES UMN
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: gtema <artem.goncharov@gmail.com>
Co-committed-by: gtema <artem.goncharov@gmail.com>
2022-12-07 15:46:48 +00:00

22 lines
3.1 KiB
HTML

<a name="ces_faq_0037"></a><a name="ces_faq_0037"></a>
<h1 class="topictitle1">What Should I Do If the Service Port Is Used by the Agent?</h1>
<div id="body1532068722928"><p id="ces_faq_0037__p1213533103317">Cloud Eye Agent uses HTTP requests to report data. Any port in the range obtained from path <strong id="ces_faq_0037__b36729561721">/proc/sys/net/ipv4/ip_local_port_range</strong> may be occupied. If any service port is used by the Agent, you can modify path <strong id="ces_faq_0037__b842352706154439">/proc/sys/net/ipv4/ip_local_port_range</strong> and restart the Agent to solve the problem.</p>
<div class="section" id="ces_faq_0037__section73981721125615"><h4 class="sectiontitle">Procedure</h4><ol id="ces_faq_0037__ol3649426615"><li id="ces_faq_0037__li5649926616">Log in an ECS or BMS as user <strong id="ces_faq_0037__b842352706141255">root</strong>.</li><li id="ces_faq_0037__li139995506118">Open the <strong id="ces_faq_0037__b842352706111845">sysctl.conf</strong> file:<p id="ces_faq_0037__p0868132719219"><strong id="ces_faq_0037__b1791112428211">vim /etc/sysctl.conf</strong></p>
</li><li id="ces_faq_0037__li145471549213">(Permanent change) Add new ports to the <strong id="ces_faq_0037__b842352706141558">sysctl.conf</strong> file:<p id="ces_faq_0037__p165301581734"><strong id="ces_faq_0037__b6308155311">net.ipv4.ip_local_port_range=49152 65536</strong></p>
</li><li id="ces_faq_0037__li207071310864">Make the modification take effect:<p id="ces_faq_0037__p812201315615"><a name="ces_faq_0037__li207071310864"></a><a name="li207071310864"></a><strong id="ces_faq_0037__b191969181465">sysctl -p /etc/sysctl.conf</strong></p>
<div class="note" id="ces_faq_0037__note1473016918169"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="ces_faq_0037__ul1412214478"><li id="ces_faq_0037__li7110214716">The permanent change still takes effect after the ECS or BMS is restarted.</li><li id="ces_faq_0037__li79404519473">For temporary modification (which expires after the ECS or BMS is restarted), run <strong id="ces_faq_0037__b842352706151919"># echo 49152 65536 &gt; /proc/sys/net/ipv4/ip_local_port_range</strong>.</li></ul>
</div></div>
</li><li id="ces_faq_0037__li1317164113290">Run the following command to restart the Agent:<p id="ces_faq_0037__p97292041133014"><a name="ces_faq_0037__li1317164113290"></a><a name="li1317164113290"></a><strong id="ces_faq_0037__b9187167191916">/usr/local/telescope/telescoped restart</strong></p>
<div class="note" id="ces_faq_0037__note115877240327"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="ces_faq_0037__p12886124653216">For Windows, in the directory where the Agent installation package is stored, double-click the <strong id="ces_faq_0037__b10850647153314">shutdown.bat</strong> script to stop the Agent, and execute the <strong id="ces_faq_0037__b13851194712339">start.bat</strong> script to start the Agent.</p>
</div></div>
</li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="ces_faq_0059.html">Server Monitoring</a></div>
</div>
</div>