<?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 How to provide a local file on your desktop as User-Input to a workflow: The Solution in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/How-to-provide-a-local-file-on-your-desktop-as-User-Input-to-a-workflow-The/m-p/121725#M21871</link>
    <description>&lt;P&gt;WFA should have an option for providing a local file as input to a workflow and the workflow can&lt;/P&gt;&lt;P&gt;can then fetch the file from the WFA client desktop computer and make it available to my Workflow to compute upon.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Why is this needed?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This can be needed in many cases like.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The workflow requires a file which is only available to the operator on his desktop.&lt;/LI&gt;&lt;LI&gt;I can't copy paste the contents of the local file into Workflow’s string User-Input because the content length is too large. This is also not an otption for file types like PDF, XL etc.&lt;/LI&gt;&lt;LI&gt;The WFA windows credentials are not available to the workflow executor to copy the file.&lt;/LI&gt;&lt;LI&gt;I have a binary file my local desktop which my workflow needs for execution.&lt;/LI&gt;&lt;LI&gt;I have WFA 'Operators' executing the workflows who have the files with them, I can't share WFA credentials for them to login and copy files.&lt;/LI&gt;&lt;LI&gt;I want the file to be provided when I want to execute the wokflow.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The Solution Logic:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you look I basically need a way to securely transfer a file present on my local desktop(windows/linux/mac) to the WFA server using the WFA's browser interface using the credentials only known to the one who owns the files.&amp;nbsp;So I can make use of windows WinSCP .net assemblies. And I can easily setup an sshd server on my desktop client machine. This is all I need and this is the very core-logic behind this solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a WFA command executing on my WFA server that can&amp;nbsp; remotely connect to my desktop using SCP/SFTP and pull/copy the given file from my desktop to a location on the WFA server.&amp;nbsp;The subsequent&amp;nbsp;commands in the workflow can now make use of this uploaded file as desired.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Prerequisites:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Prepare your&lt;/STRONG&gt; &lt;STRONG&gt;WFA server&lt;/STRONG&gt;. One time setup for your WFA server&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;You need &lt;EM&gt;&lt;FONT color="#008000"&gt;WinSCP .net&lt;/FONT&gt; assemblies&lt;/EM&gt;. There is a very useful wrapper written on top of the methods of WinSCP assembly. Download it from &lt;A href="http://dotps1.github.io/WinSCP/static/files/WinSCP.zip" target="_self"&gt;here&lt;/A&gt;.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Extract the WinSCP.zip file. This is the Module we need. Copy the folder WinSCP into WFA\POSH\Modules\ .&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;3, That's all, your WFA server is ready to connect to any desktop using SCP/SFTP/FTP.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Prepare your&lt;/STRONG&gt; &lt;STRONG&gt;desktop&lt;/STRONG&gt; from where you access the WFA using a browser. The desktop where you have the files you want to upload. One time setup.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;You need to install or setup SSHD or FTP server on your desktop and allow external access. I would recommend SSH as this is secure. SFTP can also be setup. How to set this up?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This step depends on the OS of your desktop.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Windows&lt;/STRONG&gt; : There are many SSH Servers available. &lt;EM&gt;WinSSHD, FreeSSHD, MobaSSH&lt;/EM&gt;. Install any one of these. You might have to modify firewall settings to allow incoming requests. Would recommend WinSSHD or&amp;nbsp;&lt;A href="https://winscp.net/eng/docs/guide_windows_openssh_server" target="_blank"&gt;OpenSSH for windows&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Linux, Ubuntu&lt;/STRONG&gt; : SSH server is available by default. So nothing needed to be done.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Mac&lt;/STRONG&gt; : You can use the step given &lt;A href="https://support.apple.com/kb/PH18726?locale=en_US" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once ready you should be able to login and access your Desktop using an SSH client like Putty, Bitwise SSH or the like. There are many. If you can't login, you need to get this step right before you proceed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's all. Now have a command in WFA which connects to your desktop and copy the files using SCP.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;An example solution.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Import the attached dar file&amp;nbsp;&lt;FONT color="#800080"&gt;&lt;EM&gt;WFA3_0_sinhaa__Workflow_to_upload_files_from_your_desktop_to_WFA_server_and_print__the_contents_.dar&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;The workflow is : Workflow to upload files from your desktop to WFA server and print&amp;nbsp; the contents. This workflow has 2 commands.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Upload a file to WFA server&lt;/LI&gt;&lt;LI&gt;Display contents of files in a given Directory&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;So my simple task is to print the contents of a file which I need to upload from my desktop using WFA by providing the file path as Input to the workflow during execution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The credentials are only known to the workflow executor who provides during workflow execution. And since the SSH server is running on his deskop, he can control/restrict the incoming requests as he desires.&amp;nbsp;So this is fairly secure and configurable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Alternate Solution for Windows Desktops&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If your requirement is only the contents of the file and not the file itself, then this can be done by enabling PS Remoting on your&amp;nbsp;WFA and your windows desktop. See the attached doc &lt;FONT color="#800080"&gt;Windows_desktop_file_contents_as_input.docx&lt;/FONT&gt; . Also attaching a sample workflow dar &lt;EM&gt;&lt;FONT color="#800080"&gt;WFA3_0P2_Workflow_to_Input_content_of_a_desktop_file_to_WFA_sinhaa.dar&lt;/FONT&gt;&lt;/EM&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 19:48:48 GMT</pubDate>
    <dc:creator>sinhaa</dc:creator>
    <dc:date>2025-06-04T19:48:48Z</dc:date>
    <item>
      <title>How to provide a local file on your desktop as User-Input to a workflow: The Solution</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/How-to-provide-a-local-file-on-your-desktop-as-User-Input-to-a-workflow-The/m-p/121725#M21871</link>
      <description>&lt;P&gt;WFA should have an option for providing a local file as input to a workflow and the workflow can&lt;/P&gt;&lt;P&gt;can then fetch the file from the WFA client desktop computer and make it available to my Workflow to compute upon.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Why is this needed?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This can be needed in many cases like.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The workflow requires a file which is only available to the operator on his desktop.&lt;/LI&gt;&lt;LI&gt;I can't copy paste the contents of the local file into Workflow’s string User-Input because the content length is too large. This is also not an otption for file types like PDF, XL etc.&lt;/LI&gt;&lt;LI&gt;The WFA windows credentials are not available to the workflow executor to copy the file.&lt;/LI&gt;&lt;LI&gt;I have a binary file my local desktop which my workflow needs for execution.&lt;/LI&gt;&lt;LI&gt;I have WFA 'Operators' executing the workflows who have the files with them, I can't share WFA credentials for them to login and copy files.&lt;/LI&gt;&lt;LI&gt;I want the file to be provided when I want to execute the wokflow.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The Solution Logic:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you look I basically need a way to securely transfer a file present on my local desktop(windows/linux/mac) to the WFA server using the WFA's browser interface using the credentials only known to the one who owns the files.&amp;nbsp;So I can make use of windows WinSCP .net assemblies. And I can easily setup an sshd server on my desktop client machine. This is all I need and this is the very core-logic behind this solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a WFA command executing on my WFA server that can&amp;nbsp; remotely connect to my desktop using SCP/SFTP and pull/copy the given file from my desktop to a location on the WFA server.&amp;nbsp;The subsequent&amp;nbsp;commands in the workflow can now make use of this uploaded file as desired.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Prerequisites:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Prepare your&lt;/STRONG&gt; &lt;STRONG&gt;WFA server&lt;/STRONG&gt;. One time setup for your WFA server&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;You need &lt;EM&gt;&lt;FONT color="#008000"&gt;WinSCP .net&lt;/FONT&gt; assemblies&lt;/EM&gt;. There is a very useful wrapper written on top of the methods of WinSCP assembly. Download it from &lt;A href="http://dotps1.github.io/WinSCP/static/files/WinSCP.zip" target="_self"&gt;here&lt;/A&gt;.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Extract the WinSCP.zip file. This is the Module we need. Copy the folder WinSCP into WFA\POSH\Modules\ .&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;3, That's all, your WFA server is ready to connect to any desktop using SCP/SFTP/FTP.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Prepare your&lt;/STRONG&gt; &lt;STRONG&gt;desktop&lt;/STRONG&gt; from where you access the WFA using a browser. The desktop where you have the files you want to upload. One time setup.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;You need to install or setup SSHD or FTP server on your desktop and allow external access. I would recommend SSH as this is secure. SFTP can also be setup. How to set this up?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This step depends on the OS of your desktop.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Windows&lt;/STRONG&gt; : There are many SSH Servers available. &lt;EM&gt;WinSSHD, FreeSSHD, MobaSSH&lt;/EM&gt;. Install any one of these. You might have to modify firewall settings to allow incoming requests. Would recommend WinSSHD or&amp;nbsp;&lt;A href="https://winscp.net/eng/docs/guide_windows_openssh_server" target="_blank"&gt;OpenSSH for windows&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Linux, Ubuntu&lt;/STRONG&gt; : SSH server is available by default. So nothing needed to be done.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Mac&lt;/STRONG&gt; : You can use the step given &lt;A href="https://support.apple.com/kb/PH18726?locale=en_US" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once ready you should be able to login and access your Desktop using an SSH client like Putty, Bitwise SSH or the like. There are many. If you can't login, you need to get this step right before you proceed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's all. Now have a command in WFA which connects to your desktop and copy the files using SCP.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;An example solution.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Import the attached dar file&amp;nbsp;&lt;FONT color="#800080"&gt;&lt;EM&gt;WFA3_0_sinhaa__Workflow_to_upload_files_from_your_desktop_to_WFA_server_and_print__the_contents_.dar&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;The workflow is : Workflow to upload files from your desktop to WFA server and print&amp;nbsp; the contents. This workflow has 2 commands.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Upload a file to WFA server&lt;/LI&gt;&lt;LI&gt;Display contents of files in a given Directory&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;So my simple task is to print the contents of a file which I need to upload from my desktop using WFA by providing the file path as Input to the workflow during execution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The credentials are only known to the workflow executor who provides during workflow execution. And since the SSH server is running on his deskop, he can control/restrict the incoming requests as he desires.&amp;nbsp;So this is fairly secure and configurable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Alternate Solution for Windows Desktops&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If your requirement is only the contents of the file and not the file itself, then this can be done by enabling PS Remoting on your&amp;nbsp;WFA and your windows desktop. See the attached doc &lt;FONT color="#800080"&gt;Windows_desktop_file_contents_as_input.docx&lt;/FONT&gt; . Also attaching a sample workflow dar &lt;EM&gt;&lt;FONT color="#800080"&gt;WFA3_0P2_Workflow_to_Input_content_of_a_desktop_file_to_WFA_sinhaa.dar&lt;/FONT&gt;&lt;/EM&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 19:48:48 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/How-to-provide-a-local-file-on-your-desktop-as-User-Input-to-a-workflow-The/m-p/121725#M21871</guid>
      <dc:creator>sinhaa</dc:creator>
      <dc:date>2025-06-04T19:48:48Z</dc:date>
    </item>
  </channel>
</rss>

