Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

OSPF Operational Mode Commands

Table 1 summarizes the command-line interface (CLI) commands you can use to monitor and troubleshoot the Open Shortest Path First (OSPF) protocol. Commands are listed in alphabetical order.

Table 1: OSPF Operational Mode Commands

Task

Command

Clear link-state database entries.

clear (ospf | ospf3) database

Clear OSPF input and output statistics.

clear (ospf | ospf3) io-statistics

Tear down neighbor connections.

clear (ospf | ospf3) neighbor

Clear the OSPF overload bit.

clear (ospf | ospf3) overload

Clear OSPF statistics.

clear (ospf | ospf3) statistics

Display information about the level of backup coverage available for OSPF nodes and prefixes.

show (ospf | ospf3) backup coverage

Display information about MPLS label-switched-paths (LSPs) designated as backup routes for OSPF routes.

show (ospf | ospf3) backup lsp

Display the neighbors through which direct next hops for the backup paths are available.

show (ospf | ospf3) backup neighbor

Display information about OSPF shortest-path-first calculations for backup paths.

show (ospf | ospf3) backup spf

Display context identifier information processed and advertised by OSPF for egress protection.

show ospf context-identifier

Display link-state database entries for OSPFv2.

show ospf database

Display link-state database entries for OSPFv3.

show ospf3 database

Display OSPF interface status.

show (ospf | ospf3) interface

Display OSPF input and output statistics.

show (ospf | ospf3) io-statistics

Display the SPF log.

show (ospf | ospf3) log

Display adjacent routers.

show (ospf | ospf3) neighbor

Display overview statistics.

show (ospf | ospf3) overview

Display OSPF routing table entries.

show (ospf | ospf3) route

Display OSPF statistics.

show (ospf | ospf3) statistics

Note: For more OSPF-related commands, such as show route protocol, show route instance, and show route table, see Protocol-Independent Routing Operational Mode Commands. For information about monitoring Bidirectional Forwarding Detection (BFD) sessions for OSPF clients, see BFD Operational Mode Commands. For information about how to configure OSPF, see the Junos Routing Protocols Configuration Guide.

Published: 2013-08-01

Published: 2013-08-01