05-14-2008 02:18 PM - edited 03-05-2019 10:59 PM
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
Solved! Go to Solution.
05-14-2008 03:13 PM
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.
05-14-2008 03:13 PM
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.
05-14-2008 06:53 PM
Thanks, that works!
05-14-2008 07:39 PM
sh vlan brief
05-06-2019 01:44 PM
sh run | count vlan 141
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