06-12-2015 10:43 PM - edited 03-08-2019 12:32 AM
I need to monitor the number of packet drops per day, when I was using command " show int | inc line | drops " showing overall drops of the interface.
But I've already cleared this packet drop issue. So I need help to clear all the previous drop values. So please advise to help me.
Solved! Go to Solution.
06-12-2015 10:48 PM
To clear ALL interface counters: clear count [Enter]
To clear one specific interface counter: clear count <PORT> [Enter]
06-13-2015 03:14 AM
Hi Khaleel,
There is nothing harm to your devices running the following commands.
clear counters >> This will clear counters values for all the interfaces.
Clear counter int g1/0 -- this will clear only for one particular interface.
(this will clear the values which are on the interfaces:-
Input/output drops counters value
CRC/Input/outut errors.)
No need to worry to run these command on the production network. It just clear the counters of the interfaces and does nothing harm to the traffic flowing.
example:-
#show int g5/1 | in up|drops
GigabitEthernet5/1 is up, line protocol is up (connected)
Full-duplex, 1000Mb/s, media type is SX
Input queue: 0/2000/0/0 (size/max/drops/flushes); Total output drops: 608766710 >> Drops are seen.
I did clear counters and now you can see the tod value is o.
#clear counters gigabitEthernet 5/1
Clear "show interface" counters on this interface [confirm]
#show int g5/1 | in up|drops
GigabitEthernet5/1 is up, line protocol is up (connected)
Full-duplex, 1000Mb/s, media type is SX
Input queue: 0/2000/0/0 (size/max/drops/flushes); Total output drops: 0 >> it is 0 now.
No issues with my traffic.
HTH
Regards
Inayath
*Please dont forget to rate if this info is helpfull.
06-12-2015 10:48 PM
To clear ALL interface counters: clear count [Enter]
To clear one specific interface counter: clear count <PORT> [Enter]
06-13-2015 02:30 AM
If I could use the command "clear counter" is there any other problems to occur.
06-13-2015 03:14 AM
Hi Khaleel,
There is nothing harm to your devices running the following commands.
clear counters >> This will clear counters values for all the interfaces.
Clear counter int g1/0 -- this will clear only for one particular interface.
(this will clear the values which are on the interfaces:-
Input/output drops counters value
CRC/Input/outut errors.)
No need to worry to run these command on the production network. It just clear the counters of the interfaces and does nothing harm to the traffic flowing.
example:-
#show int g5/1 | in up|drops
GigabitEthernet5/1 is up, line protocol is up (connected)
Full-duplex, 1000Mb/s, media type is SX
Input queue: 0/2000/0/0 (size/max/drops/flushes); Total output drops: 608766710 >> Drops are seen.
I did clear counters and now you can see the tod value is o.
#clear counters gigabitEthernet 5/1
Clear "show interface" counters on this interface [confirm]
#show int g5/1 | in up|drops
GigabitEthernet5/1 is up, line protocol is up (connected)
Full-duplex, 1000Mb/s, media type is SX
Input queue: 0/2000/0/0 (size/max/drops/flushes); Total output drops: 0 >> it is 0 now.
No issues with my traffic.
HTH
Regards
Inayath
*Please dont forget to rate if this info is helpfull.
06-13-2015 04:21 AM
06-13-2015 04:58 AM
Looks clean now :-)
12-16-2020 11:12 PM
Thank you sir , much appreciated
03-20-2022 11:33 PM
I have applied this it works, just kindly confirm by doing this resolves the issue by which it occurs or it can occur again
kindly let me know if this occurs by fiber cable or SFP or any other issue can cause this.
01-18-2020 12:06 AM
check the below commend
Switch#show interfaces Gi1/10 | in CRC
09-03-2023 06:45 PM
Hi team,
Is there any documentation to support the claim that this command will not affect traffic?
01-24-2024 01:57 AM
The command to clear the counters will not affect traffic.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide