[an error occurred while processing this directive][an error occurred while processing this directive]

Tracing PPPoE Operations

PPPoE supports tracing operations. PPPoE tracing operations track PPPoE 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, nothing is traced. When you enable the tracing operation, the default tracing behavior is as follows:

  1. Important events are logged in a file called pppoed located in the /var/log directory. You cannot change the directory (/var/log) in which trace files are located.
  2. When the file pppoed reaches 128 kilobytes (KB), it is renamed pppoed.0, then pppoed.1, and so on, until there are three trace files. Then the oldest trace file (pppoed.2) 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.)

By default, only the user who configures the tracing operation can access log files. You can optionally configure read-only access for other users.

To configure PPPoE tracing operations:

  1. Specify that you want to configure tracing options.
    [edit protocols pppoe]user@host# edit traceoptions
  2. (Optional) Configure the name for the file used for the trace output.

    See Configuring the PPPoE Trace Log Filename.

  3. (Optional) Configure the number and size of the log files.

    See Configuring the Number and Size of PPPoE Log Files.

  4. (Optional) Configure access to the log file.

    See Configuring Access to the PPPoE Log File.

  5. (Optional) Configure a regular expression to filter logging events.

    See Configuring a Regular Expression for PPPoE Lines to Be Logged.

  6. (Optional) Configure flags to filter the operations to be logged.

    See Configuring the PPPoE Tracing Flags.

The PPPoE traceoptions operations are described in the following sections:

Configuring the PPPoE Trace Log Filename

By default, the name of the file that records trace output for PPPoE is pppoed. You can specify a different name with the file option.

Configuring the Number and Size of PPPoE Log Files

By default, when the trace file reaches 128 kilobytes (KB) in size, it is renamed filename.0, then filename.1, and so on, until there are three trace files. Then the oldest trace file (filename.2) 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 example, you can set the maximum file size to 2 MB, and the maximum number of files to 20. When the file that receives the output of the tracing operation (filename) reaches 2 MB, filename is renamed filename.0, and a new file called filename is created. When the new filename reaches 2 MB, filename.0 is renamed filename.1 and filename is renamed filename.0. This process repeats until there are 20 trace files. Then the oldest file (filename.19) is overwritten by the newest file (filename.0).

Configuring Access to the PPPoE Log File

By default, only the user who configures the tracing operation can access the log files. You can enable all users to read the log file and you can explicitly set the default behavior of the log file.

Configuring a Regular Expression for PPPoE Lines to Be Logged

By default, the trace operation output includes all lines relevant to the logged events.

You can refine the output by including regular expressions to be matched.

Configuring the PPPoE Tracing Flags

By default, no events are logged. You can specify which trace operations are logged by including specific tracing flags. The following table describes the flags that you can include.

Table 1: PPPoE Trace Operation Flags

Flag

Description

all

Trace all operations

config

Trace configuration events

events

Trace events

gres

Trace GRES events

init

Trace initialization events

interface-db

Trace interface database events

memory

Trace memory processing events

protocol

Trace protocol events

rtsock

Trace routing socket events

session-db

Trace connection events and flow

signal

Trace signal operations

state

Trace state handling events

timer

Trace timer processing

ui

Trace user interface processing

To configure the flags for the events to be logged, configure the flags:

  • [edit protocols pppoe traceoptions]user@host# set flag authentication

Published: 2010-04-20

[an error occurred while processing this directive]