Viewing OSPF Interface Statistics

Use statistics to help you monitor Open Shortest Path First (OSPF) performance. You can also use statistics in troubleshooting procedures.

Procedure

  1. To enter User EXEC mode, log on to the switch.
  2. Display OSPF interface statistics:

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

Example

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

Use this table to help you use the show ip ospf ifstats command.

Variable

Value

detail

Shows detailed information.

mismatch

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

vlan <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.

vrf WORD<1-16>

Specifies a VRF instance by VRF name.

vrfids WORD<0-512>

Specifies a VRF or range of VRFs by ID.

Job Aid

The following table describes the output for the show ip ospf ifstats command.

Table 1. show ip ospf ifstats field descriptions

Field

Description

INTERFACE

Indicates the IP address of the host.

HELLOS RX

Indicates the number of hello packets received by this interface.

HELLOS TX

Indicates the number of hello packets transmitted by this interface.

DBS RX

Indicates the number of database descriptor packets received by this interface.

DBS TX

Indicates the number of database descriptor packets transmitted by this interface.

LS REQ

Indicates the number of link state request packets received by this interface.

LS TX

Indicates the number of link state request packets transmitted by this interface.

LS UDP RX

Indicates the number of link state update packets received by this interface.

LS UDP TX

Indicates the number of link state update packets transmitted by this interface.

LS ACK RX

Indicates the number of link state acknowledge packets received by this interface.

LS ACK TX

Indicates the number of link state acknowledge packets transmitted by this interface.

VERSION

Indicates the OSPF version.

AREA

Indicates the OSPF area.

AUTHTYPE

Indicates the OSPF authentication type.

AUTHFAIL

The count of authentication fail messages.

NETMASK

Indicates the net mask.

HELLO

The count of Hello messages.

DEADTRR OPTION

The dead TRR option.