<?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: Workflow with interaction to load a file in Scripting</title>
    <link>https://community.extremenetworks.com/t5/scripting/workflow-with-interaction-to-load-a-file/m-p/82132#M486</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An excellent suggestion!&lt;/P&gt;</description>
    <pubDate>Wed, 24 Feb 2021 13:56:03 GMT</pubDate>
    <dc:creator>BeatriceFleming</dc:creator>
    <dc:date>2021-02-24T13:56:03Z</dc:date>
    <item>
      <title>Workflow with interaction to load a file</title>
      <link>https://community.extremenetworks.com/t5/scripting/workflow-with-interaction-to-load-a-file/m-p/82126#M480</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know if it is possible to make an interactive workflow where we can load a file available on my computer?&lt;/P&gt;&lt;P&gt;The purpose is to provide reference data to the workflow to provision static channels 2.4GHz/5GHz on APs.&lt;/P&gt;&lt;P&gt;The APs are adopted by an XCC and the XCC is integrated with XMC&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mig&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 21:07:12 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/scripting/workflow-with-interaction-to-load-a-file/m-p/82126#M480</guid>
      <dc:creator>Miguel-Angel_RO</dc:creator>
      <dc:date>2020-10-14T21:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow with interaction to load a file</title>
      <link>https://community.extremenetworks.com/t5/scripting/workflow-with-interaction-to-load-a-file/m-p/82127#M481</link>
      <description>&lt;P&gt;Hello Mig,&lt;/P&gt;&lt;P&gt;can you explain “interactive” in more detail?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does the file have to be on your PC or can you copy the file e.g. to a shared Windows folder which can be integrated into the XMC?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Stephan&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 21:22:39 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/scripting/workflow-with-interaction-to-load-a-file/m-p/82127#M481</guid>
      <dc:creator>StephanH</dc:creator>
      <dc:date>2020-10-14T21:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow with interaction to load a file</title>
      <link>https://community.extremenetworks.com/t5/scripting/workflow-with-interaction-to-load-a-file/m-p/82128#M482</link>
      <description>&lt;P&gt;Stephan,&lt;/P&gt;&lt;P&gt;Ideally I would start the workflow and upload via a menu the file located on my PC.&lt;/P&gt;&lt;P&gt;If not possible I can upload the file to the XMC server and reference it from the workflow but I would like to avoid this solution.&lt;/P&gt;&lt;P&gt;My goal is to give access to this workflow to a customer and it can be difficult to explain the process to upload and rename a file on the XMC server &lt;span class="lia-inline-image-display-wrapper" image-alt="5325433ed0ac42b48912a79505d2e33f_1f913.png"&gt;&lt;img src="https://community.extremenetworks.com/t5/image/serverpage/image-id/4067iD8F6636B4681E032/image-size/large?v=v2&amp;amp;px=999" role="button" title="5325433ed0ac42b48912a79505d2e33f_1f913.png" alt="5325433ed0ac42b48912a79505d2e33f_1f913.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mig&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 21:35:26 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/scripting/workflow-with-interaction-to-load-a-file/m-p/82128#M482</guid>
      <dc:creator>Miguel-Angel_RO</dc:creator>
      <dc:date>2020-10-14T21:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow with interaction to load a file</title>
      <link>https://community.extremenetworks.com/t5/scripting/workflow-with-interaction-to-load-a-file/m-p/82129#M483</link>
      <description>&lt;P&gt;Hello Mig,&lt;/P&gt;&lt;P&gt;as far as I know there is no possibility to download a file from your PC. I would like that, too &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; (&lt;/P&gt;&lt;P&gt;I would have some use cases). As far as I know, you cannot make any manual changes in the workflow at runtime.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe one of the Extreme guys can tell us more.&lt;/P&gt;&lt;P&gt;You can pass parameters when starting the workflow, this can also be done via a "GUI" in which you can enter paths or make a selection from a dropdown defined in the workflow.&lt;/P&gt;&lt;P&gt;To bring the file to the workflow I see only three possibilities.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;You use the HTTP-activity (own block directly in the workflow) to load a file from a webserver.&lt;/LI&gt;	&lt;LI&gt;You load the file directly into the XMC/Ubuntu file system&amp;nbsp;(with WinSCP etc.)&lt;/LI&gt;	&lt;LI&gt;You have to put the file on some share and then mount&amp;nbsp;this share to the filesystem of the Ubuntu&amp;nbsp;under the XMC. This could even work with the parameter passing at the start of the workflow. For example, you ask the user for the IP, share name and password when starting the workflow, read the three values into variables and mount the share at runtime based on these&amp;nbsp;data. But I have not tried this yet. But it would be exciting ;-).&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Stephan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 21:58:35 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/scripting/workflow-with-interaction-to-load-a-file/m-p/82129#M483</guid>
      <dc:creator>StephanH</dc:creator>
      <dc:date>2020-10-14T21:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow with interaction to load a file</title>
      <link>https://community.extremenetworks.com/t5/scripting/workflow-with-interaction-to-load-a-file/m-p/82130#M484</link>
      <description>&lt;P&gt;Hello, Mig,&lt;/P&gt;&lt;P&gt;another idea.&amp;nbsp;If your customer has an FTP server, e.g. maybe&amp;nbsp;directly on his PC, this would be a possibility. That could look like this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;FIGURE&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="9fcf72d332484dbfa074890f35ddfb26_41ddc72d-a4d8-4858-ae1a-a7fc19973935.png"&gt;&lt;img src="https://community.extremenetworks.com/t5/image/serverpage/image-id/5140i3AE94C4D3C1FD130/image-size/large?v=v2&amp;amp;px=999" role="button" title="9fcf72d332484dbfa074890f35ddfb26_41ddc72d-a4d8-4858-ae1a-a7fc19973935.png" alt="9fcf72d332484dbfa074890f35ddfb26_41ddc72d-a4d8-4858-ae1a-a7fc19973935.png" /&gt;&lt;/span&gt;&lt;/FIGURE&gt;&lt;P&gt;&lt;BR /&gt;I used "Script" as activity and not "Shell" because it makes it easier to handle variables. Of course you could also execute the command directly with the "Shell" activity. However, I don't know how to use variables here in an&amp;nbsp;easiest way.&lt;/P&gt;&lt;P&gt;With the "Script" it is easy. So you can query the path, filename etc. from the user without problems as suggested above when starting the workflow. Of course you can also use any other transfer method (TFTP, SSH,...) that Linux offers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Stephan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL start="16" type="A"&gt;&lt;LI&gt;S. yes I know commands&amp;nbsp; is “deprecated” since version 2.6. But XMC uses a the quite&amp;nbsp;old&amp;nbsp;Jython, so it doesn’t matter ;-).&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Thu, 15 Oct 2020 00:24:13 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/scripting/workflow-with-interaction-to-load-a-file/m-p/82130#M484</guid>
      <dc:creator>StephanH</dc:creator>
      <dc:date>2020-10-15T00:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow with interaction to load a file</title>
      <link>https://community.extremenetworks.com/t5/scripting/workflow-with-interaction-to-load-a-file/m-p/82131#M485</link>
      <description>&lt;P&gt;Stephan,&lt;/P&gt;&lt;P&gt;I was thinking on it&amp;nbsp; and the workflows are there for automation, meaning background task...so it shouldn’t be interactive.&lt;/P&gt;&lt;P&gt;I’ll use a python script for the interactivity, we can define variables and I will try with a cpoy/paste of the txt file in it.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mig&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2020 00:29:48 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/scripting/workflow-with-interaction-to-load-a-file/m-p/82131#M485</guid>
      <dc:creator>Miguel-Angel_RO</dc:creator>
      <dc:date>2020-10-15T00:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow with interaction to load a file</title>
      <link>https://community.extremenetworks.com/t5/scripting/workflow-with-interaction-to-load-a-file/m-p/82132#M486</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An excellent suggestion!&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2021 13:56:03 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/scripting/workflow-with-interaction-to-load-a-file/m-p/82132#M486</guid>
      <dc:creator>BeatriceFleming</dc:creator>
      <dc:date>2021-02-24T13:56:03Z</dc:date>
    </item>
  </channel>
</rss>

