Supported Platforms
show (ospf | ospf3) log
Syntax
Syntax (EX Series Switch and QFX Series)
Release Information
Command introduced before Junos OS Release 7.4.
Command introduced in Junos OS Release 9.0 for EX Series switches.
topology option introduced in Junos OS Release 9.0.
topology option introduced in Junos OS Release 9.0 for EX Series switches.
realm option introduced in Junos OS Release 9.2.
Command introduced in Junos OS Release 11.3 for the QFX Series.
Description
Display the entries in the Open Shortest Path First (OSPF) log of SPF calculations.
Options
none | — | Display entries in the OSPF log of SPF calculations for all routing instances. |
instance instance-name | — | (Optional) Display entries for the specified routing instance. |
logical-system (all | logical-system-name) | — | (Optional) Perform this operation on all logical systems or on a particular logical system. |
topology topology-name | — | (Optional) (OSPFv2 only) Display entries for the specified topology. |
realm (ipv4-multicast | ipv4-unicast | ipv6-multicast) | — | (OSPFv3 only) (Optional) Display entries for the specified OSPFv3 realm, or address family. Use the realm option to specify an address family for OSPFv3 other than IPv6 unicast, which is the default. |
Required Privilege Level
view
List of Sample Output
show ospf logshow ospf log topology voice
Output Fields
Table 1 lists the output fields for the show (ospf | ospf3) log command. Output fields are listed in the approximate order in which they appear.
Table 1: show (ospf | ospf3) log Output Fields
Field Name | Field Description |
---|---|
When | Time, in weeks (w) and days (d), since the SPF calculation was made. |
Type | Type of calculation: Cleanup, External, Interarea, NSSA, Redist, SPF, Stub, Total, or Virtuallink. |
Elapsed | Amount of time, in seconds, that elapsed during the operation, or the time required to complete the SPF calculation. The start time is the time displayed in the When field. |
Sample Output
show ospf log
user@host> show ospf log
When Type Elapsed 1w4d 17:25:58 Stub 0.000017 1w4d 17:25:58 SPF 0.000070 1w4d 17:25:58 Stub 0.000019 1w4d 17:25:58 Interarea 0.000054 1w4d 17:25:58 External 0.000005 1w4d 17:25:58 Cleanup 0.000203 1w4d 17:25:58 Total 0.000537 1w4d 17:24:48 SPF 0.000125 1w4d 17:24:48 Stub 0.000017 1w4d 17:24:48 SPF 0.000100 1w4d 17:24:48 Stub 0.000016 1w4d 17:24:48 Interarea 0.000056 1w4d 17:24:48 External 0.000005 1w4d 17:24:48 Cleanup 0.000238 1w4d 17:24:48 Total 0.000600 ...
show ospf log topology voice
user@host> show ospf log topology voice
Topology voice SPF log: Last instance of each event type When Type Elapsed 00:06:11 SPF 0.000116 00:06:11 Stub 0.000114 00:06:11 Interarea 0.000126 00:06:11 External 0.000067 00:06:11 NSSA 0.000037 00:06:11 Cleanup 0.000186 Maximum length of each event type When Type Elapsed 00:13:43 SPF 0.000140 00:13:33 Stub 0.000116 00:13:43 Interarea 0.000128 00:13:33 External 0.000075 00:13:38 NSSA 0.000039 00:13:53 Cleanup 0.000657 Last 100 events When Type Elapsed 00:13:53 SPF 0.000090 00:13:53 Stub 0.000041 00:13:53 Interarea 0.000123 00:13:53 External 0.000040 00:13:53 NSSA 0.000038 00:13:53 Cleanup 0.000657 00:13:53 Total 0.001252 . . 00:06:11 SPF 0.000116 00:06:11 Stub 0.000114 00:06:11 Interarea 0.000126 00:06:11 External 0.000067 00:06:11 NSSA 0.000037 00:06:11 Cleanup 0.000186 00:06:11 Total 0.000818