Enabling trace from the command line is useful if you want a wider range of options.
Open a command window.
Start the Gateway, specifying the necessary trace command arguments.
The following table describes the Gateway tracing command line arguments.
Usage: gateway -f name -l -m
For example:
cd %WSHOME%\bin\winnt gateway -d -p 11319 -f %CD%\gateway.trc -l 2 -m 500 |
The preceding invocation starts the Gateway with the following characteristics:
-d – Use regular application (not a service)
-p 11319 – Use port 11319
You must configure this port for Gateway resources from the Identity Manager resource configuration. For example, for an Active Directory resource
-f %CD%\gateway.trc – Directory to which the trace output is written. Identity Manager writes the trace output to a text file in this directory.
-l 2 – Output level 2 of Gateway tracing.
-m – Maximum size in Kilobytes of trace log file.
If specified, Identity Manager saves -f, -l, and -m values in the registry, so the next time you run Gateway from the command line or as a service, the same values are used.
Identity Manager sends the Gateway trace output to the console and to a trace file.