Technical Documentation

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:

  1. 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.
  2. 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:

  1. Specify that you want to configure tracing options.
    [edit system services local-policy-decision-function]user@host# edit traceoptions
  2. Configure the filename used for the trace output.
    [edit system services local-policy-decision-function traceoptions]user@host# set file lpdfd
  3. (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
  4. (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


Published: 2010-07-13

Help
|
My Account
|
Log Out