HP-UX SNAplus2 Diagnostics Guide

Using Logging and Tracing
Tracing
Chapter 380
files:
Add the
dual_files
parameter to specify whether tracing is to one or
two files:
To trace to two files, specify
snapadmin set_trace_file, dual_files = YES
To trace to one file, specify
snapadmin set_trace_file, dual_files = NO
Add the
trace_file_size
parameter to specify the maximum size of
the trace file, in bytes. (If
dual_files
is set to NO, this parameter is
ignored.) For example:
snapadmin set_trace_file, trace_file_size = 1000000
Add the
file_name
and
file_name_2
parameters to rename the trace
files. (If
dual_files
is set to NO, the
file_name_2
parameter is
ignored.) For example:
snapadmin set_trace_file, file_name = new1.trc,
file_name_2 = new2.trc
Step 2. Perform one of the following procedures:
Activate line tracing on all DLCs, ports, and link stations (LSs) by
specifying the following:
snapadmin add_dlc_trace
Control the amount of line tracing by specifying the resource type (for
example, port and link station):
To restrict the tracing to a particular port, specify the command with
the following parameters:
snapadmin add_dlc_trace, resource_type = PORT,
resource_name =
port_name
To restrict the tracing to a particular LS, specify the command with
the following parameters:
snapadmin add_dlc_trace, resource_type = LS,
resource_name =
LS_name
Tracing is now enabled and written to the following binary files (unless