XOS show vlan portinfo



Show first post

28 replies

Userlevel 7
For older EXOS switches w/o Python you can use:
show ports information detail | include "(^Port|(Internal|802.1Q) Tag)"[/code]This is quite a bit slower than the Python script, because the command collects a lot more information about every port than is printed in the end.
Userlevel 5
Because of the response on this thread, in EXOS 16.2, targeted mid summer 2016, the portinfo.py script is being folded in to EXOS CLI as:
# show port vid
Untagged
Port /Tagged VID(s)
-------- -------- ------------------------------------------------------------
1 Untagged 1
Tagged 30, 31, 32, 33, 34, 40, 41, 42, 43, 44, 45, 1000
2 Untagged 100
3 Untagged 1
Tagged 30, 31, 32, 33, 34, 40, 41, 42, 43, 44, 45, 1000
4 Untagged 1
Tagged 30, 31, 32, 33, 34
5 Untagged 100
Tagged 30, 31, 32, 33, 34
6 Untagged 1
Tagged 30, 31, 32, 33, 34, 40, 41, 42, 43, 44, 45
7 Untagged 1
Tagged 30, 31, 32, 33, 34
8 Untagged 1
Tagged 30, 31, 32, 33, 34
9 Untagged 1
Tagged 30, 31, 32, 33, 34, 40, 41, 42, 43, 44, 45
10 Untagged 100
Tagged 30, 31, 32, 33, 34
11 Untagged 1
Tagged 30, 31, 32, 33, 34[/code]
and

# show port vid description
Untagged
Port /Tagged VID VLAN Name VLAN Description
-------- -------- ---- -------------------- ------------------------------------
1 Untagged 1 Default
Tagged 30 VLAN_0030 Finance
31 VLAN_0031
32 VLAN_0032 Engineering II
33 VLAN_0033 Here is an example of a very long
VLAN description. The usr can
34 VLAN_0034
40 VLAN_0040
41 VLAN_0041 Carries heavy traffic between
Building 17 and Building 2
42 VLAN_0042 123456789012345678901234567890123456
7890123456789012345678901234
43 VLAN_0043
44 VLAN_0044
45 VLAN_0045
1000 BigData
2 Untagged 100 VMAN_0100
3 Untagged 1 Default
Tagged 30 VLAN_0030 Finance
31 VLAN_0031
32 VLAN_0032 Engineering II
[/code]
Userlevel 5
Received a request by the Extreme support organization to turn this new CLI command into a script for release starting with 15.6.2.

See the Extreme GitHub

https://github.com/extremenetworks/ExtremeScripting/tree/master/EXOS/Python/show_port_vid

Reply