cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
12159
Views
5
Helpful
4
Replies

Clear counter in Nexus 5K

johnlloyd_13
Level 9
Level 9

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?

2 Accepted Solutions

Accepted Solutions

Dinesh Sharma
Level 1
Level 1

I think x port belong to Channel Group.

View solution in original post

Drew Browning
Level 1
Level 1

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

View solution in original post

4 Replies 4

Dinesh Sharma
Level 1
Level 1

I think x port belong to Channel Group.

Drew Browning
Level 1
Level 1

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

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

mdsk0905
Level 1
Level 1

# 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
=====================================

Review Cisco Networking products for a $25 gift card