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. You cannot change the directory (/var/log) in which trace files are located.
- When the trace file reaches its maximum size, a .0 is appended to the filename, then a new file is created with a .1 appended, and so on. When the maximum number of trace files
is reached, the oldest trace file 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 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
