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

IP number change

henk_stobbe
Mentor

What happens if a node changes IP number? He has to be installed again>

5 REPLIES 5

Radoslaw_Szulgo
Dynatrace Leader
Dynatrace Leader

Unfortunately, we do not support that currently. In case that happens, you need to reinstall a node so the new network configuration is applied across all cluster nodes.

Technical Product Manager,
Dynatrace Managed expert

kia_forooghi
Dynatrace Helper
Dynatrace Helper

here are the instructions to 'fix' a node that lives on a box with a change in IP:


  1. change directory to the directory containing the dynatrace managed install (i.e., /opt/dynatrace-managed)
    cd /opt/dynatrace-managed/
  2. run this command to find all files with the 'old' IP address (replace <OLD_IP_ADDRESS> with the old IP address, like 192.168.137.150)
    find . -type f -exec grep -H <OLD_IP_ADDRESS> {} \;
  3. You should see an output like this:
  4. run this command to replace the old IP with the new (make sure this time it's STATIC) IP address:
    find ./ -type f -exec sed -i 's/<OLD_IP_ADDRESS>/<NEW_IP_ADDRESS>/' {} \;
  5. For example, if the intentions is to change the node's IP from 192.168.137.150 to 192.168.1.127, the command would look like this:
    find ./ -type f -exec sed -i s/192.168.137.150/192.168.1.127/' {} \;
  6. Once the command is done executing, verify it was successful by using the original search command with the new IP:
    find . -type f -exec -H <NEW_IP_ADDRESS> {} \;
  7. Again, replacing <NEW_IP_ADDRESS> with your new IP, e.g., 192.168.1.127
  8. start the node using the /opt/dynatrace-managed/launcher/dynatrace.sh script

Radoslaw_Szulgo
Dynatrace Leader
Dynatrace Leader

Have you verified it works? There might be also some database changes required.

Technical Product Manager,
Dynatrace Managed expert

ernesto_rueda
Newcomer

Hello @Radoslaw S. and @Kia F.

I've just did this, and it worked.

Do you think there could be any repercussion?

Best regards.


amr_fahmy
Newcomer

It is worked with me as well.