# Displaying OSPF statistics using EDM

Use the following procedure to display OSPF statistics.

## Prerequisites

- Install the Advanced License.

- Enable IP routing globally on the switch.

- Assign an IP address to the VLAN that you want to enable with OSPF.

  Routing is automatically enabled on the VLAN when you assign an IP address to it.

## Procedure steps

1. From the navigation tree, double-click IP Routing.

2. In the IP Routing tree, double-click OSPF.

3. In the work area, click the Stats tab.

4. Values on the Stats tab will refresh automatically based on the value selected in the Poll Interval field. In the toolbar, click Clear Counters to clear the counters and start over at zero.

## Variable definitions

The following table describes the fields of the Stats tab.

Field | Description
--- | ---
LsdbTblSize | Indicates the number of entries in the link state database.
TxPackets | Indicates the number of packets transmitted by OSPF.
RxPackets | Indicates the number of packets received by OSPF.
TxDropPackets | Indicates the number of packets dropped by OSPF before transmission.
RxDropPackets | Indicates the number of packets dropped before receipt by OSPF.
RxBadPackets | Indicates the number of bad packets received by OSPF.
SpfRuns | Indicates the total number of SPF calculations performed. This also includes the number of partial route table calculations.
BuffersAllocated | Indicates the total number of buffers allocated for OSPF.
BuffersFreed | Indicates the total number of buffers that are freed by OSPF.
BufferAllocFailures | Indicates the number of times that OSPF has failed to allocate buffers.
BufferFreeFailures | Indicates the number of times that OSPF has failed to free buffers.