To make it possible to access your TREX using a virtual host name, you have to rename the host name of the host on which you intend to install TREX. To do so, proceed as follows:
Before you install TREX you change the name of the installation host to a virtual host name on operating system level.
After you have installed TREX on the installation host you change the host name back to the original host name.
To make the virtual host name work for your TREX installation you need to change some TREX settings.
Prerequisites
The virtual host name must be valid at the operating system level, and the host must be part of the network. It can be a new primary host name, an additional alias name, or its IP address. The host must be accessible with this name using the ping command. Only then TREX can monitor itself and can be used by other applications.
Change the Host Name to the Virtual Host Name
Before you install TREX you change the host name of the host on which you intend to install TREX to a virtual host name on operating system level.
UNIX
The host name is usually set once at system startup by reading the contents of a file which contains the host name, for example /etc/hostname.
Windows
The name must be unique. You cannot use a name already in use on the network.
Install TREX and Change the Host Name Back
After you have installed TREX on the installation host you change the host name back to the original host name.
You can find the TREX Installation Guide on SAP Service Marketplace at service.sap.com/instguides.
As long as the host name is changed to the virtual host name, do not start or stop any TREX instances. Otherwise, those TREX instances would change the TREX configuration file toplogy.ini so that the instances will be registered with the virtual host name there.
Change the TREX Settings
To make the virtual host name work for your TREX installation you have to specify the following TREX settings.
Only on UNIX:
#!/bin/sh
echo <virtual_hostname>
Windows and UNIX
Change the TREX profile files START_TRX<instance_number>_<virtual_hostname> and sapprofile.ini:
Change the line SAPLOCALHOST=<virtual_hostname>. If there is a line SAPGLOBALHOST=<old_hostname> then also change it.
Change the line SAPLOCALHOST=<virtual_hostname>. If there is a line SAPGLOBALHOST=<old_hostname> then also change it.