Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?


show (ospf | ospf3) log


Syntax (EX Series Switch and QFX Series)


Display the entries in the Open Shortest Path First (OSPF) log of SPF calculations.



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


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


Time, in weeks (w) and days (d), since the SPF calculation was made.


Type of calculation: Cleanup, External, Interarea, NSSA, Redist, SPF, Stub, Total, or Virtuallink.


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

show ospf log topology voice

Release Information

Command introduced before Junos OS Release 7.4.

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.