[Contents] [Prev] [Next] [Index] [Report an Error]

traceoptions

See the following sections:

Note: For information about the traceoptions statement at the [edit protocols vrrp] hierarchy level, see the JUNOS High Availability Configuration Guide.

traceoptions (Individual Interfaces)

Syntax

traceoptions {
flag flag <disable>;
}

Hierarchy Level

[edit interfaces interface-name]

Release Information

Statement introduced before JUNOS Release 7.4.

Description

Define tracing operations for individual interfaces.

To specify more than one tracing operation, include multiple flag statements.

The interfaces traceoptions statement does not support a trace file. The logging is done by the kernel, so the tracing information is placed in the system syslog file in the directory /var/log.

Default

If you do not include this statement, no interface-specific tracing operations are performed.

Options

disable—(Optional) Disable the tracing operation. You can use this option to disable a single operation when you have defined a broad group of tracing operations, such as all.

flag—Tracing operation to perform. To specify more than one tracing operation, include multiple flag statements. The following are the interface-specific tracing options.

Usage Guidelines

See Tracing Operations of the Interface Process.

Required Privilege Level

interface—To view this statement in the configuration.

interface-control—To add this statement to the configuration.

traceoptions (Interface Process)

Syntax

traceoptions {
file filename <files number> <size size> <world-readable | no-world-readable>
<match regex>;
flag flag <disable>;
}

Hierarchy Level

[edit interfaces]

Release Information

Statement introduced before JUNOS Release 7.4.

Description

Define tracing operations for the interface process (dcd).

Default

If you do not include this statement, no interface-specific tracing operations are performed.

Options

disable—(Optional) Disable the tracing operation. You can use this option to disable a single operation when you have defined a broad group of tracing operations, such as all.

filename—Name of the file to receive the output of the tracing operation. Enclose the name within quotation marks. All files are placed in the directory /var/log. By default, interface process tracing output is placed in the file dcd.

files number—(Optional) Maximum number of trace files. When a trace file named trace-file reaches its maximum size, it is renamed trace-file.0, then trace-file.1, and so on, until the maximum number of trace files is reached. Then the oldest trace file is overwritten.

If you specify a maximum number of files, you also must specify a maximum file size with the size option.

Range: 2 through 1000
Default: 3 files

flag—Tracing operation to perform. To specify more than one tracing operation, include multiple flag statements. You can include the following flags:

no-world-readable—(Optional) Disallow any user to read the log file.

size size—(Optional) Maximum size of each trace file, in kilobytes (KB), megabytes (MB), or gigabytes (GB). When a trace file named trace-file reaches this size, it is renamed trace-file.0. When the trace-file again reaches its maximum size, trace-file.0 is renamed trace-file.1 and trace-file is renamed trace-file.0. This renaming scheme continues until the maximum number of trace files is reached. Then, the oldest trace file is overwritten.

If you specify a maximum file size, you also must specify a maximum number of trace files with the files option.

Syntax: xk to specify kilobytes, xm to specify megabytes, or xg to specify gigabytes
Range: 10 KB through the maximum file size supported on your routing platform
Default: 1 MB

world-readable—(Optional) Allow any user to read the log file.

match regex—(Optional) Refine the output to include only those lines that match the given regular expression.

Usage Guidelines

See Tracing Operations of the Interface Process.

Required Privilege Level

interface—To view this statement in the configuration.

interface-control—To add this statement to the configuration.

traceoptions (LACP)

Syntax

traceoptions {
file filename <files number> <size size> <(world-readable | no-world-readable)>;
flag flag <disable>;
}

Hierarchy Level

[edit protocols lacp]

Release Information

Statement introduced in JUNOS Release 7.6.

Description

Define tracing operations for the LACP protocol.

Default

If you do not include this statement, no LACP protocol tracing operations are performed.

Options

disable—(Optional) Disable the tracing operation. You can use this option to disable a single operation when you have defined a broad group of tracing operations, such as all.

filename—Name of the file to receive the output of the tracing operation. Enclose the name within quotation marks. All files are placed in the directory /var/log. By default, interface process tracing output is placed in the file lacpd.

