Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Configuring Characteristics of the Virtual Chassis Trace Log File

You can optionally configure the following characteristics of the trace log file for a 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 or switch appends new information to an existing trace file. You can optionally specify that the router or switch 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 or switch to be designated as the primary of the Virtual Chassis, specify the maximum number and maximum size of the trace file.

    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:

    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 or switch from the placing a timestamp on the trace log file:

  • On the router or switch to be designated as the primary of the Virtual Chassis, specify that a timestamp not appear on the trace log file:

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

  • On the router or switch to be designated as the primary of the Virtual Chassis, specify that the router or switch replaces an existing trace file: