Clearing traffic counters, Clearing diagnostic buffers – Brocade FastIron Ethernet Switch Layer 3 Routing Configuration Guide User Manual
Page 523
Clearing traffic counters
You can clear the counters (reset them to 0) for BGP4 messages.
To clear the BGP4 message counter for all neighbors, enter the following command.
device# clear ip bgp traffic
Syntax: clear ip bgp traffic
To clear the BGP4 message counter for a specific neighbor, enter a command such as the following.
device# clear ip bgp neighbor 10.0.0.1 traffic
To clear the BGP4 message counter for all neighbors within a peer group, enter a command such as
the following.
device# clear ip bgp neighbor PeerGroup1 traffic
Syntax: clear ip bgp neighbor all | ip-addr | peer-group-name | as-num traffic
The all , ip-addr , peer-group-name , and as-num parameters specify the neighbor. The ip-addr
parameter specifies a neighbor by its IP interface with the device. The peer-group-name specifies all
neighbors in a specific peer group. The as-num parameter specifies all neighbors within the specified
AS. The all parameter specifies all neighbors.
Clearing diagnostic buffers
The device stores the following BGP4 diagnostic information in buffers:
• The first 400 bytes of the last packet received that contained an error
• The last NOTIFICATION message either sent or received by the device
To display these buffers, use options with the show ip bgp neighbors command.
This information can be useful if you are working with Brocade Technical Support to resolve a problem.
The buffers do not identify the system time when the data was written to the buffer. If you want to
ensure that diagnostic data in a buffer is recent, you can clear the buffers. You can clear the buffers for
a specific neighbor or for all neighbors.
If you clear the buffer containing the first 400 bytes of the last packet that contained errors, all the bytes
are changed to zeros. The Last Connection Reset Reason field of the BGP4 neighbor table also is
cleared.
If you clear the buffer containing the last NOTIFICATION message sent or received, the buffer contains
no data.
You can clear the buffers for all neighbors, for an individual neighbor, or for all the neighbors within a
specific peer group.
To clear these buffers for neighbor 10.0.0.1, enter the following commands.
device# clear ip bgp neighbor 10.0.0.1 last-packet-with-error
device# clear ip bgp neighbor 10.0.0.1 notification-errors
Syntax: clear ip bgp neighbor all | ip-addr | peer-group-name | as-num last-packet-with-error |
notification-errors
Clearing traffic counters
FastIron Ethernet Switch Layer 3 Routing Configuration Guide
523
53-1003087-04