files number—(Optional) Maximum number of trace files. When a trace file named trace-file reaches its maximum size, it is renamed trace-file.0, then trace-file.1, and so on, until the maximum number of trace files is reached. Then the oldest trace file is overwritten.

If you specify a maximum number of files, you also must specify a maximum file size with the size option.

Range: 2 through 1000
Default: 3 files

flag—Tracing operation to perform. To specify more than one tracing operation, include multiple flag statements. You can include the following flags:

no-world-readable—(Optional) Prevent any user from reading the log file.

size size—(Optional) Maximum size of each trace file, in kilobytes (KB), megabytes (MB), or gigabytes (GB). When a trace file named trace-file reaches this size, it is renamed trace-file.0. When the trace-file again reaches its maximum size, trace-file.0 is renamed trace-file.1 and trace-file is renamed trace-file.0. This renaming scheme continues until the maximum number of trace files is reached. Then the oldest trace file is overwritten.

If you specify a maximum file size, you also must specify a maximum number of trace files with the files option:

Syntax: xk to specify kilobytes, xm to specify megabytes, or xg to specify gigabytes

Range: 10 KB through the maximum file size supported on your routing platform
Default: 1 MB

world-readable—(Optional) Allow any user to read the log file.

Usage Guidelines

See Tracing LACP Operations.

Required Privilege Level

interface—To view this statement in the configuration.

interface-control—To add this statement to the configuration.

traceoptions (PPP process)

Syntax

traceoptions {
flag flag <disable>;
file filename <files number> <size size>
<world-readable | no-world-readable> <match regex>;
flag flag <disable>;
}

Hierarchy Level

[edit protocols ppp]

Release Information

Statement introduced in JUNOS Release 7.5.

Description

Define tracing operations for the PPP process.

To specify more than one tracing operation, include multiple flag statements.

You cannot specify a separate trace tile. Tracing information is placed in the system syslog file in the directory /var/log/pppd.

Default

If you do not include this statement, no PPPD-specific tracing operations are performed.

Options

filename—Name of the file to receive the output of the tracing operation. Enclose the name within quotation marks. All files are placed in the directory /var/log. By default, commit script process tracing output is placed in the file ppd. If you include the file statement, you must specify a filename. To retain the default, you can specify eventd as the filename.

files number—(Optional) Maximum number of trace files. When a trace file named trace-file reaches its maximum size, it is renamed trace-file.0, then trace-file.1, and so on, until the maximum number of trace files is reached. Then the oldest trace file is overwritten.

If you specify a maximum number of files, you also must specify a maximum file size with the size option and a filename.

Range: 2 through 1000
Default: 3 files

disable—(Optional) Disable the tracing operation. You can use this option to disable a single operation when you have defined a broad group of tracing operations, such as all.

flag—Tracing operation to perform. To specify more than one tracing operation, include multiple flag statements. The following are the PPPD-specific tracing options.

match regex—(Optional) Refine the output to include only those lines that match the given regular expression.

size size—(Optional) Maximum size of each trace file, in kilobytes (KB), megabytes (MB), or gigabytes (GB). When a trace file named trace-file reaches this size, it is renamed trace-file.0. When the trace-file again reaches its maximum size, trace-file.0 is renamed trace-file.1 and trace-file is renamed trace-file.0. This renaming scheme continues until the maximum number of trace files is reached. Then the oldest trace file is overwritten.

If you specify a maximum file size, you also must specify a maximum number of trace files with the files option and filename.

Syntax: xk to specify KB, xm to specify MB, or xg to specify GB
Range: 10 KB through 1 GB
Default: 128 KB

world-readable—(Optional) Enable unrestricted file access.

non-world-readable—(Optional) By default, log files can be accessed only by the user who configures the tracing operation. Specify non-world-readable to reset the default.

Usage Guidelines

See Tracing Operations of the pppd Process.

Required Privilege Level

interface—To view this statement in the configuration.

interface-control—To add this statement to the configuration.


[Contents] [Prev] [Next] [Index] [Report an Error]