01-16-2015 05:54 AM - edited 03-07-2019 10:15 PM
hi all,
just a quick one, i tried to issue a 'clear counter et1/x' on our nexus 5k switch but got an error saying it's part of a port-channel.
tried to clear it using port-channel interface but can't. my question is, how do you issue a clear counter int x on a nexus switch?
Solved! Go to Solution.
01-20-2015 04:06 AM
I think x port belong to Channel Group.
01-20-2015 04:28 AM
I just ran the following command on my 5k and it worked just fine. It is also a part of a VPC so I am not really sure what you the issue is on your switch.
clear counters interface port-channel X
01-20-2015 04:06 AM
I think x port belong to Channel Group.
01-20-2015 04:28 AM
I just ran the following command on my 5k and it worked just fine. It is also a part of a VPC so I am not really sure what you the issue is on your switch.
clear counters interface port-channel X
01-20-2015 02:46 PM
hi,
thanks! i did a 'clear counters' last time.
i'm trying to get used to nexus OS.
# sh int e1/1 | i err
27 input error 0 short frame 0 overrun 0 underrun 0 ignored
0 output error 0 collision 0 deferred 0 late collision
# clear counters interface e1/1
Ethernet1/1 is member of port-channel105.
Clearing counters for physical port(s) which is/are part of a port-channel will cause inconsistency in statistics. Thus operation for those port(s) is skipped.
# sh port-channel summary
Flags: D - Down P - Up in port-channel (members)
I - Individual H - Hot-standby (LACP only)
s - Suspended r - Module-removed
S - Switched R - Routed
U - Up (port-channel)
M - Not in use. Min-links not met
--------------------------------------------------------------------------------
Group Port- Type Protocol Member Ports
Channel
--------------------------------------------------------------------------------
12 Po12(SU) Eth LACP Eth1/22(P) Eth1/23(P)
103 Po103(SD) Eth LACP Eth1/17(D)
104 Po104(SD) Eth LACP Eth1/19(D)
105 Po105(SU) Eth LACP Eth1/1(P)
106 Po106(SU) Eth LACP Eth1/2(P)
107 Po107(SU) Eth LACP Eth1/3(P)
108 Po108(SU) Eth LACP Eth1/4(P)
# clear counters interface port-channel 105
# sh int e1/1 | i err
0 input error 0 short frame 0 overrun 0 underrun 0 ignored
0 output error 0 collision 0 deferred 0 late collision
12-27-2018 12:44 AM - edited 04-13-2020 10:44 PM
# sh port-channel summary
Po10 Eth LACP Eth1/10 Eth1/20
Po11 Eth LACP Eth1/11 Eth1/21
# sh int port-channel 10
11250 input error
=====================================
CLEAR COUNTER (Errors)
# clear counters int port-channel 10
# sh int port-channel 10
RESULT: 0 input error
=====================================
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