<?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: scripting on xos switchen in ExtremeSwitching (EXOS/Switch Engine)</title>
    <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/scripting-on-xos-switchen/m-p/29997#M5007</link>
    <description>The script I posted is a "one-shot" elrp script that runs ELRP once on every VLAN every port to detect a loop. &lt;BR /&gt;
&lt;BR /&gt;
It could be modified (and simplified) to instead enable ELRP on every VLAN every port permanently.&lt;BR /&gt;
&lt;BR /&gt;
However, I would advise you to check with GTAC on the scale limits for ELRP based on switched configuration as having a large number of VLANs with a large number of ports in use with ELRP could overrun the CPU.&lt;BR /&gt;
&lt;BR /&gt;</description>
    <pubDate>Thu, 23 Feb 2017 15:31:00 GMT</pubDate>
    <dc:creator>Matthew_Helm1</dc:creator>
    <dc:date>2017-02-23T15:31:00Z</dc:date>
    <item>
      <title>scripting on xos switchen</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/scripting-on-xos-switchen/m-p/29987#M4997</link>
      <description>Hi, i have a problem.&lt;BR /&gt;
I want to configure the elrp client on all  my extreme xos switche.( more then 1000 )&lt;BR /&gt;
with al lot off dificulti vlan names.&lt;BR /&gt;
I don´t want log in seperatly in every switch to do it on the cli.&lt;BR /&gt;
Can i do this configuration wih a script?&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Feb 2017 20:31:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/scripting-on-xos-switchen/m-p/29987#M4997</guid>
      <dc:creator>dr_watson</dc:creator>
      <dc:date>2017-02-22T20:31:00Z</dc:date>
    </item>
    <item>
      <title>RE: scripting on xos switchen</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/scripting-on-xos-switchen/m-p/29988#M4998</link>
      <description>Hello Thomas,&lt;BR /&gt;
&lt;BR /&gt;
Depending on what version of code you are running you can utilize python to achieve this. A script might already be written to achieve something similiar on the website below:&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="https://github.com/extremenetworks/" target="_blank" rel="nofollow noreferrer noopener"&gt;https://github.com/extremenetworks/&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
You can then tftp the py file to the switch and utilize the command "run script &lt;SCRIPT name=""&gt;.py"&amp;lt;br /&amp;gt;
&amp;lt;br /&amp;gt;
The switches must be on 15.6 or higher in order to run python scripts.&lt;/SCRIPT&gt;</description>
      <pubDate>Wed, 22 Feb 2017 21:01:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/scripting-on-xos-switchen/m-p/29988#M4998</guid>
      <dc:creator>Patrick_Voss</dc:creator>
      <dc:date>2017-02-22T21:01:00Z</dc:date>
    </item>
    <item>
      <title>RE: scripting on xos switchen</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/scripting-on-xos-switchen/m-p/29989#M4999</link>
      <description>Thank you very much for the info and our version on the switches are 16.x&lt;BR /&gt;
I am a newie in scripting an i hope its not to dificulti for me&lt;BR /&gt;
thx&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Feb 2017 21:24:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/scripting-on-xos-switchen/m-p/29989#M4999</guid>
      <dc:creator>dr_watson</dc:creator>
      <dc:date>2017-02-22T21:24:00Z</dc:date>
    </item>
    <item>
      <title>RE: scripting on xos switchen</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/scripting-on-xos-switchen/m-p/29990#M5000</link>
      <description>I have one question,&lt;BR /&gt;
&lt;BR /&gt;
how can i download the files?&lt;BR /&gt;
or what i must du to copy this files on my switch&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Feb 2017 22:01:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/scripting-on-xos-switchen/m-p/29990#M5000</guid>
      <dc:creator>dr_watson</dc:creator>
      <dc:date>2017-02-22T22:01:00Z</dc:date>
    </item>
    <item>
      <title>RE: scripting on xos switchen</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/scripting-on-xos-switchen/m-p/29991#M5001</link>
      <description>So, the best way to xfer files is probably TFTP. Here is an &lt;A href="https://gtacknowledge.extremenetworks.com/articles/How_To/How-to-upload-Backup-Configuration-to-TFTP-server-on-EXOS-switch/?q=copying+files+to+a+switch&amp;amp;#38;l=en_US&amp;amp;#38;fs=RelatedArticle" target="_blank" rel="nofollow noreferrer noopener"&gt;example&lt;/A&gt; for a config file but the principle is the same for .xsf and .py files.&lt;BR /&gt;
