OSPF protocol
Checks whether the OSPF protocol information is correct.
protocols ospf show: checks the general information on OSPF.
Example:
admin@osdx$ protocols ospf show
 OSPF Routing Process, Router ID: 10.215.200.50
 Supports only single TOS (TOS0) routes
 This implementation conforms to RFC2328
 RFC1583Compatibility flag is disabled
 OpaqueCapability flag is disabled
 Initial SPF scheduling delay 0 millisec(s)
 Minimum hold time between consecutive SPFs 50 millisec(s)
 Maximum hold time between consecutive SPFs 5000 millisec(s)
 Hold time multiplier is currently 1
 SPF algorithm last executed 2m28s ago
 Last SPF duration 22 usecs
 SPF timer is inactive
 LSA minimum interval 5000 msecs
 LSA minimum arrival 1000 msecs
 Write Multiplier set to 20
 Refresh timer 10 secs
 Maximum multiple paths(ECMP) supported 32
 Administrative distance 110
 Number of external LSA 1. Checksum Sum 0x00009616
 Number of opaque AS LSA 0. Checksum Sum 0x00000000
 Number of areas attached to this router: 1
 Area ID: 0.0.0.1
   Shortcutting mode: Default, S-bit consensus: no
   Number of interfaces in this area: Total: 1, Active: 1
   Number of fully adjacent neighbors in this area: 1
   Area has no authentication
   Number of full virtual adjacencies going through this area: 0
   SPF algorithm executed 3 times
   Number of LSA 3
   Number of router LSA 2. Checksum Sum 0x00013586
   Number of network LSA 1. Checksum Sum 0x0000a9a6
   Number of summary LSA 0. Checksum Sum 0x00000000
   Number of ASBR summary LSA 0. Checksum Sum 0x00000000
   Number of NSSA LSA 0. Checksum Sum 0x00000000
   Number of opaque link LSA 0. Checksum Sum 0x00000000
   Number of opaque area LSA 0. Checksum Sum 0x00000000
protocols ospf show border-routers: checks the information on OSPF border routers.
Example:
admin@osdx$ protocols ospf show border-routers
============ OSPF router routing table =============
R    10.215.200.100        [1] area: 0.0.0.1, ASBR
                           via 10.215.200.100, eth0
protocols ospf show database: checks OSPF routing database information.
Example:
admin@osdx$ protocols ospf show database
       OSPF Router with ID (10.215.200.50)
                Router Link States (Area 0.0.0.1)
Link ID         ADV Router      Age  Seq#       CkSum  Link count
10.215.200.50  10.215.200.50   1056 0x80000004 0x4a60 1
10.215.200.100 10.215.200.100  1056 0x80000004 0xeb26 1
                Net Link States (Area 0.0.0.1)
Link ID         ADV Router      Age  Seq#       CkSum
10.215.200.100 10.215.200.100  1057 0x80000001 0xa9a6
                AS External Link States
Link ID         ADV Router      Age  Seq#       CkSum  Route
1.1.1.0        10.215.200.100  1097 0x80000001 0x9616 E2 1.1.1.0/24 [0x0]
protocols ospf show interface <ifc>: checks information on OSPF interfaces.
Example:
admin@osdx$ protocols ospf show interface eth0
eth0 is up
  ifindex 2, MTU 1500 bytes, BW 4294967295 Mbit <UP,BROADCAST,RUNNING,MULTICAST>
  Internet Address 10.215.200.50/24, Broadcast 10.215.200.255, Area 0.0.0.1
  MTU mismatch detection: enabled
  Router ID 10.215.200.50, Network Type BROADCAST, Cost: 1
  Transmit Delay is 1 sec, State Backup, Priority 1
  Designated Router (ID) 10.215.200.100 Interface Address 10.215.200.100/24
  Backup Designated Router (ID) 10.215.200.50, Interface Address 10.215.200.50
  Multicast group memberships: OSPFAllRouters OSPFDesignatedRouters
  Timer intervals configured, Hello 10s, Dead 40s, Wait 40s, Retransmit 5
    Hello due in 2.274s
  Neighbor Count is 1, Adjacent neighbor count is 1
protocols ospf show neighbor <ifc|ipv4>: checks information on OSPF neighbors.
Example:
admin@osdx$ protocols ospf show neighbor eth0
Neighbor ID     Pri State           Up Time         Dead Time Address         Interface                        RXmtL RqstL DBsmL
10.215.200.100    1 Full/DR         19m14s            35.623s 10.215.200.100  eth0:10.215.200.50                   0     0     0
protocols ospf show route: checks OSPF routing information.
Example:
admin@osdx$ protocols ospf show route
============ OSPF network routing table ============
N    10.215.200.0/24       [1] area: 0.0.0.1
                           directly attached to eth0
============ OSPF router routing table =============
R    10.215.200.100        [1] area: 0.0.0.1, ASBR
                           via 10.215.200.100, eth0
============ OSPF external routing table ===========
N E2 1.1.1.0/24            [1/20] tag: 0
                           via 10.215.200.100, eth0
Most of the protocols ospf show commands can be executed with VRF support. The following are just an example:
protocols vrf <value> ospf show: checks the general information on OSPF through a specific VRF.protocols vrf <value> ospf show border-routers: checks the information on OSPF border routers through a specific VRF.protocols vrf <value> ospf show database: checks OSPF routing database information through a specific VRF.protocols vrf <value> ospf show interface <ifc>: checks information on OSPF interfaces through a specific VRF.protocols vrf <value> ospf show neighbor <ifc|ipv4>: checks information on OSPF neighbors through a specific VRF.protocols vrf <value> ospf show route: checks OSPF routing information through a specific VRF.