<?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 Writing WFA commands to invoke existing Perl scripts in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Writing-WFA-commands-to-invoke-existing-Perl-scripts/m-p/11531#M2343</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm considering various WFA design options for a customer. Over several years this customer has developed a number of Perl scripts which perform functions (provisioning volumes, qtrees, exports, security, etc.). We now want to bring the functionality of those scripts into the WFA environment. One approach would be to clone copies of these Perl scripts and bring them into the WFA environment as WFA Perl commands by re-factoring the code with WFA parameter definitions up front and then invoke them through WFA workflows as normal WFA Perl commands. An alternative approach would be to just write new small wrapper WFA commands in Perl and have these new WFA commands call/invoke the existing Perl scripts as they stand without modification. This seems the more modular and hence preferred option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, these scripts request user input values by asking questions and receiving user input via STDIN (I haven't looked at code yet but I have seen documentation describing such). I'm wondering if anyone here can advise if invoking and controlling these scripts will be possible within the context of a WFA Perl command. I believe in a normal UNIX/Perl environment the solution to this issue would be to use the Expect tool to invoke the Perl script as a sub-process and pass parameters using Expect mechanisms. Is that same, or similar, capability possible inside a WFA Perl command? Is Expect built in or would that have to be downloaded and installed to the WFA server? Are there special instructions for installing Perl modules on the WFA server so they are available to the WFA Perl command environment?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jun 2025 05:33:51 GMT</pubDate>
    <dc:creator>korns</dc:creator>
    <dc:date>2025-06-05T05:33:51Z</dc:date>
    <item>
      <title>Writing WFA commands to invoke existing Perl scripts</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Writing-WFA-commands-to-invoke-existing-Perl-scripts/m-p/11531#M2343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm considering various WFA design options for a customer. Over several years this customer has developed a number of Perl scripts which perform functions (provisioning volumes, qtrees, exports, security, etc.). We now want to bring the functionality of those scripts into the WFA environment. One approach would be to clone copies of these Perl scripts and bring them into the WFA environment as WFA Perl commands by re-factoring the code with WFA parameter definitions up front and then invoke them through WFA workflows as normal WFA Perl commands. An alternative approach would be to just write new small wrapper WFA commands in Perl and have these new WFA commands call/invoke the existing Perl scripts as they stand without modification. This seems the more modular and hence preferred option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, these scripts request user input values by asking questions and receiving user input via STDIN (I haven't looked at code yet but I have seen documentation describing such). I'm wondering if anyone here can advise if invoking and controlling these scripts will be possible within the context of a WFA Perl command. I believe in a normal UNIX/Perl environment the solution to this issue would be to use the Expect tool to invoke the Perl script as a sub-process and pass parameters using Expect mechanisms. Is that same, or similar, capability possible inside a WFA Perl command? Is Expect built in or would that have to be downloaded and installed to the WFA server? Are there special instructions for installing Perl modules on the WFA server so they are available to the WFA Perl command environment?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 05:33:51 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Writing-WFA-commands-to-invoke-existing-Perl-scripts/m-p/11531#M2343</guid>
      <dc:creator>korns</dc:creator>
      <dc:date>2025-06-05T05:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: Writing WFA commands to invoke existing Perl scripts</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Writing-WFA-commands-to-invoke-existing-Perl-scripts/m-p/11535#M2346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@&lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; font-size: 12.727272033691406px; background-color: #ffffff;"&gt;However, these scripts request user input values by asking questions and receiving user input via STDIN &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; font-size: 12.727272033691406px; background-color: #ffffff;"&gt;===&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; font-size: 12.727272033691406px; background-color: #ffffff;"&gt;WFA runs in non-interactive mode. So an interactive session of user-inputs is not possible.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; font-size: 12.727272033691406px; background-color: #ffffff;"&gt;@&lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; font-size: 12.727272033691406px; background-color: #ffffff;"&gt;I'm wondering if anyone here can advise if invoking and controlling these scripts will be possible within the context of a WFA Perl command. I believe in a normal UNIX/Perl environment the solution to this issue would be to use the Expect tool to invoke the Perl script as a sub-process and pass parameters using Expect mechanisms.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #454545; font-size: 12.727272033691406px; background-color: #ffffff; font-family: Arial, Helvetica, Verdana, sans-serif;"&gt;===&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #454545; font-size: 12.727272033691406px; background-color: #ffffff; font-family: Arial, Helvetica, Verdana, sans-serif;"&gt;Looks definitely possible, but let me try it once to confirm this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #454545; font-size: 12.727272033691406px; background-color: #ffffff; font-family: Arial, Helvetica, Verdana, sans-serif;"&gt;@&lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; font-size: 12.727272033691406px; background-color: #ffffff;"&gt;Is Expect built in or would that have to be downloaded and installed to the WFA server? &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #454545; font-size: 12.727272033691406px; background-color: #ffffff; font-family: Arial, Helvetica, Verdana, sans-serif;"&gt;=====&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #454545; font-size: 12.727272033691406px; background-color: #ffffff; font-family: Arial, Helvetica, Verdana, sans-serif;"&gt;Expect module is not provided with WFA package, you need to get it from CPAN or some other source.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #454545; font-size: 12.727272033691406px; background-color: #ffffff; font-family: Arial, Helvetica, Verdana, sans-serif;"&gt;@&lt;SPAN style="color: #454545; font-family: Arial, Helvetica, Verdana, sans-serif; font-size: 12.727272033691406px; background-color: #ffffff;"&gt;Are there special instructions for installing Perl modules on the WFA server so they are available to the WFA Perl command environment?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #454545; font-size: 12.727272033691406px; background-color: #ffffff; font-family: Arial, Helvetica, Verdana, sans-serif;"&gt;====&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #454545; font-size: 12.727272033691406px; background-color: #ffffff; font-family: Arial, Helvetica, Verdana, sans-serif;"&gt;Not absolutely certain but I don't think there are any special instructions. Downloading and Installing modules with Active Perl via ppm would have been very easy but WFA doesn't bundle the ppm. So either you need to download it manually and install it or use another perl like strawberry perl who provide cpan package manager.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 04:19:02 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Writing-WFA-commands-to-invoke-existing-Perl-scripts/m-p/11535#M2346</guid>
      <dc:creator>sinhaa</dc:creator>
      <dc:date>2014-06-25T04:19:02Z</dc:date>
    </item>
  </channel>
</rss>

