Stopping TREX

On UNIX: Since the TREX admin tool has a graphical interface, you need an X server. You cannot use a terminal program that only supports text mode, such as telnet.
...
1. Log on with the user <sapsid>adm.
2. Start the TREX admin tool by entering the following:
cd <TREX_DIR>
./TREXAdmin.sh
3. In the TREX admin tool, navigate to the Landscape Services area and then go to the MMC tab.
4. You can stop TREX by clicking the SAP System: Stop button or by selecting the TREX host, opening its context menu with the secondary mouse button, and selecting the relevant option. You can stop Selected Hosts or All Hosts for a landscape.
...
1. Log on locally to the host on which the TREX instance is installed with the user <sapsid>adm.
2. Execute the stopsap script in any directory:
a. To start a single TREX instance, enter the following:
stopsap TRX<instance_number>
In the parameter TRX<instance_number>, you specify which TREX instance is to be stopped.
b. To stop all SAP instances – including all TREX instances – on a host, enter the following:
stopsap