[Contents] [Prev] [Next] [Index] [Report an Error]

Tracing Global Routing Protocol Operations

Global routing protocol tracing operations track all general routing operations and record them in a log file. Any global tracing operations that you configure are inherited by the individual routing protocols. To modify the global tracing operations for an individual protocol, configure tracing when configuring that protocol.

For a general discussion about tracing and the precedence of multiple tracing operations, see the JUNOS System Basics Configuration Guide.

To configure global routing protocol tracing flags, include the traceoptions statement:

traceoptions {
file name <size size> <files number> <world-readable | no-world-readable>;
flag flag <flag-modifier> <disable>;
}

For a list of hierarchy levels at which you can configure this statement, see the statement summary section for this statement.

You can specify the following global routing protocol tracing flags:

You can specify the following tracing flag modifiers:

The flags in a traceoptions flag statement are identifiers. When you use the set command to configure a flag, any flags that might already be set are not modified. In the following example, setting the csn tracing flag has no effect on the already configured detail flag. Use the delete command to delete a particular flag.

[edit protocols isis]
user@host# show
traceoptions {
flag csn detail;
}
[edit protocols isis]
user@host# set traceoptions flag csn
[edit protocols isis]
user@host# show
traceoptions {
flag csn detail;
}
user@host# delete traceoptions flag detail
[edit protocols isis]
user@host# show
traceoptions {
flag csn;
}

Examples: Tracing Global Routing Protocol Operations

Log all globally traceable operations, saving the output in up to 10 files that are up to 10 MB in size:

[edit]
routing-options {
traceoptions {
file routing size 10m files 10;
flag all;
}
}

Log all unusual or abnormal traceable operations:

[edit]
routing-options {
traceoptions {
file routing size 10m files 10;
flag all;
flag normal disable;
}
}

Log changes that occur in the JUNOS software routing table:

[edit]
routing-options {
traceoptions {
file routing size 10m files 10;
flag route;
}
}

[Contents] [Prev] [Next] [Index] [Report an Error]