Open a command window.
Start the Gateway.
To start the gateway as a service, type the following command:
#gateway -s
To start the gateway as a regular application rather than a service, type the following command:
#gateway —d
Do not use the -d and -s options at the same time on the same command line.
—p. Use this argument to specify a TCP/IP port number. (The default port is 9278.) For example,
#gateway -d -p 9278
Specify the necessary trace command arguments.
The following table describes the Gateway tracing command line arguments.
Usage: #gateway -l level -m size -f name -s
For example:
cd %WSHOME%\bin\winnt #gateway -p 11319 -l 2 -m 500 -f %CD%\gateway.trc -s |
The preceding invocation starts the Gateway with the following characteristics:
-p 11319 – Use port 11319
You must configure this port for Gateway resources from the Waveset resource configuration. For example, for an Active Directory resource
-l 2 – Trace the gateway at output level 2.
-m 500 – Limit the size of the trace log file to 500 Kilobytes.
-f C:\gateway.trc – Write the trace output to a file called gateway.trc in the C:\ directory.
-s – Start the gateway service.
If specified, Waveset saves -p, -l, -m, and -f values in the registry, so the next time you run Gateway from the command line or as a service, the same values are used.
If you started the gateway using the -d option, Waveset sends the Gateway trace output to the console and to a trace file.