Supported Platforms
Tracing PTSP Operations
Tracing operations track L-PDF operations and record them in a log file. The error descriptions captured in the log file provide detailed information to help you solve problems.
By default, no events are traced. When you enable the tracing operation, the default tracing behavior is as follows:
- Important events are logged in a file located in the /var/log directory. By default, the router uses the filename, ptspd. You can specify a different filename, but you cannot change the directory in which trace files are located.
- When the trace log file filename reaches 128 kilobytes (KB), it is compressed and renamed filename.0.gz. Subsequent events are logged
in a new file called filename, until
it reaches capacity again. At this point, filename.0.gz is renamed filename.1.gz and filename is compressed and renamed filename.0.gz. This process repeats until
the number of archived files reaches the maximum file number. Then
the oldest trace file—the one with the highest number—is
overwritten.
You can optionally configure the maximum file size to be from 10 KB through 1 gigabyte (GB). You can also specify the number of trace files to be from 2 through 1000. (For more information about how log files are created, see the Junos OS System Log Messages Reference.)
To customize trace file settings:
- Specify that you want to configure tracing options.[edit system services local-policy-decision-function]user@host# edit traceoptions
- Configure the filename used for the trace output. [edit system services local-policy-decision-function traceoptions]user@host# set file lpdfd
- (Optional) Configure the maximum number and size of the
log files. If you configure one of these options, you also must set
the other option.[edit system services local-policy-decision-function traceoptions]user@host# set files 10 size 1g
- (Optional) Specify flags to filter the operations to be
logged. To specify more than one flag, include multiple flag statements.[edit system services local-policy-decision-function traceoptions]user@host# set flag ptsp-statistics
The following table describes the flags that you can include.
Flag
Description
configuration
Trace configuration events
database
Trace database events
general
Trace general flow
ptsp-statistics
Trace PTSP events
rtsock
Trace routing socket events
statistics
Trace statistics events
subscriber
Trace subscriber events