Traceoptions (Individual Interfaces) - Juniper EX2200 Hardware Manual

Junos osfor exseries ethernetswitches
Hide thumbs Also See for EX2200:
Table of Contents

Advertisement

traceoptions (Individual Interfaces)

Syntax
Hierarchy Level
Release Information
Description
Default
Options
Copyright © 2015, Juniper Networks, Inc.
traceoptions {
file filename <files name> <size size> <world-readable | no-world-readable>;
flag flag;
match;
}
[edit interfaces interface-name]
Statement introduced before Junos OS Release 7.4.
Statement introduced in Junos OS Release 9.0 for EX Series switches.
Statement introduced in Junos OS Release 12.2 for ACX Series Universal Access Routers.
Define tracing operations for individual interfaces.
To specify more than one tracing operation, include multiple
The interfaces
traceoptions
by the kernel, so the tracing information is placed in the system
.
/var/log
If you do not include this statement, no interface-specific tracing operations are performed.
—Name of the file to receive the output of the tracing operation. Enclose the
file name
name within quotation marks. All files are placed in the directory
interface process tracing output is placed in the file
Maximum number of trace files. When a trace file named trace-file reaches its
maximum size, it is renamed
maximum number of trace files is reached. Then the oldest trace file is
overwritten.
dcd
.
—(Optional) Regular expression for lines to be traced.
match
no-world-readable
—(Optional) Prevent any user from reading the log file.
—(Optional) Allow any user to read the log file.
world-readable
size size
—(Optional) Maximum size of each trace file, in kilobytes (KB), megabytes (MB),
or gigabytes (GB). When a trace file named
. When the
trace-file.0
renamed
trace-file.1
and
continues until the maximum number of trace files is reached. Then, the oldest trace
file is overwritten.
flag
—Tracing operation to perform. To specify more than one tracing operation, include
multiple
statements. The following are the interface-specific tracing options.
flag
—All interface tracing operations
all
—Interface events
event
statement does not support a trace file. The logging is done
, then
trace-file.0
trace-file.1
trace-file
again reaches its maximum size,
trace-file
trace-file
is renamed
trace-file.0
Chapter 3: Configuration Statements
statements.
flag
syslog
file in the directory
. By default,
/var/log
files number
—(Optional)
, and so on, until the
reaches this size, it is renamed
is
trace-file.0
. This renaming scheme
221

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents