Supported Platforms
Related Documentation
- EX Series
- Configuring LLDP-MED (CLI Procedure)
- Understanding 802.1X and LLDP and LLDP-MED on EX Series Switches
- QFabric System, QFX Series standalone switches
- Configuring LLDP
- QFX Series
- Understanding LLDP
traceoptions (LLDP)
Syntax
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 9.0 for EX Series switches.
Statement introduced in Junos OS Release 11.1 for the QFX Series.
Description
Define tracing operations for the Link Layer Discovery Protocol (LLDP). You can trace messages under LLDP for LLDP and PTOPO MIBs.
![]() | Note: The traceoptions statement is not supported on the QFX3000 QFabric system. |
Default
Tracing operations are disabled.
Options
file 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.
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 xk to specify KB, xm to specify MB, or xg to specify GB 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 flag—Tracing operation to perform. To specify more than one tracing operation, include multiple flag statements. You can include the following flags:
- all—All tracing operations.
- configuration—Trace configuration operations.
- interface—Trace interface update events.
- netbios—Trace NetBIOS events.
- packet—Trace packet events.
- rtsock—Trace routing socket operations.
- snmp—Trace SNMP configuration operations.
- vlan—Trace VLAN update events.
no-stamp—(Optional) Do not timestamp the trace file.
Default: If you omit this option, timestamp information is placed at the beginning of each line of the tracing output.
no-world-readable—(Optional) Restrict file access to the user who created the file.
replace—(Optional) Replace an existing trace file if there is one rather than appending output to it.
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 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 files option.
Syntax: xk to specify KB, xm to specify MB, or xg to specify GB
Range: 10 KB through 1 GB
Default: 128 KB
Default: If you do not include this option, tracing output is appended to an existing trace file.
world-readable—(Optional) Enable unrestricted file access.
![]() | Note: The traceoptions statement is not supported on the QFX3000 QFabric system. |
Required Privilege Level
routing—To view this statement in the
configuration.
routing-control—To add this statement
to the configuration.
Related Documentation
- EX Series
- Configuring LLDP-MED (CLI Procedure)
- Understanding 802.1X and LLDP and LLDP-MED on EX Series Switches
- QFabric System, QFX Series standalone switches
- Configuring LLDP
- QFX Series
- Understanding LLDP
Published: 2014-07-23
Supported Platforms
Related Documentation
- EX Series
- Configuring LLDP-MED (CLI Procedure)
- Understanding 802.1X and LLDP and LLDP-MED on EX Series Switches
- QFabric System, QFX Series standalone switches
- Configuring LLDP
- QFX Series
- Understanding LLDP