Using Trace to Examine IS-IS Control Packets
Use trace as a debug tool to examine the code flow and Intermediate-System-to-Intermediate-System (IS-IS) control packets. When you enable IS-IS trace flags, only trace information about the set flag appears.
Before you begin
You must know what you want to trace before you enable trace.
Procedure
Example
Switch:1> enable
Clear prior trace information:
Switch:1# clear trace
Enable IS-IS trace flags for received IS-IS hello packets:
Switch:1# trace flags isis set rx-hello
Enable IS-IS trace flags for transmitted IS-IS hello packets:
Switch:1# trace flags isis set tx-hello
Configure the module ID to 119 (IS-IS module) and the trace to 4 (very verbose):
Switch:1# trace level 119 4
Enable the display of trace output to the screen:
Switch:1# trace screen enable
Switch:1# Screen tracing is on
Disable the display of trace output to the screen:
Switch:1# trace screen disable
Switch:1# Screen tracing is off
Variable Definitions
The following table defines parameters for the trace flags isis command.
Variable |
Value |
---|---|
remove { none | tx-hello | rx-hello | tx-pkt | rx-pkt | adj | opt | tx-lsack | rx-lsack | tx-lsp | rx-lsp | pkt-err | nbr-mismatch | flood | prefix | nbr-change | intf-change | decide | fdb | dr | auth-fail | config | purge | policy | redist | tx-snp | rx-snp | timer | global | perf | ucast-fib | node | isid | ip-shortcut } |
Removes the Intermediate-System-to-Intermediate-System (IS-IS) trace flags for the specified option. |
set { none | tx-hello | rx-hello | tx-pkt | rx-pkt | adj | opt | tx-lsack | rx-lsack | tx-lsp | rx-lsp | pkt-err | nbr-mismatch | flood | prefix | nbr-change | intf-change | decide | fdb | dr | auth-fail | config | purge | policy | redist | tx-snp | rx-snp | timer | global | perf | ucast-fib | node | isid | ip-shortcut } |
Enables the Intermediate-System-to-Intermediate-System (IS-IS) trace flags for the specified option.
|
The following table defines parameters for the show trace command.
Variable |
Value |
---|---|
auto |
Displays the current configuration for the automatic trace function. |
file [tail] |
Displays the trace results saved to a file. |
level |
Displays the current trace level for all modules. |
modid-list |
Specifies the module ID list. |
The following table defines parameters for the trace command.
Variable |
Value |
---|---|
grep [WORD<0-128>] |
Specifies the search keyword. You can use a specific MAC address. You can search for errors, using the command, trace grep error. |
cfm level [<0-4>] |
Starts tracing by CFM.
|
spbm isis level [<0-4>] |
Specifies exactly which IS-IS component to display.
|
level [<Module_ID>] [<0-4>] |
Starts the trace by specifying the module ID and level. <Module_ID> specifies the module for the trace. Different hardware platforms support different ID ranges because of feature support differences. To see which module IDs are available on the switch, use the show trace modid-list command or CLI command completion Help. 0–4 specifies the trace level:
|
shutdown |
Stops the trace operation. |
screen {disable|enable} |
Enables or disables the display of trace output to the screen. Important:
Avoid using the screen to view commands if you use trace level 3 (verbose) or trace level 4 (very verbose) due to the volume of information generated and the effect on the system. |
The following table defines parameters for the save trace command.
Variable |
Value |
---|---|
file WORD<1–99> |
Specifies the file name in one of the following formats:
WORD<1–99> is a string of 1–99 characters. Note:
If you do not specify a file name, the file name is systrace.txt. |