|
This chapter describes the setting method of arranging TG and TGC in a different node, and operating TG from TGC remotely. It assumed that TG is running on "Server.A" and TGC is running on "Server.B" as follows. |
  |
|
Step1 |
- Startup TG in server mode. (on Server.A) - |
                                  |
Startup TG in server mode on Server.A. On windows platform, execute "tg.bat" batch file with "-server" option. |
| |
* for Windows platform
|
C:\> cd tg08X
C:\tg08X> tg -server
|
|
| |
On Unix and Linux platform, execute "tg.sh" shell script with "-listenr" option. If you want to run TG in the background, put "&" at the end of command line. |
| |
* for Linux or UNIX platform
|
$ cd tg08X
$ ./tg.sh -server &
|
|
| |
When following messages are displayed, The startup of TG is completed. By default, TG is listening at the port "11111" and waiting the connection from TGC. If you want to change the port number, startup TG with "-port <port-number>" option. |
  |
|
Step2 |
- Startup TGC (on Server.B) - |
                                  |
| |
* COMMAND-LINE SAMPLE
|
C:\> cd tg08X
C:\tg08X> tgc
|
|
| |
When the startup of TGC has completed, TGC startup TG on local node and connect to it. But, using TG on remote node, this local TG is not necessary. Click "TG" menu and select "Shutdown TG", shutdown local TG server. |
When local TG server has been terminated, the following message is displayed. |
You can prohibit the auto startup of TG. Click "TG" menu and select "Startup local TG server automatically", remove the check. |
  |
|
Step3 |
- Connect to TG on remote node. - |
                                  |
Click "TG" menu and select "Specify and connect TG...". |
On "Specify and connect to TG..." window, specify the hostname and the port number ( Default : 11111 ) where TG is running, and push "OK" button. |
When TGC has connected to TG successfully, following messages are displayed. |
| |
TG - Transaction Generator - [ Version 0.8X ] Sat Jun 16 01:06:00 JST 2007
logged in.
TG> |
|
| |
After the connection has been established, You need not consider TG is running on a remote node. |
  |
|
Step4 |
- Disconnect from remote TG - |
                                  |
If you want to disconnect from remote TG server, Click "TG" menu on the main window of TGC, and select "Disconnect from TG". By the way, when the session between TG and TGC is broken, TG will be still running. |
When TGC has disconnected from TG successfully, following messages are displayed. |
If you want to terminate remote TG server, Click "TG" menu and select "Shutdown TG". |
|