display ospf peer statistics

Use display ospf peer statistics to display OSPF neighbor statistics.

Syntax

display ospf [ process-id ] peer statistics

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

process-id: Specifies an OSPF process by its ID in the range of 1 to 65535. If you do not specify this argument, the command displays OSPF neighbor statistics for all OSPF processes.

Examples

# Display OSPF neighbor statistics.

<Sysname> display ospf peer statistics
          OSPF Process 1 with Router ID 10.3.1.1
                    Neighbor Statistics
  Area ID         Down Attempt Init 2-Way ExStart Exchange Loading Full Total
  0.0.0.0         0    0       0    0     0       0        0       1    1
  0.0.0.2         0    0       0    0     0       0        0       1    1
  Total           0    0       0    0     0       0        0       2    2

Table 45: Command output

Field

Description

Area ID

The state statistics for all the routers in the area to which the router belongs is displayed.

Down

Number of neighboring routers in Down state in the same area.

Attempt

Number of neighboring routers in Attempt state in the same area.

Init

Number of neighboring routers in Init state in the same area.

2-Way

Number of neighboring routers in 2-Way state in the same area.

ExStart

Number of neighboring routers in ExStart state in the same area.

Exchange

Number of neighboring routers in Exchange state in the same area.

Loading

Number of neighboring routers in Loading state in the same area.

Full

Number of neighboring routers in Full state in the same area.

Total

Total number of neighbors in the same state: Down, Attempt, Init, 2-Way, ExStart, Exchange, Loading, or Full.