Description | This article describes how to check the last time the SPF algorithm was executed on the OSPF protocol. |
Scope | FortiOS v7.2.0 and later, v7.4.0 and later, 7.6.0 and later. |
Solution |
After OSPF dynamic routing is configured on the FortiGate according to this KB article: Technical Tip: Basic OSPF configuration and MTU settings in OSPF FGT-HUBDC1 (root) # get router info ospf status
The above output shows that OSPF process uptime is 1 hour 13 minutes; however, the last time that the SPF algorithm was run was 1 hour 4 minutes and 12 seconds ago.
Monitoring this counter is an important part of network health and performance because it could indicate network stability. If this counter is frequently changing it can indicate a part of the network as unstable (it could be a router, link or network that is flapping):
FGT-HUBDC1 (root) # get router info ospf status Getting the same output after some minutes: FGT-HUBDC1 (root) # get router info ospf status
This change has an impact on the FortiGate performance because the SPF algorithm is a CPU-intensive operation.
Related article: |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.