cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Change OneAgent monitoring ports

DAVID_MTZ
Contributor

Hi Dynatrace community

I need to change the monitoring port for oneagent, do you know what is the command to change the monitoring port? the monitoring ports that use oneagent are 50000 to 60000, we need to change this ports because the customer ocupate this ports for your application.

Could you help us please.

4 REPLIES 4

kobecharles
Dynatrace Helper
Dynatrace Helper

The ports the oneagentos service uses should be picked at random from available ports on the host itself and it might also change every few minutes as we switch from endpoint to endpoint. But you can change the watch dog port so it doesn't clash with the monitoring ports the customer is using.

Use the --set-watchdog-portrange=arg parameter to change the watchdog listening port range to <arg>. The <arg> must contain two port numbers separated by a colon (:). For example 50000:50100. The maximum supported port range is from 1024 to 65535. The port range must cover at least 4 ports. The port number starting the range must be lower.

  • Linux or AIX:
    ./oneagentctl --set-watchdog-portrange=50000:50100
  • Windows:
    .\oneagentctl.exe --set-watchdog-portrange=50000:50100

Hi Kobecharles

Tank you very much for the help, this command that you indicatedus is perfect

 

DAVID_MTZ
Contributor

 

Hi Dynatrace community

I need to change the monitoring port for oneagent, do you know what is the command to change the monitoring port? the monitoring ports that use oneagent are 50000 to 60000, we need to change this ports because the customer ocupate this ports for your application.

Could you help us please.

 

Best regard.

Featured Posts