reset ospf counters

Function

The reset ospf counters command clears OSPF statistics.

Format

reset ospf [ process-id ] counters [ neighbor [ interface-name [ all-areas | area { area-id | area-id } ] | interface-type interface-number [ all-areas | area { area-id | area-id } ] ] [ router-id ] ]

Parameters

Parameter Description Value
process-id

Specifies an OSPF process ID.

The value is an integer ranging from 1 to 4294967295.

neighbor

Indicates a neighbor.

-

interface-name

Specifies the interface name.

-

all-areas

Clears statistics of all OSPF areas.

-

area area-id

Specifies the ID of an OSPF area.

The value can be a decimal integer ranging from 0 to 4294967295 or in the format of an IP address.

interface-type

Specifies the type of an interface.

-

interface-number

Specifies the number of an interface.

-

router-id

The router ID of a neighbor.

The value is in dotted decimal notation.

Views

User view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
ospf execute

Usage Guidelines

Usage Scenario

To reset OSPF statistics, run the reset ospf counters command. Clearing OSPF statistics does not affect OSPF services.

Once deleted, statistics cannot be restored. Therefore, exercise caution when deleting statistics.

Example

# Reset OSPF statistics.
<HUAWEI> reset ospf counters
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >