<?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: Is there a simple way to see ports in a VLAN, like you can see vlan's on a port? in ExtremeSwitching (EXOS/Switch Engine)</title>
    <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/is-there-a-simple-way-to-see-ports-in-a-vlan-like-you-can-see/m-p/83311#M20334</link>
    <description>&lt;P&gt;Eric,&lt;/P&gt; &lt;P&gt;Not as far as I can tell. The only thing I could suggest is “sh vlan FOO | begin Ports:”, but that still gives you the entire “Flags” legend at the bottom&lt;/P&gt; &lt;P&gt;“grep” probably won’t do what you need - there can be line-breaks in the port list, grep-ing for parentheses would still include the “Flags”, and you can’t double-pipe.&lt;/P&gt; &lt;P&gt;I would guess someone could come up with a python script, but if there’s a better way, I’d be interested as well.&lt;/P&gt;</description>
    <pubDate>Tue, 07 Apr 2020 20:16:28 GMT</pubDate>
    <dc:creator>Frank</dc:creator>
    <dc:date>2020-04-07T20:16:28Z</dc:date>
    <item>
      <title>Is there a simple way to see ports in a VLAN, like you can see vlan's on a port?</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/is-there-a-simple-way-to-see-ports-in-a-vlan-like-you-can-see/m-p/83310#M20333</link>
      <description>&lt;P&gt;In Exos, you can issue a “show port xx vlan” to get a short, simple list of vlan’s on a port. Is there a similar way to get a brief list of ports within a vlan (as opposed to “show vlan xx”, where it’s a small block of info at the bottom? I want to see all ports in V90 for example, nothing else. Would be cool with something like “show vlan xx members”.&lt;/P&gt; &lt;P&gt;&amp;nbsp;&lt;/P&gt; &lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2020 19:54:26 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/is-there-a-simple-way-to-see-ports-in-a-vlan-like-you-can-see/m-p/83310#M20333</guid>
      <dc:creator>Eric_Burke</dc:creator>
      <dc:date>2020-04-07T19:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a simple way to see ports in a VLAN, like you can see vlan's on a port?</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/is-there-a-simple-way-to-see-ports-in-a-vlan-like-you-can-see/m-p/83311#M20334</link>
      <description>&lt;P&gt;Eric,&lt;/P&gt; &lt;P&gt;Not as far as I can tell. The only thing I could suggest is “sh vlan FOO | begin Ports:”, but that still gives you the entire “Flags” legend at the bottom&lt;/P&gt; &lt;P&gt;“grep” probably won’t do what you need - there can be line-breaks in the port list, grep-ing for parentheses would still include the “Flags”, and you can’t double-pipe.&lt;/P&gt; &lt;P&gt;I would guess someone could come up with a python script, but if there’s a better way, I’d be interested as well.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2020 20:16:28 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/is-there-a-simple-way-to-see-ports-in-a-vlan-like-you-can-see/m-p/83311#M20334</guid>
      <dc:creator>Frank</dc:creator>
      <dc:date>2020-04-07T20:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a simple way to see ports in a VLAN, like you can see vlan's on a port?</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/is-there-a-simple-way-to-see-ports-in-a-vlan-like-you-can-see/m-p/83312#M20335</link>
      <description>&lt;P&gt;Its an ugly solution, but what about “show config vlan | i “ &amp;lt;vlan name&amp;gt; add ports” ?&lt;/P&gt; &lt;P&gt;&amp;nbsp;&lt;/P&gt; &lt;PRE&gt;&lt;CODE&gt;# show config vlan | i " Default add ports"&lt;BR /&gt;configure vlan Default add ports 1:1-7,1:9-15 untagged&lt;/CODE&gt;&lt;/PRE&gt; &lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2020 20:29:09 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/is-there-a-simple-way-to-see-ports-in-a-vlan-like-you-can-see/m-p/83312#M20335</guid>
      <dc:creator>BradP</dc:creator>
      <dc:date>2020-04-07T20:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a simple way to see ports in a VLAN, like you can see vlan's on a port?</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/is-there-a-simple-way-to-see-ports-in-a-vlan-like-you-can-see/m-p/83313#M20336</link>
      <description>&lt;P&gt;Perhaps a product enhancement suggestion? “show vlan vxxx members” with a tagged or untagged flag option to further narrow down the list?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 01:39:16 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/is-there-a-simple-way-to-see-ports-in-a-vlan-like-you-can-see/m-p/83313#M20336</guid>
      <dc:creator>Eric_Burke</dc:creator>
      <dc:date>2020-04-08T01:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a simple way to see ports in a VLAN, like you can see vlan's on a port?</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/is-there-a-simple-way-to-see-ports-in-a-vlan-like-you-can-see/m-p/83314#M20337</link>
      <description>&lt;P&gt;If you would like a feature request opened for this, please open a case with GTAC and we can do so.&lt;/P&gt; &lt;P&gt;&amp;nbsp;&lt;/P&gt; &lt;P&gt;Thanks&lt;BR /&gt; Brad&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 01:40:38 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/is-there-a-simple-way-to-see-ports-in-a-vlan-like-you-can-see/m-p/83314#M20337</guid>
      <dc:creator>BradP</dc:creator>
      <dc:date>2020-04-08T01:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a simple way to see ports in a VLAN, like you can see vlan's on a port?</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/is-there-a-simple-way-to-see-ports-in-a-vlan-like-you-can-see/m-p/83315#M20338</link>
      <description>&lt;P&gt;This is quite easy but verbose:&lt;/P&gt; &lt;P&gt;* X440G2-12p.8 # show ports vlan port-number&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Untagged&lt;BR /&gt; Port &amp;nbsp; &amp;nbsp; /Tagged &amp;nbsp; VLAN Name(s)&lt;BR /&gt; -------- -------- &amp;nbsp;------------------------------------------------------------&lt;BR /&gt; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Untagged &amp;nbsp;Default&lt;BR /&gt; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Untagged &amp;nbsp;Default&lt;BR /&gt; 3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Untagged &amp;nbsp;Default&lt;BR /&gt; 4 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Untagged &amp;nbsp;Default&lt;BR /&gt; 5 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Untagged &amp;nbsp;Default&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Tagged &amp;nbsp; &amp;nbsp;VLAN10&lt;BR /&gt; 6 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Untagged &amp;nbsp;Default&lt;BR /&gt; 7 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Untagged &amp;nbsp;Default&lt;BR /&gt; 8 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Untagged &amp;nbsp;Default&lt;BR /&gt; 9 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Untagged &amp;nbsp;Default&lt;BR /&gt; 10 &amp;nbsp; &amp;nbsp; &amp;nbsp; Untagged &amp;nbsp;Default&lt;BR /&gt; 11 &amp;nbsp; &amp;nbsp; &amp;nbsp; Untagged &amp;nbsp;Default&lt;BR /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Tagged &amp;nbsp; &amp;nbsp;VLAN10&lt;BR /&gt; 12 &amp;nbsp; &amp;nbsp; &amp;nbsp; Untagged &amp;nbsp;Default&lt;BR /&gt; 13 &amp;nbsp; &amp;nbsp; &amp;nbsp; Untagged &amp;nbsp;Default&lt;BR /&gt; 14 &amp;nbsp; &amp;nbsp; &amp;nbsp; Untagged &amp;nbsp;Default&lt;BR /&gt; 15 &amp;nbsp; &amp;nbsp; &amp;nbsp; Untagged &amp;nbsp;Default&lt;BR /&gt; 16 &amp;nbsp; &amp;nbsp; &amp;nbsp; Untagged &amp;nbsp;Default&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 16:44:39 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/is-there-a-simple-way-to-see-ports-in-a-vlan-like-you-can-see/m-p/83315#M20338</guid>
      <dc:creator>Miguel-Angel_RO</dc:creator>
      <dc:date>2020-04-09T16:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a simple way to see ports in a VLAN, like you can see vlan's on a port?</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/is-there-a-simple-way-to-see-ports-in-a-vlan-like-you-can-see/m-p/83316#M20339</link>
      <description>&lt;P&gt;I’m still waiting for a portation of EOS command&lt;/P&gt; &lt;BLOCKQUOTE&gt; &lt;P&gt;show vlan portinfo vlan xxx&lt;/P&gt; &lt;/BLOCKQUOTE&gt; &lt;P&gt;that would solve your question…&lt;/P&gt; &lt;P&gt;&amp;nbsp;&lt;/P&gt; &lt;P&gt;If anyone is familiar with python it should be possible to modify following script for this.&lt;/P&gt; &lt;P&gt;&lt;A href="https://github.com/extremenetworks/ExtremeScripting/tree/master/EXOS/Python/show_port_vid" target="_blank" rel="nofollow noreferrer noopener"&gt;https://github.com/extremenetworks/ExtremeScripting/tree/master/EXOS/Python/show_port_vid&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2020 17:40:24 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/is-there-a-simple-way-to-see-ports-in-a-vlan-like-you-can-see/m-p/83316#M20339</guid>
      <dc:creator>PeterK</dc:creator>
      <dc:date>2020-04-13T17:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a simple way to see ports in a VLAN, like you can see vlan's on a port?</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/is-there-a-simple-way-to-see-ports-in-a-vlan-like-you-can-see/m-p/83317#M20340</link>
      <description>&lt;P&gt;I did a thing&amp;nbsp;&lt;/P&gt; &lt;PRE&gt;&lt;CODE class="language-python"&gt;#!/usr/bin/env python&lt;BR /&gt;'''&lt;BR /&gt;Shows ports in a vlan&lt;BR /&gt;&lt;BR /&gt;Tested on EXOS 22.6.1.4&lt;BR /&gt;&lt;BR /&gt;Execute with: &lt;BR /&gt; - run script vlanports.py&lt;BR /&gt; or&lt;BR /&gt; - Make an alias: alias vlanport "run script vlanports.py"&lt;BR /&gt;'''&lt;BR /&gt;&lt;BR /&gt;import re&lt;BR /&gt;import sys&lt;BR /&gt;&lt;BR /&gt;exsh.clicmd('disable clipaging', False)&lt;BR /&gt;&lt;BR /&gt;# Input the tag or complete name of the vlan.&lt;BR /&gt;if len(sys.argv) &amp;lt; 2: &lt;BR /&gt; input_tag = raw_input("Vlan: ")&lt;BR /&gt;else:&lt;BR /&gt; input_tag = sys.argv[1]&lt;BR /&gt;&lt;BR /&gt;# Get vlan name&lt;BR /&gt;vlan_name = exsh.clicmd('show vlan {} | inc name'.format(input_tag), True)&lt;BR /&gt;if not vlan_name:&lt;BR /&gt; print 'Error: No &amp;lt;vlan_list&amp;gt; found with ID {}'.format(input_tag)&lt;BR /&gt; exit()&lt;BR /&gt;vlan_name = vlan_name.split()[4] &lt;BR /&gt;&lt;BR /&gt;# Extract vlan secction of the configuration&lt;BR /&gt;config_lines = exsh.clicmd('show configuration vlan', True).splitlines()&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# Find the first line that matches "configure vlan &amp;lt;vlan_name&amp;gt; add ports"&lt;BR /&gt;regex = re.compile('configure vlan {} add ports'.format(vlan_name), re.IGNORECASE)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;for i, line in enumerate(config_lines):&lt;BR /&gt; if regex.match(line):&lt;BR /&gt; line_field = line.split()&lt;BR /&gt; print 'Ports {tag}: {ports}'.format(tag = line_field[-1], ports = line_field[5])&lt;BR /&gt;&lt;BR /&gt; # If there are tagged and untagged ports configured in the vlan, the next line in the configuration has them&lt;BR /&gt; if regex.match(config_lines[i+1]):&lt;BR /&gt; line_field = config_lines[i+1].split()&lt;BR /&gt; print 'Ports {tag}: {ports}'.format(tag = line_field[-1], ports = line_field[5])&lt;BR /&gt; exit()&lt;BR /&gt;&lt;BR /&gt;print 'No ports in this vlan'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt; &lt;FIGURE&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="9081b663ecef4158b4c20c193b890191_ff527d8e-a11b-422b-a00a-03ad1c458f5d.png"&gt;&lt;img src="https://community.extremenetworks.com/t5/image/serverpage/image-id/1113iDA301F3C53432A6E/image-size/large?v=v2&amp;amp;px=999" role="button" title="9081b663ecef4158b4c20c193b890191_ff527d8e-a11b-422b-a00a-03ad1c458f5d.png" alt="9081b663ecef4158b4c20c193b890191_ff527d8e-a11b-422b-a00a-03ad1c458f5d.png" /&gt;&lt;/span&gt;&lt;/FIGURE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2020 20:35:03 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/is-there-a-simple-way-to-see-ports-in-a-vlan-like-you-can-see/m-p/83317#M20340</guid>
      <dc:creator>AdrianO</dc:creator>
      <dc:date>2020-04-15T20:35:03Z</dc:date>
    </item>
  </channel>
</rss>

