Cisco OSPF Command and Configuration Handbook (paperback)

 <  Free Open Study  >  

22-4 clear ip ospf process-id counters neighbor int- name int-number

Syntax Description:

  • process-id ” The OSPF process ID. The range of values is from 1 to 4,294,967,295.

  • int-name ” Interface name.

  • int-number ” Interface number.

Purpose: To reset neighbor state transition counters.

Initial Cisco IOS Software Release: 11.1

Example: Viewing and Clearing OSPF Neighbor State Transition Counters

The show ip ospf neighbor detail command is used to display the neighbor state transition counter.

r4# show ip ospf neighbor detail Neighbor 2.2.2.2, interface address 172.16.2.1 In the area 0 via interface Ethernet1/0 Neighbor priority is 1, State is FULL, 6 state changes DR is 172.16.2.2 BDR is 172.16.2.1 Options is 0x42 Dead timer due in 00:00:38 Neighbor is up for 01:06:06 Index 2/2, retransmission queue length 0, number of retransmission 1 First 0x0(0)/0x0(0) Next 0x0(0)/0x0(0) Last retransmission scan length is 1, maximum is 1 Last retransmission scan time is 0 msec, maximum is 0 msec

The clear ip ospf counters command will reset the state transition counter to 0.

r4# clear ip ospf counters r4# show ip ospf neighbor detail Neighbor 2.2.2.2, interface address 172.16.2.1 In the area 0 via interface Ethernet1/0 Neighbor priority is 1, State is FULL, 0 state changes DR is 172.16.2.2 BDR is 172.16.2.1 Options is 0x42 Dead timer due in 00:00:33 Neighbor is up for 01:11:01 Index 2/2, retransmission queue length 0, number of retransmission 1 First 0x0(0)/0x0(0) Next 0x0(0)/0x0(0) Last retransmission scan length is 1, maximum is 1 Last retransmission scan time is 0 msec, maximum is 0 msec

 <  Free Open Study  >  

Категории