cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4143
Views
0
Helpful
4
Replies

Switch port count summary per vlan

Yang Xia
Level 1
Level 1

Dear NetPros,

For a 6509 switch with 7 48 port line cards, is there a quick way to count how many switch ports are belonged to which vlan? Counting them line by line from "show vlan" result is kind of too slow.

Thanks,

Yang

1 Accepted Solution

Accepted Solutions

Edison Ortiz
Hall of Fame
Hall of Fame

Try the following command:

show run | i switchport access vlan #

Replace the # with the vlan number and parse the output onto Excel. On Excel, the row count should give you the total switchports on that Vlan.

HTH,

__

Edison.

View solution in original post

4 Replies 4

Edison Ortiz
Hall of Fame
Hall of Fame

Try the following command:

show run | i switchport access vlan #

Replace the # with the vlan number and parse the output onto Excel. On Excel, the row count should give you the total switchports on that Vlan.

HTH,

__

Edison.

Thanks, that works!

sh vlan brief

vhasagbrownjr
Level 1
Level 1

sh run | count vlan 141

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco