<?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: How can I modify the tftp timeout? in ExtremeSwitching (EXOS/Switch Engine)</title>
    <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/how-can-i-modify-the-tftp-timeout/m-p/56849#M16711</link>
    <description>Hi Ali, currently there is no native CLI option to modify the TFTP timeout.&lt;BR /&gt;
&lt;BR /&gt;
An option would be creating a Python script to ping the server through MGMT vlan and only start the TFTP process if the server is up.&lt;BR /&gt;
&lt;BR /&gt;
However this script might need to be created from scratch.&lt;BR /&gt;
&lt;BR /&gt;
You can find some examples for Python scripts in the link below:&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="https://github.com/extremenetworks/ExtremeScripting/blob/master/EXOS/Python/README.md" target="_blank" rel="nofollow noreferrer noopener"&gt;EXOS Python Scripts&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Note: Python version 2.7.3 has been integrated into EXOS since EXOS 15.6.1</description>
    <pubDate>Tue, 03 May 2016 01:25:00 GMT</pubDate>
    <dc:creator>Henrique</dc:creator>
    <dc:date>2016-05-03T01:25:00Z</dc:date>
    <item>
      <title>How can I modify the tftp timeout?</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/how-can-i-modify-the-tftp-timeout/m-p/56846#M16708</link>
      <description>I'd like to test if a tFTP server is up and if it's up I'm downloading some scripts on to the switch. Right now I'm trying to download a dummy file from the tFTP server using this command&lt;BR /&gt;
&lt;BR /&gt;
    tftp get serverIP dummyFile.xsf&lt;BR /&gt;
&lt;BR /&gt;
if the tftp server is up, I get a reply very fast that the file is not available. But if the server is down the timeout for the tftp command is 60 seconds. It is very long in my application. I'd like to decrease it to 5-6 seconds. Is this possible?&lt;BR /&gt;
&lt;BR /&gt;
Is there any other method to find out if the server is up or not?&lt;BR /&gt;
&lt;BR /&gt;
EDIT:&lt;BR /&gt;
&lt;BR /&gt;
BTW, I've tried to ping the tFTP server but even when it's up I get this errPacket transmit error: Packet transmit error; Destination unreachable</description>
      <pubDate>Tue, 03 May 2016 00:00:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/how-can-i-modify-the-tftp-timeout/m-p/56846#M16708</guid>
      <dc:creator>Ali_Askari</dc:creator>
      <dc:date>2016-05-03T00:00:00Z</dc:date>
    </item>
    <item>
      <title>RE: How can I modify the tftp timeout?</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/how-can-i-modify-the-tftp-timeout/m-p/56847#M16709</link>
      <description>Hi Ali,&lt;BR /&gt;
&lt;BR /&gt;
When you try to ping the TFTP server, are you using vr-default or vr-mgmt? In EXOS 'ping' defaults to vr-default, while tftp defaults to 'vr-mgmt'. I would suggest specifying vr-mgmt when you ping to see if that gets what you want.&lt;BR /&gt;
&lt;BR /&gt;
ping vr vr-mgmt &lt;I&gt;&lt;BR /&gt;
-Brandon&lt;/I&gt;</description>
      <pubDate>Tue, 03 May 2016 00:38:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/how-can-i-modify-the-tftp-timeout/m-p/56847#M16709</guid>
      <dc:creator>BrandonC</dc:creator>
      <dc:date>2016-05-03T00:38:00Z</dc:date>
    </item>
    <item>
      <title>RE: How can I modify the tftp timeout?</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/how-can-i-modify-the-tftp-timeout/m-p/56848#M16710</link>
      <description>Thanks Brandon. It is working now. But the problem is that I'm running the tFTP server on a Windows machine and right now even if the server is not up I get a reply to ping requests. &lt;BR /&gt;
&lt;BR /&gt;
Can I modify the tFTP timeout?</description>
      <pubDate>Tue, 03 May 2016 00:38:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/how-can-i-modify-the-tftp-timeout/m-p/56848#M16710</guid>
      <dc:creator>Ali_Askari</dc:creator>
      <dc:date>2016-05-03T00:38:00Z</dc:date>
    </item>
    <item>
      <title>RE: How can I modify the tftp timeout?</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/how-can-i-modify-the-tftp-timeout/m-p/56849#M16711</link>
      <description>Hi Ali, currently there is no native CLI option to modify the TFTP timeout.&lt;BR /&gt;
