Monitoring OSPF

In addition, see show router-configuration.

Syntax:

show ospf

      border-routers

      errors

            dd

            hello

            ip

            lsack

            lsr

            lsu

            protocol

      events

      database

      database areas

            area <OSPF Area>

            asbr-summary-lsa

            checksum

            database-summary

            detailed

            external-lsa

            network-lsa

            nssa-external-lsa [detailed]

            router-lsa

            summary-lsa

            type <1 | 2 | 3 | 4 |5 | 7> [detailed]

      interfaces

            stats

            detailed

      interface <Name of Interface>

            stats

            detailed

      neighbors

      neighbor <IP Address>

      packets

      summary

Parameters:

Parameter

Description

neighbors

Shows:

  • IP addresses of neighboring interfaces

  • Priority and status of neighboring interfaces

  • Number of errors logged for each interface

neighbor <IP Address>

Shows for the specified IP address:

  • Priority

  • Status

  • Number of errors logged

interfaces

Shows for all configured logical interfaces:

  • Names of interfaces

  • IP addresses of interfaces

  • Area, to which each interface is assigned

  • Status of interfaces

  • IP address of the designated router

  • IP address of the backup designated router

interfaces stats

Shows for each OSPF interface:

  • Number of each type of error message logged

  • Number of link state advertisements sent

interfaces detailed

Shows detailed information about each OSPF interface, including:

  • Authentication type configured (if any)

  • Router IDs and IP addresses of the designated router

  • Router IDs and IP addresses of the backup designated router

  • Timer intervals configured for Hello, Wait, Dead, and Retransmit packets

  • Number of neighbors

interface <Name of Interface>

Shows for the specified interface:

  • IP address of the interface

  • Area ID

  • Status

  • Number of errors logged

  • IP addresses of the designated router and backup designated router

interface <Name of Interface> stats

Shows for the specified interface:

  • Number of each type of error message logged

  • Number of link-state advertisements sent

interface <Name of Interface> detailed

Shows detailed information about the specified interface, including:

  • Authentication type configured (if any)

  • Router IDs and IP addresses of the designated router

  • Router IDs and IP addresses of the backup designated router

  • Timer intervals configured for Hello, Wait, Dead, and Retransmit packets

  • Number of neighbors

packets

Shows the number of each type of packet sent, including:

  • Hello packets

  • Link-state update packets

  • Link-state acknowledgment packets

  • Link-state request packets

errors

Shows the number of each type of error message sent, including:

  • Hello protocol errors

  • Database description errors

  • Protocol errors

  • Link-state acknowledgment errors

  • Link-state request errors

  • Link-state update errors

  • IP errors

errors dd

Shows the number of each type of database errors.

errors hello

Shows the number of each type of Hello errors.

errors ip

Shows the number of each type of IP errors.

errors lsack

Shows the number of each type of Link-state acknowledgment errors.

errors lsu

Shows the number of each type of Link-state update errors.

errors lsr

Shows the number of each type of Link-state request errors.

errors protocol

Shows the number of each type of Protocol errors.

border-routers

Shows:

  • IP address of each area border router

  • OSPF area of each border router

  • Cost associated with each IP address

database

Shows these statistics for each OSPF area:

  • Router-link state

  • Network-link sate

Shows for each OSPF interface:

  • Checksum

  • Sequence number

  • Link count

database areas

Shows these statistics for each OSPF area:

  • Router-link state

  • Network-link state

  • AS-border-router link state

  • AS-external link state

  • Summary-link state

Shows for each OSPF interface:

  • Checksum

  • Sequence number

  • Link count

database area <OSPF Area>

Shows these statistics for the specified OSPF area:

  • Router-link state

  • Network-link state

  • AS-border-router-link state

  • AS- external-link state

  • Summary-link state statistics

Shows for each IP address configured within the specified OSPF area:

  • Checksum

  • Sequence number

  • Link count

database asbr-summary

Shows a summary of AS-border-router link state statistics for each OSPF area.

For OSPFv2 only.

database external

Shows AS-external-link state statistics for each OSPF area.

database database-summary

Shows these statistics:

  • Summary of router-link-state

  • Network-link state

  • Summary-link-state

  • AS-border-router-link state

database network

Shows network-link-state statistics for each OSPF interface, including:

  • Advertised router

  • Sequence number

  • Checksum

For OSPFv2 only.

database nssa-external-lsa [detailed]

Shows type 7 LSAs (NSSA).

For OSPF v2 only.

database router-lsa

Shows these the router-link-state statistics for each OSPF interface, including:

  • Advertised router

  • Sequence number

  • Checksum

  • Link count

For OSPFv2 only.

database summary-lsa

Shows a summary of link-state statistics for each OSPF area.

For OSPFv2 only.

database type <1 | 2 | 3 | 4 |5 | 7> [detailed]

Shows link-state statistics associated with the specified LSA number:

  • 1 - Router-link-state statistics.

  • 2 - Network-link-state statistics.

  • 3 - Summary-link-state statistics.

  • 4 - AS-border-router-link-state statistics.

  • 5 - AS-external-link-state statistics.

  • 7 - NSSA. For OSPF v2 only.

events

Shows:

  • Number of interface up/down events

  • Virtual interface up/down events

  • Designated router election events

  • Router ID changes

  • Area border router changes

  • AS border router changes

  • Link state advertisement messages