<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic RE: show vlan and sorting in ExtremeSwitching (EXOS/Switch Engine)</title>
    <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/show-vlan-and-sorting/m-p/15740#M201</link>
    <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
You could use any of the below:&lt;BR /&gt;
&lt;BR /&gt;
show vlan &lt;VLAN name=""&gt;&lt;BR /&gt;
show vlan | include &lt;VLAN id="" or="" name=""&gt;&lt;BR /&gt;
&lt;BR /&gt;
Hope this helps.&lt;/VLAN&gt;&lt;/VLAN&gt;</description>
    <pubDate>Fri, 12 Jun 2015 15:37:00 GMT</pubDate>
    <dc:creator>Senguttuvan__Ar</dc:creator>
    <dc:date>2015-06-12T15:37:00Z</dc:date>
    <item>
      <title>show vlan and sorting</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/show-vlan-and-sorting/m-p/15739#M200</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
could be possible to make EXOS sort VLANS by VID?&lt;BR /&gt;
&lt;BR /&gt;
currently it sorts just by name and in case of hundreds vlans it's pretty annoying.&lt;BR /&gt;
&lt;BR /&gt;
show vlan | sort VID&lt;BR /&gt;
show vlan sort VID&lt;BR /&gt;
thank you&lt;BR /&gt;
--&lt;BR /&gt;
antonio&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Fri, 12 Jun 2015 15:32:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/show-vlan-and-sorting/m-p/15739#M200</guid>
      <dc:creator>Antonio_Prado</dc:creator>
      <dc:date>2015-06-12T15:32:00Z</dc:date>
    </item>
    <item>
      <title>RE: show vlan and sorting</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/show-vlan-and-sorting/m-p/15740#M201</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
You could use any of the below:&lt;BR /&gt;
&lt;BR /&gt;
show vlan &lt;VLAN name=""&gt;&lt;BR /&gt;
show vlan | include &lt;VLAN id="" or="" name=""&gt;&lt;BR /&gt;
&lt;BR /&gt;
Hope this helps.&lt;/VLAN&gt;&lt;/VLAN&gt;</description>
      <pubDate>Fri, 12 Jun 2015 15:37:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/show-vlan-and-sorting/m-p/15740#M201</guid>
      <dc:creator>Senguttuvan__Ar</dc:creator>
      <dc:date>2015-06-12T15:37:00Z</dc:date>
    </item>
    <item>
      <title>RE: show vlan and sorting</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/show-vlan-and-sorting/m-p/15741#M202</link>
      <description>hi,&lt;BR /&gt;
&lt;BR /&gt;
doesn't help, actually.&lt;BR /&gt;
&lt;BR /&gt;
I'm asking for sorting (not finding)&lt;BR /&gt;
&lt;BR /&gt;
thank you&lt;BR /&gt;
--&lt;BR /&gt;
antonio</description>
      <pubDate>Fri, 12 Jun 2015 15:37:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/show-vlan-and-sorting/m-p/15741#M202</guid>
      <dc:creator>Antonio_Prado</dc:creator>
      <dc:date>2015-06-12T15:37:00Z</dc:date>
    </item>
    <item>
      <title>RE: show vlan and sorting</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/show-vlan-and-sorting/m-p/15742#M203</link>
      <description>Hello Antonio&lt;BR /&gt;
&lt;BR /&gt;
We do not do that in native XOS but I am sure we can do that via a script.  Let me check to see if we don't already have one created.&lt;BR /&gt;
&lt;BR /&gt;
I will let you know what I find out.&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;BR /&gt;
P&lt;BR /&gt;</description>
      <pubDate>Fri, 12 Jun 2015 15:37:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/show-vlan-and-sorting/m-p/15742#M203</guid>
      <dc:creator>Paul_Russo</dc:creator>
      <dc:date>2015-06-12T15:37:00Z</dc:date>
    </item>
    <item>
      <title>RE: show vlan and sorting</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/show-vlan-and-sorting/m-p/15743#M204</link>
      <description>If you have EXOS 15.6.1 or later, then you could use python scripting.&lt;BR /&gt;
