Wired Intelligent Edge

last person joined: yesterday 

Bring performance and reliability to your network with the HPE Aruba Networking Core, Aggregation, and Access layer switches. Discuss the latest features and functionality of your switching devices, and find ways to improve security across your network to bring together a mobile-first solution
Expand all | Collapse all

MAS - get a count of connected ports by VLAN

This thread has been viewed 0 times
  • 1.  MAS - get a count of connected ports by VLAN

    Posted Jan 17, 2019 01:59 PM

    Is there any way in the CLI of an S2500 switch to get a count of only the ports that are connected on a specific VLAN? I've tried show interface status | connected, but it doesn't seem to take an additional argument to pass only the info on a specified vlan, i.e., show interface status | connected,100 where '100' indicates the VID. I would be happy to use a report from AirWave to do this, also.

    Thanks.



  • 2.  RE: MAS - get a count of connected ports by VLAN
    Best Answer

    EMPLOYEE
    Posted Jan 27, 2019 04:53 AM

    some suggestions...Modify the include to also match vlan as well as connected. Note the use of a space after the vlan number to prevent 10 matching on 100 etc.

     

    (1500) #show interface status | include "connected   101 "
    GE0/0/15 connected 101 a-full a-100 Mbps 10/100/1000Base-T
    
    (1500) #
    (1500) #show interface status | include "connected 1 " 
    GE0/0/8 connected 1 a-full a-1 Gbps 10/100/1000Base-T
    GE0/0/9 connected 1 a-full a-1 Gbps 10/100/1000Base-T
    GE0/0/11 connected 1 a-full a-1 Gbps 10/100/1000Base-T
    GE0/0/18 connected 1 a-full a-1 Gbps 10/100/1000Base-T
    (1500) #

    see also "show vlan extensive" and "show vlan X extensive" and "show vlan X detail", ports showing an asterisk are up.

     

    (1500) # show vlan 101 detail 
    
    U - Untagged member, T - Tagged member
    * - Active interface
     
    Dot1q tag: 101, Description: VLAN0101
    Number of interfaces: 12, Active: 8, Non-Blocking: 8
    VLAN membership:
    Access:
       GE0/0/14(U) GE0/0/15*(U) 
    Trunk:
       GE0/0/10(T) GE0/0/11*(T) GE0/0/12(T) GE0/0/18*(T) 
       GE0/0/19*(T) GE0/0/20*(T) GE0/0/21*(T) GE0/0/22*(T) 
       GE0/0/23*(T) GE0/1/1(T) 
    
    (1500) #
    (1500) # show vlan 101 extensive 
    
    Dot1q tag: 101, Description: VLAN0101
    Rapid PVST instance: 101
    MAC aging time: 5 minutes
    Number of interfaces: 12, Active: 8, Non-Blocking: 8
    VLAN membership:
            GE0/0/10   Trunk  Trusted   Tagged
            GE0/0/11*  Trunk  Trusted   Tagged
            GE0/0/12   Trunk  Trusted   Tagged
            GE0/0/14   Access Trusted   Untagged
            GE0/0/15*  Access Trusted   Untagged
            GE0/0/18*  Trunk  Trusted   Tagged
            GE0/0/19*  Trunk  Trusted   Tagged
            GE0/0/20*  Trunk  Trusted   Tagged
            GE0/0/21*  Trunk  Trusted   Tagged
            GE0/0/22*  Trunk  Trusted   Tagged
            GE0/0/23*  Trunk  Trusted   Tagged
            GE0/1/1    Trunk  Trusted   Tagged
    
    (1500) #

     

     

     



  • 3.  RE: MAS - get a count of connected ports by VLAN

    Posted Jan 29, 2019 01:13 PM

    Thanks for those tips! I had tried show interface status | include "connected <vlan#>" before, but wasn't aware of the need for a correct number of spaces, so it never produced any output. I was also unaware that in show vlan <vlan#> extensive that the asterisk indicated the port up. Those are all very helpful. Many thanks.