<?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: Script to reboot wireless controller WM3400 in ExtremeWireless (WiNG)</title>
    <link>https://community.extremenetworks.com/t5/extremewireless-wing/script-to-reboot-wireless-controller-wm3400/m-p/21097#M1459</link>
    <description>Currently it's a batch file that looks like this:&lt;BR /&gt;
start C:\Users\Seant\plink.exe -ssh  username@x.x.x.x -pw genericpassword.  &lt;BR /&gt;
&lt;BR /&gt;
This gets me access to the Controller.  I'm having difficulty getting the commands scripted after this. (Mostly because I've never gone very heavily into scripting)&lt;BR /&gt;
This is all I need it to enter:&lt;BR /&gt;
&lt;BR /&gt;
en&lt;BR /&gt;
restart&lt;BR /&gt;
y  &lt;BR /&gt;
&lt;BR /&gt;</description>
    <pubDate>Thu, 21 Apr 2016 18:59:00 GMT</pubDate>
    <dc:creator>Sean_Tutor</dc:creator>
    <dc:date>2016-04-21T18:59:00Z</dc:date>
    <item>
      <title>Script to reboot wireless controller WM3400</title>
      <link>https://community.extremenetworks.com/t5/extremewireless-wing/script-to-reboot-wireless-controller-wm3400/m-p/21095#M1457</link>
      <description>WM3400 v5.5.5.0-018R&lt;BR /&gt;
Using Windows 7 machine&lt;BR /&gt;
&lt;BR /&gt;
I'm looking to create a basic script that will allow me to reboot a wireless controller through SSH.  I use PuTTY/Plink and have been able to remote in (via script) with no issue.  I am however a bit lost at how to get the device into privileged mode and use the reload command through a script.  I'm hoping you have had this issue come up before and could guide me towards the light.  &lt;BR /&gt;</description>
      <pubDate>Thu, 21 Apr 2016 01:16:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremewireless-wing/script-to-reboot-wireless-controller-wm3400/m-p/21095#M1457</guid>
      <dc:creator>Sean_Tutor</dc:creator>
      <dc:date>2016-04-21T01:16:00Z</dc:date>
    </item>
    <item>
      <title>RE: Script to reboot wireless controller WM3400</title>
      <link>https://community.extremenetworks.com/t5/extremewireless-wing/script-to-reboot-wireless-controller-wm3400/m-p/21096#M1458</link>
      <description>What script are you currently using to remote in Sean?&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Apr 2016 18:35:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremewireless-wing/script-to-reboot-wireless-controller-wm3400/m-p/21096#M1458</guid>
      <dc:creator>Christopher_Dav</dc:creator>
      <dc:date>2016-04-21T18:35:00Z</dc:date>
    </item>
    <item>
      <title>RE: Script to reboot wireless controller WM3400</title>
      <link>https://community.extremenetworks.com/t5/extremewireless-wing/script-to-reboot-wireless-controller-wm3400/m-p/21097#M1459</link>
      <description>Currently it's a batch file that looks like this:&lt;BR /&gt;
start C:\Users\Seant\plink.exe -ssh  username@x.x.x.x -pw genericpassword.  &lt;BR /&gt;
&lt;BR /&gt;
This gets me access to the Controller.  I'm having difficulty getting the commands scripted after this. (Mostly because I've never gone very heavily into scripting)&lt;BR /&gt;
This is all I need it to enter:&lt;BR /&gt;
&lt;BR /&gt;
en&lt;BR /&gt;
restart&lt;BR /&gt;
y  &lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Apr 2016 18:59:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremewireless-wing/script-to-reboot-wireless-controller-wm3400/m-p/21097#M1459</guid>
      <dc:creator>Sean_Tutor</dc:creator>
      <dc:date>2016-04-21T18:59:00Z</dc:date>
    </item>
    <item>
      <title>RE: Script to reboot wireless controller WM3400</title>
      <link>https://community.extremenetworks.com/t5/extremewireless-wing/script-to-reboot-wireless-controller-wm3400/m-p/21098#M1460</link>
      <description>I haven't used a batch before to do this.  Since it appears you are using plink however, something like this could work.  Create a text file with the necessary commands and save it as commands.txt or something.&lt;BR /&gt;
&lt;BR /&gt;
-m  c:\path\commands.txt &amp;gt; output.txt                &amp;lt;--------------then add that to the end of your current batch I believe.&lt;BR /&gt;
&lt;BR /&gt;
Additionally &lt;A href="http://the.earth.li/~sgtatham/putty/0.67/htmldoc/Chapter7.html" target="_blank" rel="nofollow noreferrer noopener"&gt;http://the.earth.li/~sgtatham/putty/0.67/htmldoc/Chapter7.html&lt;/A&gt; this is a helpful link for using plink.&lt;BR /&gt;
&lt;BR /&gt;
Let me know how it goes, or if you need anything else.</description>
      <pubDate>Thu, 21 Apr 2016 19:08:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremewireless-wing/script-to-reboot-wireless-controller-wm3400/m-p/21098#M1460</guid>
      <dc:creator>Christopher_Dav</dc:creator>
      <dc:date>2016-04-21T19:08:00Z</dc:date>
    </item>
    <item>
      <title>RE: Script to reboot wireless controller WM3400</title>
      <link>https://community.extremenetworks.com/t5/extremewireless-wing/script-to-reboot-wireless-controller-wm3400/m-p/21099#M1461</link>
      <description>I ended up downloading AutoITv3 to get this done because I don't think a normal batch file could do what I wanted.  I created a folder and called it Reboot_Wireless.  In that file I have a batch program and AU3 script file.  &lt;BR /&gt;
&lt;BR /&gt;
The batch file gets called on by the script and looks like this&lt;BR /&gt;
&lt;BR /&gt;
rem Open Tunnel&lt;BR /&gt;
start C:\Users\Seant\plink.exe -ssh  enterusername@x.x.x.x -pw yourpassword&lt;BR /&gt;
&lt;BR /&gt;
I named the batch example.bat&lt;BR /&gt;
&lt;BR /&gt;
The script I wrote looks like this.&lt;BR /&gt;
&lt;BR /&gt;
#RequireAdmin&lt;BR /&gt;
Run (@ScriptDir &amp;amp; '\example.bat')&lt;BR /&gt;
Sleep (20000)&lt;BR /&gt;
Send("en{ENTER}")&lt;BR /&gt;
sleep(3000)&lt;BR /&gt;
Send("reload{ENTER}")&lt;BR /&gt;
Sleep(3000)&lt;BR /&gt;
Send("y{ENTER}")&lt;BR /&gt;
Sleep(3000)&lt;BR /&gt;
Send("y{ENTER}")&lt;BR /&gt;
Sleep(300)&lt;BR /&gt;
&lt;BR /&gt;
I named this rebootexample.au3&lt;BR /&gt;
&lt;BR /&gt;
From here I set task scheduler to reboot my controllers once a week by launching rebootexample.au3&lt;BR /&gt;
&lt;BR /&gt;
I hope this helps anyone that wishes to use a script to reboot their controllers or maybe do something else.&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Apr 2016 19:08:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremewireless-wing/script-to-reboot-wireless-controller-wm3400/m-p/21099#M1461</guid>
      <dc:creator>Sean_Tutor</dc:creator>
      <dc:date>2016-04-21T19:08:00Z</dc:date>
    </item>
  </channel>
</rss>

