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

IP number change

henk_stobbe
DynaMight Champion
DynaMight Champion

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

5 REPLIES 5

Radoslaw_Szulgo
Dynatrace Guru
Dynatrace Guru

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.

Senior Product Manager,
Dynatrace Managed expert

kia_forooghi
Dynatrace Advisor
Dynatrace Advisor

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.
  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 Guru
Dynatrace Guru

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

Senior 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.