clear ipv6 ospf

Clears OSPFv3 data processes, counts, force-spf, neighbors, redistribution, routes, and traffic.
Syntax
clear ipv6 ospf all
clear ipv6 ospf counts
clear ipv6 ospf counts neighbor A.B.C.D
clear ipv6 ospf counts neighbor interface { ethernet unit/slot/port | lag lag-id | tunnel number | ve vlan_id } [ A.B.C.D ]
clear ipv6 ospf { force-spf | redistribution | traffic } [ vrf vrf-name ]
clear ipv6 ospf neighbor all
clear ipv6 ospf neighbor interface { ethernet unit/slot/port | lag lag-id | tunnel number | ve vlan_id } [ A.B.C.D ]
clear ipv6 ospf routes { IPv6addr | all }
Parameters
all
Clears all OSPFv3 data.
counts
Clears OSPFv3 counters.
neighbor
Clears all OSPF counters for a specified neighbor.
A.B.C.D
Specifies a neighbor.
interface
Specifies an interface.
ethernet unit/slot/port
Specifies the Ethernet interface and the interface ID in the format unit/slot/port.
lag lag-id
Specifies the LAG virtual interface.
tunnel number
Specifies a tunnel interface.
ve vlan_id
Specifies a virtual Ethernet (VE) interface.
force-spf
Performs the shortest path first (SPF) calculation without clearing the OSPFv3 database.
redistribution
Clears OSPFv3 redistributed routes.
traffic
Clears OSPFv3 traffic statistics.
routes
Clears OSPFv3 routes.
Modes

Privileged EXEC mode

Usage Guidelines

Use the force-spf keyword to perform the shortest path first (SPF) calculation without clearing the OSPFv3 database.

Examples

The following example restarts the OSPFv3 processes.

device# clear ipv6 ospf all
 

The following example clears all OSPFv3 counters for a specified neighbor.

device# clear ipv6 ospf counts neighbor 10.10.10.1
History
Release version Command history
08.0.61 This command was modified to add lag lag-id options.