<?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: XMC script stops -&amp;gt; &amp;quot;Error: session exceeded timeout: 30 secs&amp;quot; in Scripting</title>
    <link>https://community.extremenetworks.com/t5/scripting/xmc-script-stops-gt-quot-error-session-exceeded-timeout-30-secs/m-p/70442#M406</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;  &lt;P&gt;I just found that Scripting forum!&lt;/P&gt;  &lt;P&gt;&amp;nbsp;&lt;/P&gt;  &lt;P&gt;If this is still a topic, I *think* the timeout you are setting (80) is for the CLI command, but there’s also a Script Timeout in XMC. You may need to tweak it also…&lt;/P&gt;  &lt;P&gt;There’s a key in the emc_vars dictionary for that (&lt;SPAN style="background-color:#f2f2f2;"&gt;&lt;SPAN style="background-color:#f2f2f2;"&gt;&lt;SPAN style="color:#000000;"&gt;scriptTimeout&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;).&lt;/P&gt;  &lt;P&gt;You can also add a session timeout in the code, like so:&lt;/P&gt;  &lt;P&gt;&amp;nbsp;&lt;/P&gt;  &lt;P&gt;&lt;SPAN style="color:#000000;"&gt;# update the session timeout in seconds&lt;/SPAN&gt;&lt;/P&gt;  &lt;P&gt;&lt;SPAN style="color:#000000;"&gt;emc_cli.setSessionTimeout(60)&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jun 2020 18:13:34 GMT</pubDate>
    <dc:creator>Stephane_Grosj1</dc:creator>
    <dc:date>2020-06-23T18:13:34Z</dc:date>
    <item>
      <title>XMC script stops -&gt; "Error: session exceeded timeout: 30 secs"</title>
      <link>https://community.extremenetworks.com/t5/scripting/xmc-script-stops-gt-quot-error-session-exceeded-timeout-30-secs/m-p/70439#M403</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; &lt;P&gt;I am running a XMC script to receive&amp;nbsp;the output of &lt;EM&gt;show config/sh run&amp;nbsp;&lt;/EM&gt;against different devices:&lt;/P&gt; &lt;P&gt;XOS, VSP, EOS (B-Series, S-Series, ...).&lt;/P&gt; &lt;P&gt;&amp;nbsp;&lt;/P&gt; &lt;BLOCKQUOTE&gt; &lt;P&gt;&amp;nbsp; &amp;nbsp; cli_result = emc_cli.send("sh config")&lt;BR /&gt; &amp;nbsp; &amp;nbsp; wfile(devname,cli_result.getOutput())&lt;/P&gt; &lt;/BLOCKQUOTE&gt; &lt;P&gt;&amp;nbsp;&lt;/P&gt; &lt;P&gt;It works fine except if I started the script with the S-Series. Whit S-Series I receive a&amp;nbsp;&lt;/P&gt; &lt;P&gt;&lt;EM&gt;"Error: session exceeded timeout: 30 secs"&lt;/EM&gt;&lt;/P&gt; &lt;P&gt;In difference to the other devices a “show conf” on CLI lasts more the 30 seconds (approximatly 55 seconds). I think thats the problem here.&lt;/P&gt; &lt;P&gt;I tried to cover that with a change to:&lt;/P&gt; &lt;BLOCKQUOTE&gt; &lt;P&gt;&amp;nbsp; &amp;nbsp; cli_result = emc_cli.send("sh config, True, 80")&lt;BR /&gt; &amp;nbsp; &amp;nbsp; wfile(devname,cli_result.getOutput())&lt;/P&gt; &lt;/BLOCKQUOTE&gt; &lt;P&gt;&amp;nbsp;&lt;/P&gt; &lt;P&gt;In my opinion this should lead the script to wait for 80 secondes for a response of the send commend.&lt;/P&gt; &lt;P&gt;But there is no difference. I receive the same error. The hole script timeout is larger than the 120 seconds and should not be a problem here.&lt;/P&gt; &lt;P&gt;My questions.&amp;nbsp;&lt;/P&gt; &lt;OL&gt;&lt;LI&gt; &lt;P&gt;Is it correct that a&amp;nbsp;&lt;EM&gt;emc_cli.send("sh config, True, 80") &lt;/EM&gt;leads the script to wait for 80 secondes for an answer?&lt;/P&gt; &lt;/LI&gt; &lt;LI&gt;Any ideas how to solve the problem?&lt;/LI&gt; &lt;/OL&gt;&lt;P&gt;Best regards&lt;/P&gt; &lt;P&gt;Stephan&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2020 15:16:35 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/scripting/xmc-script-stops-gt-quot-error-session-exceeded-timeout-30-secs/m-p/70439#M403</guid>
      <dc:creator>StephanH</dc:creator>
      <dc:date>2020-02-10T15:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: XMC script stops -&gt; "Error: session exceeded timeout: 30 secs"</title>
      <link>https://community.extremenetworks.com/t5/scripting/xmc-script-stops-gt-quot-error-session-exceeded-timeout-30-secs/m-p/70440#M404</link>
      <description>&lt;P&gt;Make sure that XMC can login correctly (without requiring user/password) to the S-Series; right click the device and run Terminal against it.&lt;/P&gt; &lt;P&gt;Another thing to consider is disabling more paging on the device, before you dump the config. XMC has a CLIrules.xml file to work out how to handle a more prompt per device type, but maybe it is getting mixed up on your S-series ? Best is to disable more paging on the device upfront, before executing and show commands.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2020 16:07:01 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/scripting/xmc-script-stops-gt-quot-error-session-exceeded-timeout-30-secs/m-p/70440#M404</guid>
      <dc:creator>Ludovico_Steven</dc:creator>
      <dc:date>2020-02-10T16:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: XMC script stops -&gt; "Error: session exceeded timeout: 30 secs"</title>
      <link>https://community.extremenetworks.com/t5/scripting/xmc-script-stops-gt-quot-error-session-exceeded-timeout-30-secs/m-p/70441#M405</link>
      <description>&lt;P&gt;Hello Ludovico,&lt;/P&gt; &lt;P&gt;thank you for your answer.&amp;nbsp;&lt;/P&gt; &lt;UL&gt;&lt;LI&gt;CLI paging is disabled (with &lt;EM&gt;“set length 0”&lt;/EM&gt;) and tested.&lt;/LI&gt; &lt;LI&gt;The access (user/pw) works fine to.&lt;/LI&gt; &lt;LI&gt;If I do a “show vlan” it works as expected.&lt;/LI&gt; &lt;/UL&gt;&lt;P&gt;This is why I think there is a relation&amp;nbsp;with time needed for the &lt;EM&gt;“show Config”&lt;/EM&gt; output.&lt;/P&gt; &lt;P&gt;Best regards&lt;/P&gt; &lt;P&gt;Stephan&lt;/P&gt; &lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2020 16:25:51 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/scripting/xmc-script-stops-gt-quot-error-session-exceeded-timeout-30-secs/m-p/70441#M405</guid>
      <dc:creator>StephanH</dc:creator>
      <dc:date>2020-02-10T16:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: XMC script stops -&gt; "Error: session exceeded timeout: 30 secs"</title>
      <link>https://community.extremenetworks.com/t5/scripting/xmc-script-stops-gt-quot-error-session-exceeded-timeout-30-secs/m-p/70442#M406</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;  &lt;P&gt;I just found that Scripting forum!&lt;/P&gt;  &lt;P&gt;&amp;nbsp;&lt;/P&gt;  &lt;P&gt;If this is still a topic, I *think* the timeout you are setting (80) is for the CLI command, but there’s also a Script Timeout in XMC. You may need to tweak it also…&lt;/P&gt;  &lt;P&gt;There’s a key in the emc_vars dictionary for that (&lt;SPAN style="background-color:#f2f2f2;"&gt;&lt;SPAN style="background-color:#f2f2f2;"&gt;&lt;SPAN style="color:#000000;"&gt;scriptTimeout&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;).&lt;/P&gt;  &lt;P&gt;You can also add a session timeout in the code, like so:&lt;/P&gt;  &lt;P&gt;&amp;nbsp;&lt;/P&gt;  &lt;P&gt;&lt;SPAN style="color:#000000;"&gt;# update the session timeout in seconds&lt;/SPAN&gt;&lt;/P&gt;  &lt;P&gt;&lt;SPAN style="color:#000000;"&gt;emc_cli.setSessionTimeout(60)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2020 18:13:34 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/scripting/xmc-script-stops-gt-quot-error-session-exceeded-timeout-30-secs/m-p/70442#M406</guid>
      <dc:creator>Stephane_Grosj1</dc:creator>
      <dc:date>2020-06-23T18:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: XMC script stops -&gt; "Error: session exceeded timeout: 30 secs"</title>
      <link>https://community.extremenetworks.com/t5/scripting/xmc-script-stops-gt-quot-error-session-exceeded-timeout-30-secs/m-p/70443#M407</link>
      <description>&lt;P&gt;Hello Stephane,&lt;/P&gt;  &lt;P&gt;yes it's still a topic but in another application. I will try your hints.&lt;/P&gt;  &lt;P&gt;My inital problem with S-Serie was caused by the small "buffer" in workflows. Therefore I can't read the hole config.&lt;/P&gt;  &lt;P&gt;Thank you very much.&lt;/P&gt;  &lt;P&gt;Stephan&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2020 03:31:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/scripting/xmc-script-stops-gt-quot-error-session-exceeded-timeout-30-secs/m-p/70443#M407</guid>
      <dc:creator>StephanH</dc:creator>
      <dc:date>2020-07-02T03:31:00Z</dc:date>
    </item>
  </channel>
</rss>

