View the OSPF Interface Statistics

Use statistics to help you monitor OSPF performance.

Procedure

  1. Enter Privileged EXEC mode:

    enable

  2. View the OSPF interface statistics:

    show ip ospf ifstats [detail vrf WORD<1-16> vrfids WORD<0-512>] [mismatch vrf WORD<1-16> vrfids WORD<0-512>] [vlan <1-4059>] [vrf WORD<1-16>] [vrfids WORD<0-512>]

Example

View the OSPF interface statistics:

Switch:1#show ip ospf ifstats
================================================================================
                    OSPF Interface Statistics - GlobalRouter
================================================================================
                ---HELLOS---- ---DBS--- -LS REQ-- --LS UPD--- --LS ACK---
INTERFACE       RX     TX     RX   TX   RX   TX   RX    TX     RX    Tx    
--------------------------------------------------------------------------------
192.0.2.3      76035  76355  33   32   4    9    2483  2551  2525  1247 
192.0.2.8      76038  76349  0    0    0    0    0     0     0     0    

Variable definitions

The following table defines parameters for the show ip ospf ifstats command.

Variable

Value

<1-4059>

Specifies the VLAN ID in the range of 1 to 4059. By default, VLAN IDs 1 to 4059 are configurable and the system reserves VLAN IDs 4060 to 4094 for internal use. On switches that support the vrf-scaling and spbm-config-mode boot configuration flags, if you enable these flags, the system also reserves VLAN IDs 3500 to 3998. VLAN ID 1 is the default VLAN and you cannot create or delete VLAN ID 1.

detail

Displays the details of the OSPF.

mismatch

Specifies the number of times the area ID is not matched.

vrf WORD<1-16>

Specifies a VRF by name.

vrfids WORD<0-512>

Specifies a range of VRF IDs.