There doesn't seem to be a way to attach the script file so I've included it below with before and after console output.&lt;BR /&gt;
&lt;BR /&gt;
#!/usr/bin/env python ''' This script is provided free of charge by Extreme.  We hope such scripts are helpful when used in conjunction     with Extreme products and technology; however, scripts are provided simply as an accommodation and are not        supported nor maintained by Extreme.  ANY SCRIPTS PROVIDED BY EXTREME ARE HEREBY PROVIDED "AS IS", WITHOUT        WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL EXTREME OR ITS THIRD PARTY LICENSORS BE LIABLE    FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE USE OR DISTRIBUTION OF SUCH SCRIPTS.  print "show vlan" in vlan tag order ''' import exsh   def getId(line):     return int(line.split()[1])  def main():     state=0     header = []     body = []     trailer = []      vlanDisplay = exsh.clicmd('show vlan', capture=True)     # extract the vlan body     for line in vlanDisplay.splitlines():         if state == 0 or state == 1:             #collect the display header. starts ends with ---- line             header.append(line)             if line.startswith('---'):                 state += 1         elif state == 2:             #collect the display body until a line wiht ----             if line.startswith('---'):                 state += 1                 trailer.append(line)                 continue             body.append(line)         elif state == 3:             #collect the remaining lines             trailer.append(line)      newBody = sorted(body,key=getId)     out=header + newBody + trailer     #print out the sorted results     for line in out:         print line  if __name__ == '__main__':     try:         main()     except SystemExit:         #catch SystemExit to prevent EXOS shell ffrom exiting to the login prompt         pass   Before: X460G2-24t-10G4.14 # show vlan ----------------------------------------------------------------------------------------------- Name            VID  Protocol Addr       Flags                         Proto  Ports  Virtual                                                                               Active router                                                                               /Total ----------------------------------------------------------------------------------------------- b               30   ------------------------------------------------- ANY    0 /0   VR-Default c               40   ------------------------------------------------- ANY    0 /0   VR-Default Default         1    --------------------------------T---------------- ANY    6 /34  VR-Default k               50   ------------------------------------------------- ANY    0 /0   VR-Default Mgmt            4095 ------------------------------------------------- ANY    1 /1   VR-Mgmt u               10   ------------------------------------------------- ANY    0 /0   VR-Default v               20   ------------------------------------------------- ANY    0 /0   VR-Default w               5    ------------------------------------------------- ANY    0 /0   VR-Default x               4    ------------------------------------------------- ANY    0 /0   VR-Default y               3    ------------------------------------------------- ANY    0 /0   VR-Default z               2    ------------------------------------------------- ANY    0 /0   VR-Default ----------------------------------------------------------------------------------------------- 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  Total number of VLAN(s) : 11 &lt;BR /&gt;
After&lt;BR /&gt;
X460G2-24t-10G4.15 # run script showvlanid.py ----------------------------------------------------------------------------------------------- Name            VID  Protocol Addr       Flags                         Proto  Ports  Virtual                                                                               Active router                                                                               /Total ----------------------------------------------------------------------------------------------- Default         1    --------------------------------T---------------- ANY    6 /34  VR-Default z               2    ------------------------------------------------- ANY    0 /0   VR-Default y               3    ------------------------------------------------- ANY    0 /0   VR-Default x               4    ------------------------------------------------- ANY    0 /0   VR-Default w               5    ------------------------------------------------- ANY    0 /0   VR-Default u               10   ------------------------------------------------- ANY    0 /0   VR-Default v               20   ------------------------------------------------- ANY    0 /0   VR-Default b               30   ------------------------------------------------- ANY    0 /0   VR-Default c               40   ------------------------------------------------- ANY    0 /0   VR-Default k               50   ------------------------------------------------- ANY    0 /0   VR-Default Mgmt            4095 ------------------------------------------------- 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  Total number of VLAN(s) : 11</description>
      <pubDate>Fri, 12 Jun 2015 21:07:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/show-vlan-and-sorting/m-p/15743#M204</guid>
      <dc:creator>Dave_Hammers</dc:creator>
      <dc:date>2015-06-12T21:07:00Z</dc:date>
    </item>
    <item>
      <title>RE: show vlan and sorting</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/show-vlan-and-sorting/m-p/15744#M205</link>
      <description>hi dave,&lt;BR /&gt;
&lt;BR /&gt;
that's useful.&lt;BR /&gt;
&lt;BR /&gt;
generally speaking, a basic sorting task on vlans shouldn't require programming skills, though&lt;BR /&gt;
&lt;BR /&gt;
thank you&lt;BR /&gt;
--&lt;BR /&gt;
antonio</description>
      <pubDate>Fri, 12 Jun 2015 21:07:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/show-vlan-and-sorting/m-p/15744#M205</guid>
      <dc:creator>Antonio_Prado</dc:creator>
      <dc:date>2015-06-12T21:07:00Z</dc:date>
    </item>
    <item>
      <title>RE: show vlan and sorting</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/show-vlan-and-sorting/m-p/15745#M206</link>
      <description>Hey Antonio&lt;BR /&gt;
&lt;BR /&gt;
Yes you are correct and we are working to make new advancements on how the VLANs are created and indexed.  I believe 16.1 will provide more focus on VLAN ID numbers.&lt;BR /&gt;
&lt;BR /&gt;
Scripting provides a way for us to manipulate the OS to provide benefit in a faster perspective versus waiting for a new version of code.  It also provides a way for customer to re-write what they see on the screen.  If for example you want to capture data from two different screens and show them on with one command then we can accomplish it with scripts.  &lt;BR /&gt;
&lt;BR /&gt;
The Python scripts also allow us to run them as an application on the switch so that as soon as the switch is booted the script is loaded into XOS.&lt;BR /&gt;
&lt;BR /&gt;
I hope that helps explain the reason for scripting and how it can provide benefit between versions of code&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;BR /&gt;
P&lt;BR /&gt;</description>
      <pubDate>Fri, 12 Jun 2015 21:07:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/show-vlan-and-sorting/m-p/15745#M206</guid>
      <dc:creator>Paul_Russo</dc:creator>
      <dc:date>2015-06-12T21:07:00Z</dc:date>
    </item>
    <item>
      <title>RE: show vlan and sorting</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/show-vlan-and-sorting/m-p/15746#M207</link>
      <description>See &lt;A href="https://community.extremenetworks.com/extreme/topics/xos-show-vid" target="_blank" rel="nofollow noreferrer noopener"&gt;https://community.extremenetworks.com/extreme/topics/xos-show-vid&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Sun, 05 Jun 2016 19:31:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/show-vlan-and-sorting/m-p/15746#M207</guid>
      <dc:creator>Dave_Hammers</dc:creator>
      <dc:date>2016-06-05T19:31:00Z</dc:date>
    </item>
  </channel>
</rss>

