get : router info ospf
 
router info ospf
Use this command to display information about the FortiGate OSPF configuration and/or the Link-State Advertisements (LSAs) that the FortiGate unit obtains and generates. An LSA identifies the interfaces of all OSPF-enabled routers in an area, and provides information that enables OSPF-enabled routers to select the shortest path to a destination.
Syntax
get router info ospf <keyword>
<keyword>
Description
border-routers
Show OSPF routing table entries that have an Area Border Router (ABR) or Autonomous System Boundary Router (ASBR) as a destination.
database <qualifier>
Show information from the OSPF routing database according to the of these qualifiers.
Some qualifiers require a target that can be one of the following values:
Type adv_router <address_ipv4> to limit the information to LSAs originating from the router at the specified IP address.
Type self-originate <address_ipv4> to limit the information to LSAs originating from the FortiGate unit.
 
adv-router <address_ipv4>
Type adv-router <address_ipv4> to show ospf Advertising Router link states for the router at the given IP address.
 
asbr-summary <target>
Type asbr-summary to show information about ASBR summary LSAs.
 
brief
Type brief to show the number and type of LSAs associated with each OSPF area.
 
external <target>
Type external to show information about external LSAs.
 
max-age
Type max-age to show all LSAs in the MaxAge list.
 
network <target>
Type network to show information about network LSAs.
 
nssa-external <target>
Type nssa-external to show information about not-so-stubby external LSAs.
 
opaque-area <address_ipv4>
Type opaque-area <address_ipv4> to show information about opaque Type 10 (area-local) LSAs (see RFC 2370).
 
opaque-as <address_ipv4>
Type opaque-as <address_ipv4> to show information about opaque Type 11 LSAs (see RFC 2370), which are flooded throughout the AS.
 
opaque-link <address_ipv4>
Type opaque-link <address_ipv4> to show information about opaque Type 9 (link-local) LSAs (see RFC 2370).
 
router <target>
Type router to show information about router LSAs.
 
self-originate
Type self-originate to show self-originated LSAs.
 
summary <target>
Type summary to show information about summary LSAs.
interface [<interface_name>]
Show the status of one or all FortiGate interfaces and whether OSPF is enabled on those interfaces.
neighbor [all | <neighbor_id> | detail | detail all | interface <address_ipv4>]
Show general information about OSPF neighbors, excluding down-status neighbors:
Type all to show information about all neighbors, including down-status neighbors.
Type <neighbor_id> to show detailed information about the specified neighbor only.
Type detail to show detailed information about all neighbors, excluding down-status neighbors.
Type detail all to show detailed information about all neighbors, including down-status neighbors.
Type interface <address_ipv4> to show neighbor information based on the FortiGate interface IP address that was used to establish the neighbor’s relationship.
route
Show the OSPF routing table.
status
Show general information about the OSPF routing processes.
virtual-links
Show information about OSPF virtual links.