<?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 entire port configuration for a specific port in ExtremeSwitching (EXOS/Switch Engine)</title>
    <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/show-entire-port-configuration-for-a-specific-port/m-p/45880#M11536</link>
    <description>I think this would require a new argument to "show configuration"  CLI   command on the switch, where you give it a list of port numbers.&lt;BR /&gt;
The   pipe include will never work here, because it does raw grep on the   output and if the port is embedded in a range there can be nothing to   match..&lt;BR /&gt;
&lt;BR /&gt;
You could probably write a Python script to run on the   XOS which would obtain the config file and then process it against a   list of ports provided...&lt;BR /&gt;
&lt;BR /&gt;
Or if it can help, this is what I get on my terminal:&lt;BR /&gt;
&lt;BR /&gt;
Slot-1 Stack.9 #% cfg||1:15&lt;BR /&gt;
           alias% show configuration -b ||1:15&lt;BR /&gt;
configure vr VR-Default delete ports 1:1-34,2:1-34&lt;BR /&gt;
configure vr VR-Default add ports 1:1-34,2:1-34&lt;BR /&gt;
configure vlan Default add ports 1:1-12,1:14-34,2:1-12,2:14-23,2:25-34 untagged&lt;BR /&gt;
configure vlan test add ports 1:15 tagged&lt;BR /&gt;
Slot-1 Stack.9 #%&lt;BR /&gt;
&lt;BR /&gt;
...and on a standalone switch...&lt;BR /&gt;
&lt;BR /&gt;
X440G2-12p-10G4.8 #% cfg||3&lt;BR /&gt;
              alias% show configuration -b ||3&lt;BR /&gt;
configure vr VR-Default delete ports 1-16&lt;BR /&gt;
configure vr VR-Default add ports 1-16&lt;BR /&gt;
configure vlan Default add ports 1-6,9-16 untagged&lt;BR /&gt;
X440G2-12p-10G4.9 #%&lt;BR /&gt;
&lt;BR /&gt;
But the "advanced" grep capability is done here by the terminal (not the switch).&lt;BR /&gt;
You   are welcome to try it out; it's a home made terminal which I originally   wrote for the Avaya switches (now acquired by Extreme) and I have   recently extended to work on XOS.&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://www.oranda.fr/ACLI-terminal/" target="_blank" rel="nofollow noreferrer noopener"&gt;http://www.oranda.fr/ACLI-terminal/&lt;/A&gt;&lt;BR /&gt;
(this is of course not supported in any way by Extreme!)&lt;BR /&gt;
&lt;BR /&gt;</description>
    <pubDate>Wed, 18 Apr 2018 21:54:00 GMT</pubDate>
    <dc:creator>Ludovico_Steven</dc:creator>
    <dc:date>2018-04-18T21:54:00Z</dc:date>
    <item>
      <title>Show entire port configuration for a specific port</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/show-entire-port-configuration-for-a-specific-port/m-p/45871#M11527</link>
      <description>I would like to have the entire configuration for a specific port &amp;gt; output in the same way you can view the entire configuration for a vlan with the pipe command.&lt;BR /&gt;
