1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Slick CLI trick in Cisco to show ports up/down and rate of utilization

Discussion in 'Routing & Switching' started by NetEyeBall, Feb 17, 2007.

  1. NetEyeBall

    NetEyeBall Kilobyte Poster

    279
    10
    45
    So I was reading/studying and saw this little CLI command.

    Switch1#sh int | include (is up)
    Vlan2 is up, line protocol is up
    GigabitEthernet0/1 is up, line protocol is up (connected)

    Switch1#sh int | include (is up | rate)
    5 minute input rate 0 bits/sec, 0 packets/sec
    5 minute output rate 0 bits/sec, 0 packets/sec
    Vlan2 is up, line protocol is up
    5 minute input rate 3000 bits/sec, 5 packets/sec
    5 minute output rate 1000 bits/sec, 4 packets/sec
    5 minute input rate 0 bits/sec, 0 packets/sec
    5 minute output rate 0 bits/sec, 0 packets/sec
    5 minute input rate 0 bits/sec, 0 packets/sec
    5 minute output rate 0 bits/sec, 0 packets/sec
    5 minute input rate 0 bits/sec, 0 packets/sec
    5 minute output rate 0 bits/sec, 0 packets/sec
    5 minute input rate 0 bits/sec, 0 packets/sec
    5 minute output rate 0 bits/sec, 0 packets/sec
    5 minute input rate 0 bits/sec, 0 packets/sec
    5 minute output rate 0 bits/sec, 0 packets/sec
    5 minute input rate 0 bits/sec, 0 packets/sec
    5 minute output rate 0 bits/sec, 0 packets/sec
    5 minute input rate 0 bits/sec, 0 packets/sec
    5 minute output rate 0 bits/sec, 0 packets/sec
    5 minute input rate 0 bits/sec, 0 packets/sec
    5 minute output rate 0 bits/sec, 0 packets/sec
    5 minute input rate 0 bits/sec, 0 packets/sec
    5 minute output rate 0 bits/sec, 0 packets/sec
    5 minute input rate 0 bits/sec, 0 packets/sec
    5 minute output rate 0 bits/sec, 0 packets/sec
    5 minute input rate 0 bits/sec, 0 packets/sec
    5 minute output rate 0 bits/sec, 0 packets/sec
    5 minute input rate 0 bits/sec, 0 packets/sec
    5 minute output rate 0 bits/sec, 0 packets/sec
    5 minute input rate 0 bits/sec, 0 packets/sec
    5 minute output rate 0 bits/sec, 0 packets/sec
    5 minute input rate 0 bits/sec, 0 packets/sec
    5 minute output rate 0 bits/sec, 0 packets/sec
    5 minute input rate 0 bits/sec, 0 packets/sec
    5 minute output rate 0 bits/sec, 0 packets/sec
    5 minute input rate 0 bits/sec, 0 packets/sec
    5 minute output rate 0 bits/sec, 0 packets/sec
    5 minute input rate 0 bits/sec, 0 packets/sec
    5 minute output rate 0 bits/sec, 0 packets/sec
    5 minute input rate 0 bits/sec, 0 packets/sec
    5 minute output rate 0 bits/sec, 0 packets/sec
    5 minute input rate 0 bits/sec, 0 packets/sec
    5 minute output rate 0 bits/sec, 0 packets/sec
    5 minute input rate 0 bits/sec, 0 packets/sec
    5 minute output rate 0 bits/sec, 0 packets/sec
    5 minute input rate 0 bits/sec, 0 packets/sec
    5 minute output rate 0 bits/sec, 0 packets/sec
    5 minute input rate 0 bits/sec, 0 packets/sec
    5 minute output rate 0 bits/sec, 0 packets/sec
    5 minute input rate 0 bits/sec, 0 packets/sec
    5 minute output rate 0 bits/sec, 0 packets/sec
    5 minute input rate 0 bits/sec, 0 packets/sec
    5 minute output rate 0 bits/sec, 0 packets/sec
    GigabitEthernet0/1 is up, line protocol is up (connected)
    5 minute input rate 5000 bits/sec, 9 packets/sec
    5 minute output rate 3000 bits/sec, 3 packets/sec
    5 minute input rate 0 bits/sec, 0 packets/sec
    5 minute output rate 0 bits/sec, 0 packets/sec

    Switch1#sh int | include (is down)
    Vlan1 is administratively down, line protocol is down
    FastEthernet0/1 is down, line protocol is down (notconnect)
    FastEthernet0/2 is down, line protocol is down (notconnect)
    FastEthernet0/3 is down, line protocol is down (notconnect)
    FastEthernet0/4 is down, line protocol is down (notconnect)
    FastEthernet0/5 is down, line protocol is down (notconnect)
    FastEthernet0/6 is down, line protocol is down (notconnect)
    FastEthernet0/7 is down, line protocol is down (notconnect)
    FastEthernet0/8 is down, line protocol is down (notconnect)
    FastEthernet0/9 is down, line protocol is down (notconnect)
    FastEthernet0/10 is down, line protocol is down (notconnect)
    FastEthernet0/11 is down, line protocol is down (notconnect)
    FastEthernet0/12 is down, line protocol is down (notconnect)
    FastEthernet0/13 is down, line protocol is down (notconnect)
    FastEthernet0/14 is down, line protocol is down (notconnect)
    FastEthernet0/15 is down, line protocol is down (notconnect)
    FastEthernet0/16 is down, line protocol is down (notconnect)
    FastEthernet0/17 is down, line protocol is down (notconnect)
    FastEthernet0/18 is down, line protocol is down (notconnect)
    FastEthernet0/19 is down, line protocol is down (notconnect)
    FastEthernet0/20 is down, line protocol is down (notconnect)
    FastEthernet0/21 is down, line protocol is down (notconnect)
    FastEthernet0/22 is down, line protocol is down (notconnect)
    FastEthernet0/23 is down, line protocol is down (notconnect)
    FastEthernet0/24 is down, line protocol is down (notconnect)
    GigabitEthernet0/2 is down, line protocol is down (notconnect)

    I will have to see if this is useful for daily/nightly troubleshooting. It might just be easier to show int xyz to get the status. But this is another way....
     
    Certifications: CCNA, A+, N+, MCSE 4.0, CCA
    WIP: CCDA, CCNP, Cisco Firewall

Share This Page

Loading...