Traceoptions - Juniper JUNOS OS 10.3 - SOFTWARE Manual

For ex series ethernet switches
Hide thumbs Also See for JUNOS OS 10.3 - SOFTWARE:
Table of Contents

Advertisement

Complete Software Guide for Junos

traceoptions

Syntax
Hierarchy Level
Release Information
Description
Default
Options
2738
®
OS for EX Series Ethernet Switches, Release 10.3
traceoptions {
file filename <files number> <size size> <world-readable | no-world-readable> <match
regex>;
flag flag (detail | disable | receive | send);
}
[edit protocols lldp]
Statement introduced in Junos OS Release 9.0 for EX Series switches.
Define tracing operations for the LLDP protocol.
Tracing operations are disabled.
—Name of the file to receive the output of the tracing operation. Enclose
file filename
the name within quotation marks. All files are placed in the directory
—(Optional) Maximum number of trace files. When a trace file named
files number
reaches its maximum size, it is renamed
trace-file
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
option.
Range: 2 through 1000
Default: 3 files
flag flag
—Tracing operation to perform. To specify more than one tracing operation,
include multiple flag statements. You can include the following flags:
—All tracing operations.
all
config
—Trace configuration operations.
—Trace packet events.
packet
rtsock
—Trace routing socket operations.
—(Optional) Refine the output to include lines that contain the regular
match regex
expression.
no-world-readable
—(Optional) Restrict file access to the user who created the file.
—(Optional) Maximum size of each trace file, in kilobytes (KB), megabytes (MB),
size size
or gigabytes (GB). When a trace file named
is renamed
trace-file.0
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
option.
Syntax:
to specify KB,
xk
xm
xk
to specify KB,
xm
to specify MB, or
trace-file
, then
trace-file.1
, and so on, until the maximum number of
to specify MB, or
to specify GB
xg
/var/log
, then
trace-file.0
trace-file.1
xg
to specify GB
reaches its maximum size, it
Copyright © 2010, Juniper Networks, Inc.
.
, and
size
files

Advertisement

Table of Contents
loading

Table of Contents