Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Community Member

Switch port count summary per vlan

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
Hall of Fame Super Bronze

Re: Switch port count summary per vlan

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.

3 REPLIES
Hall of Fame Super Bronze

Re: Switch port count summary per vlan

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.

Community Member

Re: Switch port count summary per vlan

Thanks, that works!

Community Member

Re: Switch port count summary per vlan

sh vlan brief

726
Views
0
Helpful
3
Replies
CreatePlease to create content