|
|
|
|
This verb specifies the name of a file that SNAP-IX uses to record trace data.
If you issue a second SET_TRACE_FILE verb specifying a new file for the same file type, all subsequent trace information will be written to the new file; the existing file is not removed, but further information will not be written to it. If you issue a second SET_TRACE_FILE verb for the same trace file, this resets the file (discarding trace information that was written to the file before the second verb).
This verb may be issued to a running node, or (for client-server trace files only) to a Solaris client computer on which the SNAP-IX software is running. To obtain a target handle for the client in order to issue this verb, use the CONNECT_NODE verb without specifying a node name; the NOF application must be running on the client.
On Windows clients, tracing is controlled by options in the Windows Program Registry. For more information, see the SNAP-IX Administration Guide.
typedef struct set_trace_file
{
AP_UINT16 opcode; /* verb operation code */
unsigned char reserv2; /* reserved */
unsigned char format; /* reserved */
AP_UINT16 primary_rc; /* primary return code */
AP_UINT32 secondary_rc; /* secondary return code */
unsigned char trace_file_type; /* type of trace file */
unsigned char dual_files; /* dual trace files */
AP_UINT32 trace_file_size; /* trace file size */
unsigned char reserv3[4]; /* reserved */
unsigned char file_name[81]; /* file name */
unsigned char file_name_2[81]; /* second file name */
} SET_TRACE_FILE;
The application supplies the following parameters:
The type of trace file. Possible values are:
File contains tracing on data transferred across the SNAP-IX LAN between the specified computer and other nodes (activated by the SET_CS_TRACE verb).
File contains tracing on the SNAP-IX TN server component.
File contains tracing on kernel components for the specified node (activated by the SET_TRACE_TYPE or ADD_DLC_TRACE verb).
Specifies whether tracing is to one file or to two files. Possible values are:
Tracing is to two files. When the first file reaches the size specified by trace_file_size, the second file is cleared, and tracing continues to the second file. When this file then reaches the size specified by trace_file_size, the first file is cleared, and tracing continues to the first file. This ensures that tracing can continue for long periods without using excessive disk space; the maximum space required is approximately twice the value of trace_file_size.
Tracing is to one file.
Leave the dual_files setting unchanged from the existing definition. (The initial default, when the SNAP-IX software is started, is to use two files.)
The maximum size of the trace file, in bytes. To continue using the existing file size definition, specify zero.
If dual_files is set to
You may need to increase the size of the trace files according to the size of the SNAP-IX client-server network, to allow for the volume of trace information generated in larger systems. In particular, consider increasing the trace file size on a server to allow for large numbers of clients or users accessing the server.
Name of the trace file, or of the first trace file if dual_files
is set to
To create the file in the default directory for diagnostics files, /var/opt/sna, specify the file name with no path. To create the file in a different directory, specify either a full path or the path relative to the default directory. If you include the path, ensure that it is a valid path (either relative to the application's working directory or a full path) on any computer to which this verb is issued.
This parameter is an ASCII string of 1-80 characters, followed by a NULL character (binary zero).
Name of the second trace file; this parameter is used only if
dual_files is set to
To create the file in the default directory for diagnostics files, /var/opt/sna, specify the file name with no path. To create the file in a different directory, specify either a full path or the path relative to the default directory. If you include the path, ensure that it is a valid path (either relative to the application's working directory or a full path) on any computer to which this verb is issued.
This parameter is an ASCII string of 1-80 characters, followed by a NULL character (binary zero).
If the verb executes successfully, SNAP-IX returns the following parameters:
AP_OK
Not used.
If the verb does not execute because of a parameter error, SNAP-IX returns the following parameters:
AP_PARAMETER_CHECK
Possible values are:
The file_name or file_name_2 parameter was not set to a valid Solaris file name, or file_name_2 was not specified when changing from a single trace file to dual trace files.
The trace_file_type parameter was not set to a valid value.
Common Return Codes lists further secondary return codes associated with AP_PARAMETER_CHECK, which are common to all NOF verbs.
Common Return Codes lists further combinations of primary and secondary return codes that are common to all NOF verbs.
|
|
|
|
|