Forcing shortest-path calculation updates

Force the switch to update its shortest-path calculations so that the switch uses the latest OSPF routing information. Manually initiate a shortest path first (SPF) run, or calculation, to immediately update the OSPF LSDB. This action is useful in the following circumstances:

  • when you need to immediately restore a deleted OSPF-learned route

  • when the routing table entries and the LSDB do not synchronize

Before you begin

  • You can perform this procedure in one of the following CLI modes: User EXEC, Privileged EXEC, or Global Configuration.

About this task

This process is computationally intensive. Use this command only if required.

Procedure

  1. To enter User EXEC mode, log on to the switch.
  2. Force the router to update its shortest-path calculations:

    ip ospf spf-run [vrf WORD<1-16>]

Example

Force the router to update its shortest-path calculations:

Switch:1>ip ospf spf-run

Variable definitions

The following table defines parameters for the ip ospf spf-run command.

Variable

Value

vrf WORD<1-16>

Specifies a VRF instance by name.