Name

traceoptions

traceoptions {
  file {
    filename filename;
    files number;
    match regex;
    microsecond-stamp
    size size;
    (world-readable | no-world-readable);
  }
  flag flag;
}

Hierarchy level

[edit protocols vrrp]

Description

Define tracing operations for the VRRP process. To specify more than one tracing operation, include multiple flag statements. By default, VRRP logs the error, DCD configuration, and routing socket events in a file in the directory /var/log.

Default

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

Options

filename 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, VRRP tracing output is placed in the file vrrpd.

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. When the maximum number is reached, the oldest trace file is overwritten. Range: 0–4,294,967,296 files. Default: three files.

Note

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

flag flag

Tracing operation to perform. To specify more than one tracing operation, include multiple flag statements. These are the VRRP-specific tracing options:

all

All VRRP tracing operations.

database

Database changes.

general

General events.

interfaces

Interface ...

Get JUNOS High Availability now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.