display ospf statistics
Use display ospf statistics to display OSPF statistics.
Syntax
display ospf [ process-id ] statistics [ error | packet [ interface-type interface-number ] ]
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 statistics for all OSPF processes.
error: Displays error statistics. If you do not specify this keyword, the command displays OSPF packet, LSA, and route statistics.
packet: Displays OSPF packet statistics.
interface-type interface-number: Specifies an interface by its type and number. If you do not specify this argument, the command displays statistics for all interfaces.
Examples
# Display OSPF statistics.
<Sysname> display ospf statistics OSPF Process 1 with Router ID 2.2.2.2 Statistics I/O statistics Type Input Output Hello 61 122 DB Description 2 3 Link-State Req 1 1 Link-State Update 3 3 Link-State Ack 3 2 LSAs originated by this router Router : 4 Network : 0 Sum-Net : 0 Sum-Asbr: 0 External: 0 NSSA : 0 Opq-Link: 0 Opq-Area: 0 Opq-As : 0 LSAs originated: 4 LSAs received: 7 Routing table: Intra area: 2 Inter area: 3 ASE/NSSA: 0
Table 52: Command output
Field | Description |
---|---|
I/O statistics | Statistics about input/output packets and LSAs. |
Type | OSPF packet type. |
Input | Packets received. |
Output | Packets sent. |
Hello | Hell packet. |
DB Description | Database Description packet. |
Link-State Req | Link-State Request packet. |
Link-State Update | Link-State Update packet. |
Link-State Ack | Link-State Acknowledge packet. |
LSAs originated by this router | LSAs originated by this router. |
Router | Number of Type-1 LSAs originated. |
Network | Number of Type-2 LSAs originated. |
Sum-Net | Number of Type-3 LSAs originated. |
Sum-Asbr | Number of Type-4 LSAs originated. |
External | Number of Type-5 LSAs originated. |
NSSA | Number of Type-7 LSAs originated. |
Opq-Link | Number of Type-9 LSAs originated. |
Opq-Area | Number of Type-10 LSAs originated. |
Opq-As | Number of Type-11 LSAs originated. |
LSA originated | Number of LSAs originated. |
LSA received | Number of LSAs received. |
Routing table | Routing table information. |
Intra area | Number of intra-area routes. |
Inter area | Number of inter-area routes. |
ASE | Number of ASE routes. |
# Display OSPF error statistics.
<Sysname> display ospf statistics error OSPF Process 1 with Router ID 192.168.1.112 OSPF Packet Error Statistics 0 : Router ID confusion 0 : Bad packet 0 : Bad version 0 : Bad checksum 0 : Bad area ID 0 : Drop on unnumbered link 0 : Bad virtual link 0 : Bad authentication type 0 : Bad authentication key 0 : Packet too small 0 : Neighbor state low 0 : Transmit error 0 : Interface down 0 : Unknown neighbor 0 : HELLO: Netmask mismatch 0 : HELLO: Hello-time mismatch 0 : HELLO: Dead-time mismatch 0 : HELLO: Ebit option mismatch 0 : DD: MTU option mismatch 0 : DD: Unknown LSA type 0 : DD: Ebit option mismatch 0 : ACK: Bad ack 0 : ACK: Unknown LSA type 0 : REQ: Empty request 0 : REQ: Bad request 0 : UPD: LSA checksum bad 0 : UPD: Unknown LSA type 0 : UPD: Less recent LSA
Table 53: Command output
Field | Description |
---|---|
Router ID confusion | Packets with duplicate router ID. |
Bad packet | Packets illegal. |
Bad version | Packets with wrong version. |
Bad checksum | Packets with wrong checksum. |
Bad area ID | Packets with invalid area ID. |
Drop on unnumbered link | Packets dropped on the unnumbered interface. |
Bad virtual link | Packets on wrong virtual links. |
Bad authentication type | Packets with invalid authentication type. |
Bad authentication key | Packets with invalid authentication key. |
Packet too small | Packets too small in length. |
Neighbor state low | Packets received in low neighbor state. |
Transmit error | Packets with error when being transmitted. |
Interface down | Shutdown times of the interface. |
Unknown neighbor | Packets received from unknown neighbors. |
HELLO: Netmask mismatch | Hello packets with mismatched mask. |
HELLO: Hello-time mismatch | Hello packets with mismatched hello timer. |
HELLO: Dead-time mismatch | Hello packets with mismatched dead timer. |
HELLO: Ebit option mismatch | Hello packets with mismatched E-bit in the option field. |
DD: MTU option mismatch | DD packets with mismatched MTU. |
DD: Unknown LSA type | DD packets with unknown LSA type. |
DD: Ebit option mismatch | DD packets with mismatched E-bit in the option field. |
ACK: Bad ack | Bad LSAck packets for LSU packets. |
ACK: Unknown LSA type | LSAck packets with unknown LSA type. |
REQ: Empty request | LSR packets with no request information. |
REQ: Bad request | Bad LSR packets. |
UPD: LSA checksum bad | LSU packets with wrong LSA checksum. |
UPD: Unknown LSA type | LSU packets with unknown LSA type. |
UPD: Less recent LSA | LSU packets without the most recent LSA. |
# Display OSPF packet statistics for all processes and interfaces.
<Sysname> display ospf statistics packet OSPF Process 100 with Router ID 192.168.1.59 Packet Statistics Waiting to send packet count: 0 Hello DD LSR LSU ACK Total Input : 489 6 2 44 40 581 Output: 492 8 2 45 40 587 Area: 0.0.0.1 Interface: 20.1.1.1 (Vlan-interface100) DD LSR LSU ACK Total Input : 0 0 0 0 0 Output: 0 0 0 0 0 Interface: 100.1.1.1 (Vlan-interface100) DD LSR LSU ACK Total Input : 3 1 22 16 42 Output: 2 1 19 20 42
Table 54: Command output
Field | Description |
---|---|
Waiting to send packet count | Number of packets waiting to be sent. |
Total | Total number of packets. |
Input | Number of received packets. |
Output | Number of sent packets. |
Area | Area ID. |
Interface | Interface address and interface name. |
Related commands
reset ospf statistics