Clearing OSPF statistics on a switch


You must be in the router configuration context, as indicated by the switch(config-router)# prompt.

Clear OSPF event statics using the following command. For command details, see clear ip ospf statistics.

clear ip ospf [<instance-tag>] statistics [interface [<interface-name>]] [all-vrfs | vrf <vrf-name>]

For example, the following command clears OSPF event statistics from interface 1/1/1.
switch(config-router)# clear ip ospf statistics interface 1/1/1