Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

Configuring Characteristics of the Virtual Chassis Trace Log File

You can optionally configure the following characteristics of the trace log file for an MX Series Virtual Chassis:

  • 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. Then the oldest trace file is overwritten. You can optionally specify the maximum number of trace files to be from 2 through 1000. If you specify a maximum number of files with the files option, you must also specify a maximum file size with the size option.
  • Maximum trace file size—You can configure the maximum trace file size to be from 10 KB through 1 gigabyte (GB) If you specify a maximum file size with the size option, you must also specify a maximum number of files with the files option.
  • Timestamp—By default, timestamp information is placed at the beginning of each line of trace output. You can optionally prevent placement of a timestamp on any trace log file.
  • Appending or replacing the trace file—By default, the router appends new information to an existing trace file. You can optionally specify that the router replace an exisiting trace file instead of appending information to it.

To configure the maximum number and maximum size of trace files:

  • On the router to be designated as the master of the MX Series Virtual Chassis, specify the maximum number and maximum size of the trace file.
    [edit virtual-chassis]user@host# set traceoptions file filename files number size maximum-file-size

    For example, to set the maximum number of files to 20 and the maximum file size to 2 MB for a trace file named vccp:

    [edit virtual-chassis]user@host# set traceoptions file vccp files 20 size 2097152

    When the vccp trace file for this example reaches 2 MB, vccp is renamed vccp.0, and a new file named vccp is created. When the new vccp file reaches 2 MB, vccp.0 is renamed vccp.1 and vccp is renamed vccp.0. This process repeats until there are 20 trace files. Then the oldest file (vccp.19) is overwritten by the newest file (vccp.0).

To prevent the router from the placing a timestamp on the trace log file:

  • On the router to be designated as the master of the MX Series Virtual Chassis, specify that a timestamp not appear on the trace log file:
    [edit virtual-chassis]user@host# set traceoptions file filename no-stamp

To replace an exisiting trace file instead of appending information to it:

  • On the router to be designated as the master of the MX Series Virtual Chassis, specify that the router replaces an existing trace file:
    [edit virtual-chassis]user@host# set traceoptions file filename replace

Published: 2013-02-11