I have previously used show vlans |m "\*"
but the above does not display the vlan name itself...
Can I please ask if anyone knows how to show vlan AND active ports within each vlan
Please try below command. Replace the vlan with your vlan name prefix:
show vlans | match "vlan|\*"
If I am getting your query correctly, I think you can get the desired output using command ' show vlans brief '. If you need any specific vlans, than you can use match statement with this command and match with vlan name.
This command will show the routing instance , vlan name and active ports/interfaces in that vlan,
labroot@jtac-qfx5100-24q-2p-r2212> show vlans brief
Routing instance VLAN name Tag Interfacesdefault-switch default 1 xe-0/1/3.0*default-switch v10 10 ae0.0 ae1.0 xe-0/1/5.0
default-switch v100 100 ae0.0
Please Mark My Solution Accepted if it Helped, Kudos are Appreciated too!!!
Would like to view this:
Routing instance VLAN name Tag Interfacesdefault-switch default 1 xe-0/1/3.0* <--- just the interfaces with ' * ' and vlan info i.e name/tagdefault-switch v10 10 ae0.0 xe-0/1/5.0
We're nearly there, but not quite...
That command provide all interfaces with asterisk, and the first line from output containing 'vlan' word.
requirement is to see all vlans with all their respective ports configured in those vlans. e.g.
vlan-id vlan 100
Actually it seems there are four columns when observing the output from show vlans, and we need all four
Did you see my last update to this query?