Ethernet Switches & Routers

Reply
New Contributor
Posts: 4
Registered: ‎11-04-2016
Accepted Solution

How to show VLAns only on single switch in a stack

[ Edited ]

Im trying to simplify an output of vlan info on a stack.

My brain could take in the information better if i could filter it per swtich.

 

i tried:

show vlans eth 2/1/1 to 2/1/48

 

It does not like the "to"

 

I then tried:

show vlans | Include U2/M1

but this striips out the lines showing what VLANS the ports are part of. 

 

Please help me get the syntax correct.  The way brocade outputs vlans by default takes me to long to decipher.

I am an IT generalist... I dont spend much time in these switches.

 

Edit:  This is for an ICX6450 Stack

Frequent Contributor
Posts: 134
Registered: ‎07-20-2015

Re: How to show VLAns only on single switch in a stack

No worries...

 

You can match on a regular expression.  Just include ANYTHGING of interest

 

 

sh vlan | inc U2|PORT|Tot|Max|Leg|None|Mon

 

Try this replacing U2 with U3 or whatever stack number you want.

New Contributor
Posts: 4
Registered: ‎11-04-2016

Re: How to show VLAns only on single switch in a stack

I can't get it to care about multiple Includes, exclude or a combo of both.  Example below i put just i vlan and it works. I add e U3 and the result is identical.  This is one example i tried many things.  The exact example you gave returns no results. (no error)

 

SSH@ICX6450-DC_Stack#show vlan | i VLAN | e U3
Total PORT-VLAN entries: 6
Maximum PORT-VLAN entries: 64
PORT-VLAN 1, Name DEFAULT-VLAN, Priority level0, Spanning tree On
PORT-VLAN 2, Name Servers_VPN-Clients, Priority level0, Spanning tree On
PORT-VLAN 3, Name Voice, Priority level0, Spanning tree On
PORT-VLAN 10, Name Users_User-WiFi, Priority level0, Spanning tree On
PORT-VLAN 12, Name Guest-Wireless, Priority level0, Spanning tree On
PORT-VLAN 254, Name Network-MGMT, Priority level0, Spanning tree On
SSH@ICX6450-DC_Stack#   
Brocade Moderator
Posts: 102
Registered: ‎02-04-2015

Re: How to show VLAns only on single switch in a stack

[ Edited ]

Hello,

 

The output modifier "|" only applies the first time. So it is either an include, exclude or begin operation. unlike linux, where you can use it to redirect an output from a command into an input to the next command.

 

Therefore, What comes after the output modifier is purely regular expressions conditions. So to show vlans for a certain switch in a stack, you may use the following example

 

show vlan | in PORT|UX (where X is the Stack ID)

 

To include a certain Module in that Stack it becomes "show vlan | in PORT|(UX/MX)

 

Please refer to the Command Reference below for more details on regular expressions use on FastIron.

 

http://www.brocade.com/content/html/en/command-reference-guide/FI_08030_CMDREF/GUID-92650226-01CA-46ED-A2DB-C8C337146B16.html

 

Hope this helps addressing your concern.

 

Regards,

Os 

 

 

Any and all information provided by me is not reviewed, approved or endorsed by Brocade and is provided solely as a convenience for Brocade customers.

All systems and all networks are different and unique. If you have a service affecting network problem, please open a TAC service request for service through Brocade, or through your OEM equipment provider. If this provided you with a solution to this issue, please mark it with the button at the bottom "Accept as solution" .
New Contributor
Posts: 4
Registered: ‎11-04-2016

Re: How to show VLAns only on single switch in a stack

That worked. Thanks!

Join the Community

Get quick and easy access to valuable resource designed to help you manage your Brocade Network.

vADC is now Pulse Secure
Download FREE NVMe eBook