Resetting IPv4 OSPFv2 Counters

Starting in R81.10.05, it is possible to reset IPv4 OSPFv2 statistics counters.

To reset IPv4 OSPFv2 counters in Clish

  1. Connect to the command line.

  2. Log in to Clish.

  3. Reset the OSPF counters:

    reset ospf instance {<1-65535> | default}

          all

          errors

                all

                interface <Name of Interface>

                neighbor <IPv4 Address of OSPF Neighbor>

          events

                all

                interface <Name of Interface>

          packets

Parameters

Parameter

Description

instance {<1-65535> | default}

Specifies an OSPF Instance ID to configure.

all

Resets all OSPF counters.

errors <options>

Resets only OSPF error counters:

  • all

    Resets all error counters for all OSPF interfaces in the outputs of these commands:

    • show ospf errors

    • show ospf interfaces

    • show ospf neighbors

  • interface <Name of Interface>

    Resets error counters for the specified OSPF interface in the outputs of these commands:

    • show ospf interfaces

    • show ospf neighbors

  • neighbor <IPv4 Address of OSPF Neighbor>

    Resets error counters for the specified OSPF neighbor in the output of the "show ospf neighbors" command

events <options>

Resets only OSPF event counters:

  • all

    Resets all event counters for all OSPF interfaces in the outputs of these commands:

    • show ospf events

    • show ospf interfaces detailed

  • interface <Name of Interface>

    Resets event counters for the specified OSPF interface in the output of the "show ospf interfaces detailed" command

packets

Resets only OSPF packet counters.