&lt;BR /&gt;
An option would be creating a Python script to ping the server through MGMT vlan and only start the TFTP process if the server is up.&lt;BR /&gt;
&lt;BR /&gt;
However this script might need to be created from scratch.&lt;BR /&gt;
&lt;BR /&gt;
You can find some examples for Python scripts in the link below:&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="https://github.com/extremenetworks/ExtremeScripting/blob/master/EXOS/Python/README.md" target="_blank" rel="nofollow noreferrer noopener"&gt;EXOS Python Scripts&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Note: Python version 2.7.3 has been integrated into EXOS since EXOS 15.6.1</description>
      <pubDate>Tue, 03 May 2016 01:25:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/how-can-i-modify-the-tftp-timeout/m-p/56849#M16711</guid>
      <dc:creator>Henrique</dc:creator>
      <dc:date>2016-05-03T01:25:00Z</dc:date>
    </item>
    <item>
      <title>RE: How can I modify the tftp timeout?</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/how-can-i-modify-the-tftp-timeout/m-p/56850#M16712</link>
      <description>Hi Henrique, thanks for your comment. I can write the python script but as I've explained to&lt;B&gt;@Brandon&lt;/B&gt; my tFTP server is running on a Windows machine so if I ping the tFTP server and even if the server is not running I will get a reply to my ping requests, so ping is not useful in my case. &lt;BR /&gt;</description>
      <pubDate>Tue, 03 May 2016 01:25:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/how-can-i-modify-the-tftp-timeout/m-p/56850#M16712</guid>
      <dc:creator>Ali_Askari</dc:creator>
      <dc:date>2016-05-03T01:25:00Z</dc:date>
    </item>
    <item>
      <title>RE: How can I modify the tftp timeout?</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/how-can-i-modify-the-tftp-timeout/m-p/56851#M16713</link>
      <description>Using python you could use expect and the timeout option so it will fail if the command is not finished within that timeout.&lt;BR /&gt;
Something like below but then you need to extend that a bit.&lt;BR /&gt;
&lt;BR /&gt;
import pexpectimport exshexpect&lt;BR /&gt;
exosPrompt = ' # '&lt;BR /&gt;
Create an expect object. Pass in the prompt and the back end function to call:&lt;BR /&gt;
p = exshexpect.exshspawn(exosPrompt, exsh.clicmd)&lt;BR /&gt;
Use sendline to send commands to the backend function (in this case exsh.clicmd) :&lt;BR /&gt;
p.sendline('tftp get &lt;I&gt; &lt;DUMMYFILE&gt;') &amp;lt;-&lt;BR /&gt;
idx = p.expect([exosPrompt, pexpect.EOF, pexpect.TIMEOUT])&lt;BR /&gt;
&lt;BR /&gt;&lt;/DUMMYFILE&gt;&lt;/I&gt;</description>
      <pubDate>Tue, 03 May 2016 01:25:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/how-can-i-modify-the-tftp-timeout/m-p/56851#M16713</guid>
      <dc:creator>OscarK</dc:creator>
      <dc:date>2016-05-03T01:25:00Z</dc:date>
    </item>
    <item>
      <title>RE: How can I modify the tftp timeout?</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/how-can-i-modify-the-tftp-timeout/m-p/56852#M16714</link>
      <description>Can I ask why you are doing this from a switch and not a server? It seems to me that it is much easier to write a script to test your tftp server and then send out notification (syslog/email) if the tftp server fails and put it on a cronjob.  Or even use nmap/nping or udpping to verify that your tftp server is up. that way you don't actually have to transfer any files.</description>
      <pubDate>Tue, 03 May 2016 08:01:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/how-can-i-modify-the-tftp-timeout/m-p/56852#M16714</guid>
      <dc:creator>Matthew_Hum1</dc:creator>
      <dc:date>2016-05-03T08:01:00Z</dc:date>
    </item>
  </channel>
</rss>