&lt;BR /&gt;
Once you have the .xsf or .py file on your switch, you would issue the command "load script {scriptname}" where the script file name is given without the suffix.&lt;BR /&gt;
&lt;BR /&gt;
That said, you could also simply vi a file and type i for insert and then copy and paste the script contents into your terminal session. Then wq! to write to the file and quit the vi editor.&lt;BR /&gt;
&lt;BR /&gt;
Also here is some code that when run in a script does an ELRP one-shot on every VLAN, every port and reports loops. You could probably modify it to do what you want.&lt;BR /&gt;
&lt;BR /&gt;
#usage: load script elrp_oneshot&lt;BR /&gt;
# USE THIS SCRIPT AT YOUR OWN RISK&lt;BR /&gt;
# &lt;BR /&gt;
disable cli prompting&lt;BR /&gt;
disable clipaging&lt;BR /&gt;
enable elrp-client&lt;BR /&gt;
set var sv "#ELRP POLL STARTED#"&lt;BR /&gt;
show var sv&lt;BR /&gt;
set var cli.out 0&lt;BR /&gt;
show vlan&lt;BR /&gt;
set var sv $TCL(split ${cli.out} "\n")&lt;BR /&gt;
set var e $TCL(lsearch $sv *(B)*)&lt;BR /&gt;
set var i 5&lt;BR /&gt;
set var e ($e - 1)&lt;BR /&gt;
while ($i &amp;lt; $e) do&lt;BR /&gt;
   set var cli.out 0&lt;BR /&gt;
   set var v $TCL(lindex $sv $i)&lt;BR /&gt;
   set var vn $TCL(lindex $v 0)&lt;BR /&gt;
   set var z $TCL(regexp {Mgmt} $vn)&lt;BR /&gt;
   if ($z == 0) then&lt;BR /&gt;
         conf elrp-client one-shot $vn port all print&lt;BR /&gt;
         set var p $TCL(split ${cli.out} "\n")&lt;BR /&gt;
         set var p1 $TCL(lsearch $p *NO*)&lt;BR /&gt;
         if ($p1 == -1) then&lt;BR /&gt;
            set var p1 $TCL(lindex $p 2)&lt;BR /&gt;
            set var p2 $TCL(lindex $p1 9)&lt;BR /&gt;
            set var p1 $TCL(lrange $p1 0 6)&lt;BR /&gt;
            set var p1 $TCL(concat $p1 $p2)&lt;BR /&gt;
            set var p2 $TCL(lindex $p 3)&lt;BR /&gt;
            set var p2 $TCL(lrange $p2 5 7)&lt;BR /&gt;
            set var p $TCL(concat $p1 $p2)&lt;BR /&gt;
            show var p&lt;BR /&gt;
         else&lt;BR /&gt;
            set var p1 $TCL(lindex $p 2)&lt;BR /&gt;
            set var p2 $TCL(lindex $p1 10)&lt;BR /&gt;
            set var p1 $TCL(lrange $p1 0 7)&lt;BR /&gt;
            set var p1 $TCL(concat $p1 $p2)&lt;BR /&gt;
            show var p1&lt;BR /&gt;
         endif&lt;BR /&gt;
   endif&lt;BR /&gt;
   set var i ($i + 1)&lt;BR /&gt;
endwhile&lt;BR /&gt;
disable elrp-client&lt;BR /&gt;
set var sv "#ELRP POLL COMPLETED#"&lt;BR /&gt;
show var sv&lt;BR /&gt;
enable clipaging&lt;BR /&gt;
enable cli prompting&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Feb 2017 03:28:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/scripting-on-xos-switchen/m-p/29991#M5001</guid>
      <dc:creator>Matthew_Helm1</dc:creator>
      <dc:date>2017-02-23T03:28:00Z</dc:date>
    </item>
    <item>
      <title>RE: scripting on xos switchen</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/scripting-on-xos-switchen/m-p/29992#M5002</link>
      <description>Good Morning,&lt;BR /&gt;
&lt;BR /&gt;
thank you for your help in scripting under  xos software&lt;BR /&gt;
How i download a file to my swiches is not the problem, wie do it often with Netsight or&lt;BR /&gt;
with my own tftp server.&lt;BR /&gt;
i don't know ho i download the phyton files from the homepage &lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="https://github.com/extremenetworks/" target="_blank" rel="nofollow noreferrer noopener"&gt;https://github.com/extremenetworks/&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Feb 2017 12:30:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/scripting-on-xos-switchen/m-p/29992#M5002</guid>
      <dc:creator>dr_watson</dc:creator>
      <dc:date>2017-02-23T12:30:00Z</dc:date>
    </item>
    <item>
      <title>RE: scripting on xos switchen</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/scripting-on-xos-switchen/m-p/29993#M5003</link>
      <description>&lt;A href="https://guides.github.com/activities/hello-world/" target="_blank" rel="nofollow noreferrer noopener"&gt;https://guides.github.com/activities/hello-world/&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Feb 2017 12:30:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/scripting-on-xos-switchen/m-p/29993#M5003</guid>
      <dc:creator>Matthew_Helm1</dc:creator>
      <dc:date>2017-02-23T12:30:00Z</dc:date>
    </item>
    <item>
      <title>RE: scripting on xos switchen</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/scripting-on-xos-switchen/m-p/29994#M5004</link>
      <description>I want to give a feedback.&lt;BR /&gt;
