Switch port count summary per vlan

Answered Question
May 14th, 2008
User Badges:

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

Correct Answer by Edison Ortiz about 9 years 1 month ago

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.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Correct Answer
Edison Ortiz Wed, 05/14/2008 - 15:13
User Badges:
  • Super Bronze, 10000 points or more
  • Hall of Fame,

    Founding Member

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.

Actions

This Discussion