This section describes how to trace objects and activities in Oracle Waveset Gateway, the information is organized as follows:
When viewing or editing a Gateway trace file, use Notepad to avoid file restrictions.
When you start the Gateway, the program appends new trace entries to the trace file instead of deleting entries. To locate the point at which the Gateway trace entries begin, look for a Gateway version string.
The Gateway version is output in the trace automatically when you start the Gateway. You can also type gateway -v from the command line to get the version.
If you cannot access the Gateway, you can enable tracing to debug problems with Windows accounts on Waveset. You can enable or disable tracing from the Gateway Debug page (Gateway.jsp) or, if you want a wider range of options, you can enable tracing from the command line
Use the following instructions to enable and configure tracing from the Gateway Debug page (Gateway.jsp).
Log in to the Waveset Administrator interface.
Type the following URL in to your browser to open the Gateway Debug page:
http://host :port/idm/debug/Gateway.jsp
Choose a resource to trace from the Gateway Resource list.
If necessary, modify existing settings.
Click the following buttons to modify the settings:
Get Version. Returns the Gateway version and the operating system of the machine on which you are running the Gateway.
Get Trace File. Returns the contents of the trace file.
Get Trace Parameters. Returns the path of the trace file, the trace level, and the maximum size of the trace file.
Set Trace Parameters. See To Create a New Trace Configuration Object for information about these options.
Get Loaded Modules. Returns the load addresses of modules (DLLs) being used by the Gateway.
The Get Loaded Modules list consists of load addresses, followed by module names and only includes loaded modules. The list does not include delay-loaded modules that have not been called.
The Get Loaded Modules option only supports Active Directory and Domino.
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.
Log in to the Waveset Administrator interface.
Type the following URL in to your browser to open the Gateway Debug page:
http://host:port/idm/debug/Gateway.jsp
Deselect the Show Trace option or delete the file name from the Get Trace File text box.
If necessary, open a command window.
Stop the Gateway service.
If you started the Gateway service using the -s option, stop the service by typing the following command:
#gateway -k
If you used the -d option to start the gateway as a regular application, stop the gateway by typing Control-C in the same command window you used to start the gateway.
Start the gateway with trace level 0 using the -l option. (You do not have to specify the -m or -f option.) For example
#gateway -d -l 0
Waveset encrypts all messages between the gateway and the Waveset server.
You can configure Waveset to log encryption and decryption message details while tracing at level 4 in the gateway, but this capability is disabled by default. Tracing encryption information at level 4 can cause a large amount of overhead because Waveset logs each message multiple times, once on entry to and once on exit from the encryption routines. In addition, Waveset limits the size of logged informational messages to 4000 characters, which can truncate large messages.
To enable message tracing, you must add the traceEncryptedInfo registry entry to the gateway registry key. This entry triggers a full log of each message before and after encryption and decryption. You must still use trace level 4 to trace this information.
You can use the following values for the traceEncryptedInfo registry entry.
1. Trace input and output messages for all encryption and decryption routines.
Any other value. Disables tracing.
No entry value (Default). Disables tracing.
Waveset preserves password encryption in the logs. Tracing encrypted information does not expose passwords in clear text.
The PowerShellExecutor.dll is an add-on that implements communication between the gateway and Microsoft PowerShell. You can use PowerShell to manage Exchange Server 2007 accounts. This add-on cannot share tracing facilities with the rest of the gateway and provides a similar stand-alone tracing facility as the rest of the gateway.
The trace configuration for the PowerShellExecutor is stored in the same registry key as the other gateway registry keys:
HKEY_LOCAL_MACHINE\Software\Waveset\Lighthouse\Gateway
You create this base key when you configure tracing through the Waveset debug pages or when you start the gateway with trace command arguments.
On shut down, the gateway writes the current PowerShellExecutor settings for the tracing to the registry. These settings include:
traceFileName
Content. File name for the trace output (registry type REG_SZ)
Default. " "
Name of the trace file to generate for the PowerShellExecutor tracing. Where the name:
Can be a fully qualified path, including the filename
Cannot end in a slash (\)
The full path, except the file, provided in the traceFileName must exist.
If configured, log rotation adds a timestamp to the configured filename after rotation, when the file is no longer active. This timestamp displays in the following format:
yyyyMMddHHmmss
traceLevel
Content. Trace level (registry type REG_DWORD)
Default. 0 (no tracing)
Allowed. 0–4
This key is shared with the rest of the gateway. The whole gateway always provides tracing at the same level.
traceMaxSize
Content. Maximum file size in bytes (registry type REG_DWORD or REG_QWORD)
Default. 100000 bytes
Minimum. 100000 bytes
Tracing text is written as UTF–8 encoded text with a byte order mark to make it portable to other systems.
traceMaxFiles
Content. Number of trace files (registry type REG_DWORD)
Default. 2
Minimum. 1
This setting controls the number of trace files to keep on the system. Setting the maximum number of files to keep to 1, causes the file to be overwritten when the maximum size is reached. The oldest file, based on last write time, is removed when the maximum number of files is reached.
traceConfigInterval
Content. Time out in milliseconds (registry type REG_DWORD)
Default. 300000 ms (5 minutes)
Minimum. 60000 ms (1 minute)
All trace settings are reread from the registry based on this timeout value. In a production environment, consider setting this value to a large value, such as 24 hours, to minimize overhead.
If the Gateway encounters a serious problem and exits abnormally, you can send the resulting Dr. Watson logs to Oracle Support for analysis.
You must have administrator privileges on the system to view these logs.
Open the Windows Event Viewer.
Open the application log.
Look for an event with DrWatson source.
Open the event to view detailed information.
Ensure that the Bytes option is selected for Data.
Right-click in the display dialog and choose Select all from the menu.
Type Ctrl-C to copy the information.
Paste the information into Notepad and save the file.
Send the file in an email to Oracle Support with a detailed description of the problem. Be sure to indicate which version of the Waveset Gateway you are running.