show ip ospf traffic

To display Open Shortest Path First (OSPF) traffic statistics, use the show ip ospf traffic command.

show ip ospf [instance-tag] traffic [ethernet slot/port | loopback if_number | port-channel number] [vrf vrf-name]

Syntax Description

instance-tag

(Optional) Name of the OSPF instance. The name can be a maximum of 20 alphanumeric characters.

ethernet slot/port

(Optional) Specifies the Ethernet interface and the slot number and port number. The slot number is from 1 to 255, and the port number is from 1 to 128.

loopback if_number

(Optional) Specifies the loopback interface. The loopback interface number is from 0 to 1023.

port-channel number

(Optional) Specifies the EtherChannel interface and EtherChannel number. The range is from 1 to 4096.

vrf vrf-name

(Optional) Specifies the name of the virtual routing and forwarding (VRF) instance. The vrf-name argument can be specified as any case-sensitive, alphanumeric string up to 32 characters. The strings "default", "management", and "all" are reserved VRF names.


Command Default

None

Command Modes

Any command mode

Command History

Release
Modification

5.0(3)N1(1)

This command was introduced.


Usage Guidelines

Use the show ip ospf traffic command to display traffic statistics for one or more OSPF instances.

This command requires the LAN Base Services license.

Examples

This example shows how to display OSPF traffic statistics for interface 1/5:

switch# show ip ospf traffic ethernet 1/5
 OSPF Process ID 201 VRF RemoteOfficeVRF, Packet Counters (cleared 00:26:04 ago)
 Interface Ethernet1/5, Area 0.0.0.0
  Total: 0 in, 0 out
  LSU transmissions: first 0, rxmit 0, for req 0, nbr xmit 0
  Flooding packets output throttled (IP/tokens): 0 (0/0)
  Ignored LSAs: 0, LSAs dropped during SPF: 0
  LSAs dropped during graceful restart: 0
  Errors: drops in        0, drops out       0, errors in       0,
          errors out      0, hellos in       0, dbds in         0,
          lsreq in        0, lsu in          0, lsacks in       0,
          unknown in      0, unknown out     0, no ospf         0,
          bad version     0, bad crc         0, dup rid         0,
          dup src         0, invalid src     0, invalid dst     0,
          no nbr          0, passive         0, wrong area      0,
          pkt length      0, nbr changed rid/ip addr            0
          bad auth        0

           hellos       dbds     lsreqs       lsus       acks
   In:          0          0          0          0          0
  Out:          0          0          0          0          0

switch#

Table 7-4 describes the significant fields shown in the display.

Table 7-4 show ospf traffic Field Descriptions 

Field
Description

OSPF Process

OSPF instance tag for these traffic statistics.

VRF

Virtual routing and forwarding (VRF) for this OSPF instance.

Interface ...

Interface information.

Errors

drops

Number of packets dropped.

bad version

Number of packets received with bad version.

dup src

Number of packets with a duplicate source address.

no nbr

Number of packets from a router that is not a full neighbor.

nbr changed rid/ip addr

Number of packets with router-id/ip address pair not matching our neighbor's values.

lsreq

Number of packets of type LSREQ (LSA required).

acks

Number of packets of type LSACK (LSA acknowledged).


Related Commands

Command
Description

clear ip ospf traffic

Clears OSPF traffic statistics.

show running-config ospf

Displays the OSPF running configuration information.