Viewing Basic OSPF Statistics for a Port

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. View basic OSPF statistics:

    show ports statistics ospf main [{slot/port[/sub-port][-slot/port[/sub-port]][,...]}]

Example

View basic OSPF statistics:

Switch:1>enable
Switch:1#show ports statistics ospf main

================================================================================
                                Port Stats Ospf
================================================================================
PORT_NUM RX_HELLO   TX_HELLO   RXDB_DESCR TXDB_DESCR RXLS_UPDATE   TXLS_UPDATE
--------------------------------------------------------------------------------
1/3      0          0          0          0          0             0

Variable Definitions

Use the data in the following table to use the show ports statistics ospf main command.

Variable

Value

{slot/port[/sub-port][-slot/port[/sub-port]][,...]}

Identifies the slot and port in one of the following formats: a single slot and port (slot/port), a range of slots and ports (slot/port-slot/port), or a series of slots and ports (slot/port,slot/port,slot/port). If the platform supports channelization and the port is channelized, you must also specify the sub-port in the format slot/port/sub-port.

Job Aid

The following table describes the output for the show ports statistics ospf main command.

Table 1. show ports statistics ospf main output description

Field

Description

PORT NUM

Indicates the port number.

RX_HELLO

Indicates the number of hello packets this interface receives.

TX_HELLO

Indicates the number of hello packets this interface transmitted.

RXDB_DESCR

Indicates the number of database descriptor packets this interface receives.

TXDB_DESCR

Indicates the number of database descriptor packets this interface transmitted.

RXLS_UPDATE

Indicates the number of link state update packets this interface receives.

TXLS_UPDATE

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