<?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: Help creating expect script for manifest upload in Community and Online Support Services</title>
    <link>https://community.ruckuswireless.com/t5/Community-and-Online-Support/Help-creating-expect-script-for-manifest-upload/m-p/42533#M1677</link>
    <description>Try to modify like below.&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;expect {&amp;nbsp;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;-ex "y*n" {&amp;nbsp;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;send "y/r" &lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; exp_continue&amp;nbsp;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; } $config_prompt {&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; } $prompt {&amp;nbsp;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;}&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;That means if you met 'yes or no' then type y and enter.&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;And retrun to expect top(the expect {}).&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;In breief, the expect loop is used at mutiple condition.&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;1) yes or no is y enter&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;2) if you met 1), retrun to first again,&amp;nbsp;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;3) If you don;t met 1), proceed next condition ; $config_prompt {} -&amp;gt; $prompt {}.&lt;BR /&gt;&lt;BR /&gt;And next continously....</description>
    <pubDate>Thu, 20 Jun 2019 02:52:31 GMT</pubDate>
    <dc:creator>hyosang_choi</dc:creator>
    <dc:date>2019-06-20T02:52:31Z</dc:date>
    <item>
      <title>Help creating expect script for manifest upload</title>
      <link>https://community.ruckuswireless.com/t5/Community-and-Online-Support/Help-creating-expect-script-for-manifest-upload/m-p/42531#M1675</link>
      <description>Looking to create a command script in HPNA to automate manifest upload via tftp server to multiple devices. &lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;I found an expect script on HPNA (below) which i modified a bit (ip, manifest file name) but executing it results in it hanging on the "Please type 'yes' or 'no':" prompt after the copy tftp command.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Appreciate any feedback on how to correct this please.&amp;nbsp;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;again, this is not my work, just trying to understand how it's working to fine tune it for this purpose.&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;A alt="" href="https://github.com/Lynkdev/Expect-learning/tree/master/Ruckus" name="" rel="nofollow" target="" title="Link httpsgithubcomLynkdevExpect-learningtreemasterRuckus" type="" value=""&gt;https://github.com/Lynkdev/Expect-learning/tree/master/Ruckus&lt;/A&gt; &lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;</description>
      <pubDate>Wed, 19 Jun 2019 23:14:55 GMT</pubDate>
      <guid>https://community.ruckuswireless.com/t5/Community-and-Online-Support/Help-creating-expect-script-for-manifest-upload/m-p/42531#M1675</guid>
      <dc:creator>eric_iannone_77</dc:creator>
      <dc:date>2019-06-19T23:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: Help creating expect script for manifest upload</title>
      <link>https://community.ruckuswireless.com/t5/Community-and-Online-Support/Help-creating-expect-script-for-manifest-upload/m-p/42532#M1676</link>
      <description>I'm not shell script expert, but I think the main reason below is blank.&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;EXPRESSION&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;send "copy tftp system-manifest *.*.*.* FI08070e_Manifest.txt all-images-secondary\r"&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;set more true&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;expect { &lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;-ex "$more_prompt" { &lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;send " "    exp_continue &lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; } $config_prompt {&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; } $prompt { &lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;}&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BLANK&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;$config_prompt {&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; } $prompt {&amp;nbsp;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;That means if you met $config_prompt, then do nothing({}), and if you met $prompt, then also do nothing({}).&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;Try to modify and test.&lt;/BLANK&gt;&lt;/EXPRESSION&gt;</description>
      <pubDate>Thu, 20 Jun 2019 02:37:44 GMT</pubDate>
      <guid>https://community.ruckuswireless.com/t5/Community-and-Online-Support/Help-creating-expect-script-for-manifest-upload/m-p/42532#M1676</guid>
      <dc:creator>hyosang_choi</dc:creator>
      <dc:date>2019-06-20T02:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: Help creating expect script for manifest upload</title>
      <link>https://community.ruckuswireless.com/t5/Community-and-Online-Support/Help-creating-expect-script-for-manifest-upload/m-p/42533#M1677</link>
      <description>Try to modify like below.&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;expect {&amp;nbsp;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;-ex "y*n" {&amp;nbsp;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;send "y/r" &lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; exp_continue&amp;nbsp;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; } $config_prompt {&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; } $prompt {&amp;nbsp;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;}&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;That means if you met 'yes or no' then type y and enter.&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;And retrun to expect top(the expect {}).&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;In breief, the expect loop is used at mutiple condition.&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;1) yes or no is y enter&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;2) if you met 1), retrun to first again,&amp;nbsp;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;3) If you don;t met 1), proceed next condition ; $config_prompt {} -&amp;gt; $prompt {}.&lt;BR /&gt;&lt;BR /&gt;And next continously....</description>
      <pubDate>Thu, 20 Jun 2019 02:52:31 GMT</pubDate>
      <guid>https://community.ruckuswireless.com/t5/Community-and-Online-Support/Help-creating-expect-script-for-manifest-upload/m-p/42533#M1677</guid>
      <dc:creator>hyosang_choi</dc:creator>
      <dc:date>2019-06-20T02:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: Help creating expect script for manifest upload</title>
      <link>https://community.ruckuswireless.com/t5/Community-and-Online-Support/Help-creating-expect-script-for-manifest-upload/m-p/42534#M1678</link>
      <description>Thanks for the reply. This does make sense and I tried running with below changes:&amp;nbsp;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;I removed $config_prompt as this is being run through enable mode, it's set as unknown anyways. Is this correct?&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;send "copy tftp system-manifest *.*.*.* FI08070e_Manifest.txt all-images-secondary\r"&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;set more true&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;expect { &lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp;-ex "y*n" { &lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp;send "y\r" &lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp;exp_continue &lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp;} $prompt { &lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp;}&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;}&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;Posted full results from the output below. I also noticed that after running this command script, it takes about two minutes just to show the send "copy tftp" command in the log output as it's running.&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;A alt="" href="https://github.com/Lynkdev/Expect-learning/blob/master/Ruckus/Results%20from%20Expect%20script" name="" rel="nofollow" target="" title="" type="" value=""&gt;https://github.com/Lynkdev/Expect-learning/blob/master/Ruckus/Results%20from%20Expect%20script&lt;/A&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;Not sure what the&amp;nbsp;# check for previous logout portion of the script is doing towards the bottom, is this needed?&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;</description>
      <pubDate>Thu, 20 Jun 2019 17:10:43 GMT</pubDate>
      <guid>https://community.ruckuswireless.com/t5/Community-and-Online-Support/Help-creating-expect-script-for-manifest-upload/m-p/42534#M1678</guid>
      <dc:creator>eric_iannone_77</dc:creator>
      <dc:date>2019-06-20T17:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: Help creating expect script for manifest upload</title>
      <link>https://community.ruckuswireless.com/t5/Community-and-Online-Support/Help-creating-expect-script-for-manifest-upload/m-p/42535#M1679</link>
      <description>Thanks for the reply. This does make sense and I tried running with below changes:&amp;nbsp;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;I removed $config_prompt as this is being run through enable mode, it's set as unknown anyways. Is this correct?&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;send "copy tftp system-manifest *.*.*.* FI08070e_Manifest.txt all-images-secondary\r"&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;set more true&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;expect {&amp;nbsp;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp;-ex "y*n" {&amp;nbsp;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp;send "y\r"&amp;nbsp;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp;exp_continue&amp;nbsp;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp;} $prompt {&amp;nbsp;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&amp;nbsp;}&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;}&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;Posted full results from the output below. I also noticed that after running this command script, it takes about two minutes just to show the send "copy tftp" command in the log output as it's running.&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;A alt="" href="https://github.com/Lynkdev/Expect-learning/blob/master/Ruckus/Results%20from%20Expect%20script" name="" rel="nofollow" target="" title="" type="" value=""&gt;https://github.com/Lynkdev/Expect-learning/blob/master/Ruckus/Results%20from%20Expect%20script&lt;/A&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;Not sure what the&amp;nbsp;# check for previous logout portion of the script is doing towards the bottom, is this needed?&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;&lt;BR alt="" name="" rel="" target="" title="" type="" value="" /&gt;</description>
      <pubDate>Fri, 21 Jun 2019 07:37:20 GMT</pubDate>
      <guid>https://community.ruckuswireless.com/t5/Community-and-Online-Support/Help-creating-expect-script-for-manifest-upload/m-p/42535#M1679</guid>
      <dc:creator>eric_iannone_77</dc:creator>
      <dc:date>2019-06-21T07:37:20Z</dc:date>
    </item>
  </channel>
</rss>