&lt;BR /&gt;
as an example:&lt;BR /&gt;
switch.name # show config | i V123       &lt;BR /&gt;
create vlan "V123-x_x" vr vr-xxx-xxx&lt;BR /&gt;
configure vlan V123-x_x tag 123&lt;BR /&gt;
configure vlan V123-x_x add ports 2:21, 4:7 tagged  &lt;BR /&gt;
configure vlan V123-x_x ipaddress 1.2.3.4 255.255.255.255&lt;BR /&gt;
enable ipforwarding V123-x_x&lt;BR /&gt;
enable bootprelay ipv4 V123-x_x&lt;BR /&gt;
configure ospf add vlan V123-x_x area x.x.x.x passive&lt;BR /&gt;
configure ospf vlan V123-x_x priority x&lt;BR /&gt;
enable stpd S123-x_x auto-bind vlan V123-x_x&lt;BR /&gt;
create vrrp vlan V123-x_x vrid x&lt;BR /&gt;
configure vrrp vlan V123-x_x vrid x priority xxx&lt;BR /&gt;
configure vrrp vlan V123-x_x vrid x preempt delay xx&lt;BR /&gt;
configure vrrp vlan V123-x_x vrid 1 track-mode any&lt;BR /&gt;
configure vrrp vlan V123-x_x vrid 1 accept-mode on&lt;BR /&gt;
configure vrrp vlan V123-x_x vrid 1 add 1.2.3.4&lt;BR /&gt;
enable vrrp vlan V123-x_x vrid x&lt;BR /&gt;
&lt;BR /&gt;
!outputs the entire configuration for vlan 123&lt;BR /&gt;
&lt;BR /&gt;
I would like to do the same thing for a specific port.  &lt;BR /&gt;
Some of the options to output the configuration for a port are:&lt;BR /&gt;
&lt;BR /&gt;
sh port 1 information detail&lt;BR /&gt;
show config | i 1     &amp;gt; where 1 is a port #. but 1 doesn't work because there are a lot of other instances where the # 1 is used in a configuration string. &lt;BR /&gt;
&lt;BR /&gt;
you could do:&lt;BR /&gt;
show config | i 45    &amp;gt; and the output is fine.  but it won't work with the lower port #'s.&lt;BR /&gt;
&lt;BR /&gt;
What i want output is all of the config and create commands that are applied to the port in question.&lt;BR /&gt;
&lt;BR /&gt;
Ideally it would like it  look something like this:&lt;BR /&gt;
&lt;BR /&gt;
switch.name # show config | i Port 1    &amp;gt;  but you can't do this because you cannot have a space between the word Port and 1.  I have tried "Port 1"    'Port 1'  Port-1   Port*1 and a few others.  But none seem to work.&lt;BR /&gt;
&lt;BR /&gt;
So...  is there a way to have just the configuration commands output for a specific port doing something like this:&lt;BR /&gt;
&lt;BR /&gt;
switch.name # show config | i Port 1&lt;BR /&gt;
or&lt;BR /&gt;
switch.name # show port config | i config&lt;BR /&gt;
&lt;BR /&gt;
For some context, it would be the same thing in Cisco IOS when doing this:&lt;BR /&gt;
switch#sh run int gi1/1&lt;BR /&gt;
!outputs the configuration for int gi1/1&lt;BR /&gt;
&lt;BR /&gt;
Any output (pun intended) would be Appreciated &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
&lt;BR /&gt;
~Mike&lt;BR /&gt;
&lt;BR /&gt;
      &lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Apr 2018 03:52:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/show-entire-port-configuration-for-a-specific-port/m-p/45871#M11527</guid>
      <dc:creator>Mike_Rodriguez</dc:creator>
      <dc:date>2018-04-18T03:52:00Z</dc:date>
    </item>
    <item>
      <title>RE: Show entire port configuration for a specific port</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/show-entire-port-configuration-for-a-specific-port/m-p/45872#M11528</link>
      <description>Hi Mike, &lt;BR /&gt;
&lt;BR /&gt;
you could try   show config detail | include "port 3"&lt;BR /&gt;
followed  by     show config detail | include "ports 3" &lt;BR /&gt;
&lt;BR /&gt;
this should show you the port configuration &lt;BR /&gt;
&lt;BR /&gt;
Regards &lt;BR /&gt;
&lt;BR /&gt;
Michael  &lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Apr 2018 14:19:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/show-entire-port-configuration-for-a-specific-port/m-p/45872#M11528</guid>
      <dc:creator>Michael_Andreas</dc:creator>
      <dc:date>2018-04-18T14:19:00Z</dc:date>
    </item>
    <item>
      <title>RE: Show entire port configuration for a specific port</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/show-entire-port-configuration-for-a-specific-port/m-p/45873#M11529</link>
      <description>Hello, Michael!&lt;BR /&gt;
&lt;BR /&gt;
You right, this output show you only config lines where clearly written "port 3"&lt;BR /&gt;
BUT &lt;BR /&gt;
if in config present line with port-list, like &lt;BR /&gt;
configure vlan Default add ports 1-6 &lt;BR /&gt;
this configuration isn't visible&lt;BR /&gt;
 &lt;BR /&gt;
&lt;BR /&gt;
Thank you!</description>
      <pubDate>Wed, 18 Apr 2018 14:19:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/show-entire-port-configuration-for-a-specific-port/m-p/45873#M11529</guid>
      <dc:creator>Alexandr_P</dc:creator>
      <dc:date>2018-04-18T14:19:00Z</dc:date>
    </item>
    <item>
      <title>RE: Show entire port configuration for a specific port</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/show-entire-port-configuration-for-a-specific-port/m-p/45874#M11530</link>
      <description>Gave it a few trys myself (not very strong in regex). I was able to get at it using two variables:&lt;BR /&gt;
