06-21-2017 09:44 AM - edited 06-21-2017 10:00 AM
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.
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
Solved! Go to Solution.
06-21-2017 12:04 PM
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.
06-21-2017 03:15 PM
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#
06-21-2017 11:15 PM - edited 06-21-2017 11:23 PM
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.
Hope this helps addressing your concern.