Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X
I have a Windchill 9.1 M030 installation with Aphelion LDAP that I want to ReHost to create a Test System with a different name.
The first time I performed this work was with a Windchill Consultant and there was some confusion regarding the Aphelion part of the process and I would like to try and clarify my understanding before I perform the task again.
Note: Windchill 9.1 M030 PSI does not support the installation of Aphelion and this makes the process a little bit more complex.
Part of the previous process (only the relevant bits and without the fine detail) was as follows:
Then the confusing bit sets in relating to Aphelion…
The following did not work:
So, instead we:
Now, the above seemed to work but I am not sure that it was all necessary, nor very nice. Would it not be possible to ignore the Aphelion steps above and just import the Source system’s root.ldif backup file into the Target System’s Fresh Aphelion installation and then run the ant script ReHosting tool to change the target hostname etc. in the Target System's Aphelion without all of the editing in vim and replacing the hostname?
Thanks in advance for any advice
I have had several responses from people via email about ReHosting and they all seem to differ as to the way that they do it. It seems that many different people have their own methods for doing this and don't stray from their tried and tested techniques once they have found a method that suits them (understandably).
From what I can gather from the people who have replied it seems that opening the Aphelion LDAP root.ldif file from the Source machine in Windows Textpad or Vim etc, and replacing all the newlines (\n) with nothing (to fix the line wrap issue), and then replacing all instances of the Source hostname (note: not including domain name) with the new Target hostname, saving it and then importing it into a fresh 9.1 M030 Aphelion LDAP should work fine. But it seems that this LDAP renaming is not all that the ant ReHost script does - it also changes the Source hostname to the Target hostname in other files in the Windchill loadpoint including: C:\ptc\Windchill\codebase\WEB-INF\ie.properties and C:\ptc\Windchill\codebase\WEB-INF\web.xml... there may be others, I am not sure.
So, it seems to me that if you only want to change the hostname (and not the domain name pre 9.1 M040) during a ReHost, it should be possible to follow the ReHost guide and use the ant script OR you can use the manual method where you use Textpad to edit the Source system's root.ldif file and change the name and then import it into the Target Aphelion LDAP. If you do this manual method then it will also be necessary to run a global search on the Windchill loadpoint and manually change any other text files that show up with the Source hostname in them.
Hope that helps someone
Gary