This script works exelent with our xos switche.&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Feb 2017 15:31:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/scripting-on-xos-switchen/m-p/29994#M5004</guid>
      <dc:creator>dr_watson</dc:creator>
      <dc:date>2017-02-23T15:31:00Z</dc:date>
    </item>
    <item>
      <title>RE: scripting on xos switchen</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/scripting-on-xos-switchen/m-p/29995#M5005</link>
      <description>Good to hear. Thanks.</description>
      <pubDate>Thu, 23 Feb 2017 15:31:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/scripting-on-xos-switchen/m-p/29995#M5005</guid>
      <dc:creator>Matthew_Helm1</dc:creator>
      <dc:date>2017-02-23T15:31:00Z</dc:date>
    </item>
    <item>
      <title>RE: scripting on xos switchen</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/scripting-on-xos-switchen/m-p/29996#M5006</link>
      <description>Yes, it works good.&lt;BR /&gt;
But who can me explain what this Scripr do?&lt;BR /&gt;
I know it is very difficulty for me to understand this.&lt;BR /&gt;
I  want to write a script which configure me the elrp protocoll on the switch. witch multiple vlans.&lt;BR /&gt;
iI our networks we have ovver 1100 Extreme router or switche and i must &lt;BR /&gt;
configue elrp to remove a loop in my network.&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Feb 2017 15:31:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/scripting-on-xos-switchen/m-p/29996#M5006</guid>
      <dc:creator>dr_watson</dc:creator>
      <dc:date>2017-02-23T15:31:00Z</dc:date>
    </item>
    <item>
      <title>RE: scripting on xos switchen</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/scripting-on-xos-switchen/m-p/29997#M5007</link>
      <description>The script I posted is a "one-shot" elrp script that runs ELRP once on every VLAN every port to detect a loop. &lt;BR /&gt;
&lt;BR /&gt;
It could be modified (and simplified) to instead enable ELRP on every VLAN every port permanently.&lt;BR /&gt;
&lt;BR /&gt;
However, I would advise you to check with GTAC on the scale limits for ELRP based on switched configuration as having a large number of VLANs with a large number of ports in use with ELRP could overrun the CPU.&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Feb 2017 15:31:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/scripting-on-xos-switchen/m-p/29997#M5007</guid>
      <dc:creator>Matthew_Helm1</dc:creator>
      <dc:date>2017-02-23T15:31:00Z</dc:date>
    </item>
    <item>
      <title>RE: scripting on xos switchen</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/scripting-on-xos-switchen/m-p/29998#M5008</link>
      <description>You can do this even with "Execute Command-Script" on Netsight. When you use XOS  &amp;gt;21.x you can use vlan-id in some commands and not only vlan-names. I'm not sure, if this is included in elrp commands and XOS 16.x&lt;BR /&gt;</description>
      <pubDate>Fri, 24 Feb 2017 21:59:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/scripting-on-xos-switchen/m-p/29998#M5008</guid>
      <dc:creator>PeterK</dc:creator>
      <dc:date>2017-02-24T21:59:00Z</dc:date>
    </item>
    <item>
      <title>RE: scripting on xos switchen</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/scripting-on-xos-switchen/m-p/29999#M5009</link>
      <description>nope, it doesn't include elrp. But the vlan name is easier to automate anyway, as it's VLAN_&amp;lt;4 digit vid&amp;gt; (for example: VLAN_0010 for vid 10).&lt;BR /&gt;
&lt;BR /&gt;
if running 21.x+ I would imagine an App connecting to the switches, finding the vlans in use (with some criteria) and then apply the adequate config. Working with Python, json objects and jsonrpc could make it "easy".&lt;BR /&gt;</description>
      <pubDate>Fri, 24 Feb 2017 21:59:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/scripting-on-xos-switchen/m-p/29999#M5009</guid>
      <dc:creator>Stephane_Grosj1</dc:creator>
      <dc:date>2017-02-24T21:59:00Z</dc:date>
    </item>
  </channel>
</rss>

