You change the TREX host name for a TREX single-host installation on the host where TREX has been installed. To rename the TREX host you have to do the following:
Prerequisites
You have stopped TREX.
Change the TREX Configuration Files
You have to change the TREX host name in several places in the configuration filetopology.ini (for example:<host>,url=, user=, sap_retrieval_path=, master_hosts=).Open the file, search for your old TREX host name, replace it with<new_trex_hostname> and save the file.
You have to remove the sign# in front ofSAPLOCALHOST so that the variableSAPLOCALHOST is used.
You have to remove the sign# in front of the line so that the variable is used.
If you have not changed the role of the name server to master name server, you do not have to modify this section of the configuration file.
You have to change theTREXWebServer.ini only if you have installed the Web Server.
Navigate to section[HTTPSERVER] and replace the old TREX host name with<new_trex_hostname>: URL=http ://<new_trex_hostname> .<URL>:...
Example Scenario for Single-Host Installation
Overview of TREX Configuration Files to Be Changed
Host |
topology.ini |
sapprofile.ini |
TREXWebServer.ini |
Single Host |
Change old host to new host name |
Change old host name to new host name |
Change old host name to new host name (only if the Web server was installed) |
Change the profiles settings
After changing the TREX configuration files you change the profile settings as described inChanging the Profile Settings.
Result
You have changed the TREX host name for a TREX single-host installation. You can now restart TREX.