cancel
Showing results for 
Search instead for 
Did you mean: 

XOS show vid

XOS show vid

Dave_Hammers
Extreme Employee
EXOS:

show vid – CLI command showvid.py - script

Extreme has received a number of requests to have a show command for VLANs in VLAN ID (VID) order.


When creating VLANs using the VID form in EXOS 16.1 CLI commands, the VLAN name is automatically created.

code:
# create vlan 10-20
To provide customized meaning to the VID (EXOS 16.1), the VLAN description is used.

code:
# create vlan 10 description "Finance Bldg 12"
Targeted for 16.2 in the summer of 2016 and 21.1.2 and 22.1 later in 2016 is the

code:
# show vid command


This CLI command displays the VLANs in VID order along with the description.

In addition, available today for EXOS releases 15.6.2 and later, on the Extreme Github site, is the same function in a script:

https://github.com/extremenetworks/ExtremeScripting/blob/master/EXOS/Python/show_vid/README.md

# run script showvid.py -h
usage: showvid [-h] [-v VLAN]

optional arguments:
-h, --help show this help message and exit
-v VLAN, --vlan VLAN VLAN ID range 1,2 or 1-5

# run script showvid.py

# run script showvid.py -h
usage: showvid [-h] [-v VLAN]

optional arguments:
-h, --help show this help message and exit
-v VLAN, --vlan VLAN VLAN ID range 1,2 or 1-5# run script showvid.py
-----------------------------------------------------------------------------------------------
VID Description Protocol Addr Flags Proto Ports Virtual
/VLAN Name Active Router
/Total
---- --------------- ------------------ ---------------------------- ------ ------ ----------
1 Default 10.9.8.7/24 ------------T--------------- ANY 0/31 VR-Default
30 Finance ------------------ ------------T--------------- ANY 0/33 VR-Default
31 VLAN_0031 ------------------ ------------T--------------- ANY 0/33 VR-Default
32 Engineering II ------------------ ------------T--------------- ANY 0/33 VR-Default
33 Here is an example of a very long VLAN description. The usr can
------------------ ------------T--------------- ANY 0/33 VR-Default
34 VLAN_0034 ------------------ ------------T--------------- ANY 0/33 VR-Default
35 VLAN_0035 ------------------ ---------------------------- ANY 0/0 VR-Default
40 VLAN_0040 ------------------ ---------------------------- ANY 0/4 VR-Default
41 Carries heavy traffic between Building 17 and Building 2
------------------ ------------T--------------- ANY 0/4 VR-Default
42 1234567890123456789012345678901234567890123456789012345678901234
------------------ ------------T--------------- ANY 0/4 VR-Default
43 VLAN_0043 ------------------ ------------T--------------- ANY 0/4 VR-Default
44 VLAN_0044 ------------------ ---------------------------- ANY 0/4 VR-Default
45 VLAN_0045 ------------------ ------------T--------------- ANY 0/4 VR-Default
1000 BigData ------------------ ------------T--------------- ANY 0/2 VR-Default
4095 Management VLAN ------------------ ---------------------------- ANY 1/1 VR-Mgmt
-----------------------------------------------------------------------------------------------
Flags : (B) BFD Enabled, (c) 802.1ad customer VLAN, (C) EAPS Control VLAN,
(d) Dynamically created VLAN, (D) VLAN Admin Disabled,
(e) CES Configured, (E) ESRP Enabled, (f) IP Forwarding Enabled,
(F) Learning Disabled, (h) TRILL Enabled, (i) ISIS Enabled,
(I) Inter-Switch Connection VLAN for MLAG, (k) PTP Configured,
(l) MPLS Enabled, (L) Loopback Enabled, (m) IPmc Forwarding Enabled,
(M) Translation Member VLAN or Subscriber VLAN, (n) IP Multinetting Enabled,
(N) Network Login VLAN, (o) OSPF Enabled, (O) Flooding Disabled,
(p) PIM Enabled, (P) EAPS protected VLAN, (r) RIP Enabled,
(R) Sub-VLAN IP Range Configured, (s) Sub-VLAN, (S) Super-VLAN,
(t) Translation VLAN or Network VLAN, (T) Member of STP Domain,
(v) VRRP Enabled, (V) VPLS Enabled, (W) VPWS Enabled, (Z) OpenFlow Enabled
1 REPLY 1

Drew_C
Valued Contributor III
This looks like great content for a GTAC Knowledge article!
Myself or someone will get this written up soon and will share a link here.

Thanks Dave!

-Drew
GTM-P2G8KFN