Table Of Contents
Clear IP Traffic CLI
The Clear IP Traffic CLI feature introduces the clear ip traffic command to clear all IP traffic statistics on a router instead of reloading the router. For added safety, the user will see a confirmation prompt when entering this new command.
History for the Clear IP Traffic Statistics Feature
Finding Support Information for Platforms and Cisco IOS Software Images
Use Cisco Feature Navigator to find information about platform support and Cisco IOS software image support. Access Cisco Feature Navigator at http://www.cisco.com/go/fn. You must have an account on Cisco.com. If you do not have an account or have forgotten your username or password, click Cancel at the login dialog box and follow the instructions that appear.
How to Clear IP Traffic Statistics
This section has the following procedure:
Clearing IP Traffic Statistics
Perform this task to clear all IP traffic statistics. Use the clear ip traffic command in conjunction with the show ip traffic command.
2. clear ip traffic
The following example shows how to clear the IP traffic statistics.Router# clear ip trafficClear "show ip traffic" counters [confirm]Y
The following example shows that the IP traffic statistics have been cleared.Router# show ip trafficIP statistics:Rcvd: 0 total, 0 local destination0 format errors, 0 checksum errors, 0 bad hop count0 unknown protocol, 0 not a gateway0 security failures, 0 bad options, 0 with optionsOpts: 0 end, 0 nop, 0 basic security, 0 loose source route0 timestamp, 0 extended security, 0 record route0 stream ID, 0 strict source route, 0 alert, 0 cipso0 otherFrags: 0 reassembled, 0 timeouts, 0 couldn't reassemble0 fragmented, 0 couldn't fragmentBcast: 0 received, 0 sentMcast: 0 received, 0 sentSent: 0 generated, 0 forwardedDrop: 0 encapsulation failed, 0 unresolved, 0 no adjacency0 no route, 0 unicast RPF, 0 forced dropICMP statistics:Rcvd: 0 format errors, 0 checksum errors, 0 redirects, 0 unreachable0 echo, 0 echo reply, 0 mask requests, 0 mask replies, 0 quench0 parameter, 0 timestamp, 0 info request, 0 other0 irdp solicitations, 0 irdp advertisementsSent: 0 redirects, 0 unreachable, 0 echo, 0 echo reply0 mask requests, 0 mask replies, 0 quench, 0 timestamp0 info reply, 0 time exceeded, 0 parameter problem0 irdp solicitations, 0 irdp advertisementsUDP statistics:Rcvd: 0 total, 0 checksum errors, 0 no portSent: 0 total, 0 forwarded broadcastsTCP statistics:Rcvd: 0 total, 0 checksum errors, 0 no portSent: 0 totalProbe statistics:Rcvd: 0 address requests, 0 address replies0 proxy name requests, 0 where-is requests, 0 otherSent: 0 address requests, 0 address replies (0 proxy)0 proxy name replies, 0 where-is repliesEGP statistics:Rcvd: 0 total, 0 format errors, 0 checksum errors, 0 no listenerSent: 0 totalIGRP statistics:Rcvd: 0 total, 0 checksum errorsSent: 0 totalOSPF statistics:Rcvd: 0 total, 0 checksum errors0 hello, 0 database desc, 0 link state req0 link state updates, 0 link state acksSent: 0 totalIP-IGRP2 statistics:Rcvd: 0 totalSent: 0 totalPIMv2 statistics: Sent/ReceivedTotal: 0/0, 0 checksum errors, 0 format errorsRegisters: 0/0, Register Stops: 0/0, Hellos: 0/0Join/Prunes: 0/0, Asserts: 0/0, grafts: 0/0Bootstraps: 0/0, Candidate_RP_Advertisements: 0/0IGMP statistics: Sent/ReceivedTotal: 0/0, Format errors: 0/0, Checksum errors: 0/0Host Queries: 0/0, Host Reports: 0/0, Host Leaves: 0/0DVMRP: 0/0, PIM: 0/0
The following sections provide references related to the Clear IP Traffic feature.
No new or modified standards are supported by this feature, and support for existing standards has not been modified by this feature.
No new or modified RFCs are supported by this feature, and support for existing RFCs has not been modified by this feature.
This section documents one new command only.
clear ip traffic
To clear all IP traffic statistics on all interfaces of a router, use the clear ip traffic command in privileged EXEC mode.
clear ip traffic
This command has no arguments or keywords.
The following example clears all IP traffic statistics on all interfaces:Router# clear ip traffic
Copyright © 2005 Cisco Systems, Inc. All rights reserved.