traceoptions (OVSDB)

 

Syntax

Hierarchy Level

Release Information

Statement introduced in Junos OS Release 14.1R2.

Statement introduced in Junos OS Release 14.1X53-D10 for QFX Series switches.

Statement introduced in Junos OS Release 14.2 for EX Series switches.

Description

Define tracing operations for the Open vSwitch Database (OVSDB) management protocol, which is supported on Juniper Networks devices.

Default

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

Options

file filenameName of file in which the system places the output of the tracing operations. By default, the system places all files in the /var/log directory.

Default: /var/log/vgd

files number(Optional) Maximum number of trace files. When a trace file reaches the size specified by the size option, the filename is appended with 0 and compressed. For example, a trace file named trace-file.gz would be renamed trace-file.0.gz. When trace-file.0.gz reaches the specified size, it is renamed trace-file.1.gz and its contents are compressed to trace-file.0.gz. 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 number of files, you also must specify a maximum file size with the size option and a filename.

Range: 2 through 1000 files

Default: 10 files

flag flagTracing operation to perform. You can include one or more of the following flags:
allAll OVSDB events.
configurationOVSDB configuration events.
coreOVSDB core events.
functionOVSDB function events.
interfaceOVSDB interface events.
l2-clientOVSDB Layer 2 client events.
netconf-client(QFX Series switches only) Events for the dynamic configuration of Virtual Extensible LANs (VXLANs).
ovs-clientOVSDB client events.
match regular-expression(Optional) Only log lines that match the regular expression.
no-remote-trace(Optional) Disable tracing and logging operations that track normal operations, error conditions, and packets that are generated by or passed through the Juniper Networks device.
no-world-readableRestrict access to the trace files to the owner.

Default: no-world-readable

size size(Optional) Maximum size of each trace file in bytes, kilobytes (KB), megabytes (MB), or gigabytes (GB). If you do not specify a unit, the default is bytes. If you specify a maximum file size, you also must specify a maximum number of trace files by using the files option and a filename by using the file option.

Syntax: size to specify bytes, sizek to specify KB, sizem to specify MB, or sizeg to specify GB.

Range: 10,240 through 1,073,741,824 bytes

Default: 128 KB

world-readableEnable any user to access the trace files.

Required Privilege Level

admin—To view this statement in the configuration.

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