&lt;BR /&gt;
i port.1$&lt;BR /&gt;
i ports.1$&lt;BR /&gt;
&lt;BR /&gt;
this looks for port or ports and caps the end of the query after the first "1".&lt;BR /&gt;
&lt;BR /&gt;
It's two lines instead of one, but I'm still experimenting to see if EXOS allows any type of grouping (which regex seems to support, but I can't get working on EXOS).&lt;BR /&gt;
&lt;BR /&gt;
Eric&lt;BR /&gt;
&lt;BR /&gt;
UPDATE: Scratch that post - not reliable (and not sure why). Still working on it...</description>
      <pubDate>Wed, 18 Apr 2018 17:20:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/show-entire-port-configuration-for-a-specific-port/m-p/45874#M11530</guid>
      <dc:creator>Eric_Burke</dc:creator>
      <dc:date>2018-04-18T17:20:00Z</dc:date>
    </item>
    <item>
      <title>RE: Show entire port configuration for a specific port</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/show-entire-port-configuration-for-a-specific-port/m-p/45875#M11531</link>
      <description>Okay - maybe...&lt;BR /&gt;
&lt;BR /&gt;
sho config | i (port 1$|ports 1$)&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Apr 2018 17:43:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/show-entire-port-configuration-for-a-specific-port/m-p/45875#M11531</guid>
      <dc:creator>Eric_Burke</dc:creator>
      <dc:date>2018-04-18T17:43:00Z</dc:date>
    </item>
    <item>
      <title>RE: Show entire port configuration for a specific port</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/show-entire-port-configuration-for-a-specific-port/m-p/45876#M11532</link>
      <description>Have tried this? switch.name # show port config port-numb | I 2 (or 1:2)&lt;BR /&gt;
&lt;BR /&gt;
This is the output:&lt;BR /&gt;
&lt;BR /&gt;
 Slot-1 switch_name.3 # sho ports configuration port-number | i 1:2&lt;BR /&gt;
1:2      VR-Default  E      A    ON  AUTO  1000 AUTO FULL   NONE        UTP&lt;BR /&gt;
%% Refresh display exited by output filter. Use "no-refresh" if applicable.&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Apr 2018 18:13:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/show-entire-port-configuration-for-a-specific-port/m-p/45876#M11532</guid>
      <dc:creator>Leviodjos</dc:creator>
      <dc:date>2018-04-18T18:13:00Z</dc:date>
    </item>
    <item>
      <title>RE: Show entire port configuration for a specific port</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/show-entire-port-configuration-for-a-specific-port/m-p/45877#M11533</link>
      <description>Unfortunately there isn't a simple/easy way to do this.  With EXOS ports are usually added to other entities like VLAN, STP, EAPS, etc rather than adding the entities to the ports.  As such, ports are referenced in many different forms throughout the different CLI commands.  You could create a regex that would cover most situations, but it would likely contain some configuration commands that do not pertain to the port (because it matched on the number).  Also, it will not catch commands that contain the port if the port is contained within a port list/range.&lt;BR /&gt;
&lt;BR /&gt;
You could do this with a script, expanding the port ranges and accounting for the other outliers, but that may be more complicated than you were looking for.&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="https://github.com/extremenetworks/ExtremeScripting/blob/master/EXOS/Python/list_compress/list_compress.py" target="_blank" rel="nofollow noreferrer noopener"&gt;There is some code in this script that could be repurposed to expand port ranges&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="https://github.com/extremenetworks/ExtremeScripting/tree/master/EXOS/Python/convert_port_config" target="_blank" rel="nofollow noreferrer noopener"&gt;This script changes port config from one port to another, so the functionality you are looking for is inevitably embedded in it somewhere&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
This would be a worthwhile feature request&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Apr 2018 18:40:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/show-entire-port-configuration-for-a-specific-port/m-p/45877#M11533</guid>
      <dc:creator>Chad_Smith1</dc:creator>
      <dc:date>2018-04-18T18:40:00Z</dc:date>
    </item>
    <item>
      <title>RE: Show entire port configuration for a specific port</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/show-entire-port-configuration-for-a-specific-port/m-p/45878#M11534</link>
      <description>For the wildcard regex, may I suggest:&lt;BR /&gt;
sh config &lt;DETAIL&gt; | include " ports* 15$"that would mean "space followed by port, followed by 0(!) or more occurrences of 's', followed by space, then 15, then end-of-line"&lt;BR /&gt;
&lt;BR /&gt;
But it does nothing to find config lines with "ports 13-19". If I find the time, I might fiddle with a script. I need to learn scripting on EXOS anyway.&lt;BR /&gt;
&lt;BR /&gt;&lt;/DETAIL&gt;</description>
      <pubDate>Wed, 18 Apr 2018 19:22:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/show-entire-port-configuration-for-a-specific-port/m-p/45878#M11534</guid>
      <dc:creator>Frank</dc:creator>
      <dc:date>2018-04-18T19:22:00Z</dc:date>
    </item>
    <item>
      <title>RE: Show entire port configuration for a specific port</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/show-entire-port-configuration-for-a-specific-port/m-p/45879#M11535</link>
      <description>i played a bit and figured out that :&lt;BR /&gt;
&lt;BR /&gt;
show configuration  | include "(port |ports  |ports all|ports .-.])" &lt;BR /&gt;
will show you icluding  ( all) rages. &lt;BR /&gt;
&lt;BR /&gt;
not sure if this is parcticable .&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Apr 2018 19:57:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/show-entire-port-configuration-for-a-specific-port/m-p/45879#M11535</guid>
      <dc:creator>Michael_Andreas</dc:creator>
      <dc:date>2018-04-18T19:57:00Z</dc:date>
    </item>
    <item>
      <title>RE: Show entire port configuration for a specific port</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/show-entire-port-configuration-for-a-specific-port/m-p/45880#M11536</link>
      <description>I think this would require a new argument to "show configuration"  CLI   command on the switch, where you give it a list of port numbers.&lt;BR /&gt;
The   pipe include will never work here, because it does raw grep on the   output and if the port is embedded in a range there can be nothing to   match..&lt;BR /&gt;
&lt;BR /&gt;
You could probably write a Python script to run on the   XOS which would obtain the config file and then process it against a   list of ports provided...&lt;BR /&gt;
&lt;BR /&gt;
Or if it can help, this is what I get on my terminal:&lt;BR /&gt;
&lt;BR /&gt;
Slot-1 Stack.9 #% cfg||1:15&lt;BR /&gt;
           alias% show configuration -b ||1:15&lt;BR /&gt;
configure vr VR-Default delete ports 1:1-34,2:1-34&lt;BR /&gt;
configure vr VR-Default add ports 1:1-34,2:1-34&lt;BR /&gt;
configure vlan Default add ports 1:1-12,1:14-34,2:1-12,2:14-23,2:25-34 untagged&lt;BR /&gt;
configure vlan test add ports 1:15 tagged&lt;BR /&gt;
Slot-1 Stack.9 #%&lt;BR /&gt;
&lt;BR /&gt;
...and on a standalone switch...&lt;BR /&gt;
&lt;BR /&gt;
X440G2-12p-10G4.8 #% cfg||3&lt;BR /&gt;
              alias% show configuration -b ||3&lt;BR /&gt;
configure vr VR-Default delete ports 1-16&lt;BR /&gt;
configure vr VR-Default add ports 1-16&lt;BR /&gt;
configure vlan Default add ports 1-6,9-16 untagged&lt;BR /&gt;
X440G2-12p-10G4.9 #%&lt;BR /&gt;
&lt;BR /&gt;
But the "advanced" grep capability is done here by the terminal (not the switch).&lt;BR /&gt;
You   are welcome to try it out; it's a home made terminal which I originally   wrote for the Avaya switches (now acquired by Extreme) and I have   recently extended to work on XOS.&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://www.oranda.fr/ACLI-terminal/" target="_blank" rel="nofollow noreferrer noopener"&gt;http://www.oranda.fr/ACLI-terminal/&lt;/A&gt;&lt;BR /&gt;
(this is of course not supported in any way by Extreme!)&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Apr 2018 21:54:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/show-entire-port-configuration-for-a-specific-port/m-p/45880#M11536</guid>
      <dc:creator>Ludovico_Steven</dc:creator>
      <dc:date>2018-04-18T21:54:00Z</dc:date>
    </item>
  </channel>
</rss>

