<?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: When using the &amp;quot;-controller&amp;quot; option with commands such as get-navol I get &amp;quot;Get-NaVol : API invoke failed.&amp;quot; in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/When-using-the-quot-controller-quot-option-with-commands-such-as-get-navol-I-get/m-p/59043#M2915</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I work with many controllers, I generally put the controller objects in an array, then work with the array.&amp;nbsp; You can find an example here: &lt;A _jive_internal="true" href="https://community.netapp.com/docs/DOC-6293" target="_blank"&gt;http://communities.netapp.com/docs/DOC-6293&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;J&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Oct 2010 19:18:57 GMT</pubDate>
    <dc:creator>fjohn</dc:creator>
    <dc:date>2010-10-06T19:18:57Z</dc:date>
    <item>
      <title>When using the "-controller" option with commands such as get-navol I get "Get-NaVol : API invoke failed."</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/When-using-the-quot-controller-quot-option-with-commands-such-as-get-navol-I-get/m-p/59038#M2914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any thoughts on this? I'm doing scripting for a lab environment, and using connect-nacontroller in the script works until I get halfway through the 150 or so flexclones I'm creating, and then I get errors stating that&amp;nbsp; the variable stored globally (I can't remember what it is, but I think it's $global:nacontroller) is not of type "netapp controller" (again, I don't remember the actual wording here, sorry). I'm open to any suggestions that may help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 07:07:37 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/When-using-the-quot-controller-quot-option-with-commands-such-as-get-navol-I-get/m-p/59038#M2914</guid>
      <dc:creator>ryanf123</dc:creator>
      <dc:date>2025-06-05T07:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: When using the "-controller" option with commands such as get-navol I get "Get-NaVol : API invoke failed."</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/When-using-the-quot-controller-quot-option-with-commands-such-as-get-navol-I-get/m-p/59043#M2915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I work with many controllers, I generally put the controller objects in an array, then work with the array.&amp;nbsp; You can find an example here: &lt;A _jive_internal="true" href="https://community.netapp.com/docs/DOC-6293" target="_blank"&gt;http://communities.netapp.com/docs/DOC-6293&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;J&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Oct 2010 19:18:57 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/When-using-the-quot-controller-quot-option-with-commands-such-as-get-navol-I-get/m-p/59043#M2915</guid>
      <dc:creator>fjohn</dc:creator>
      <dc:date>2010-10-06T19:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: When using the "-controller" option with commands such as get-navol I get "Get-NaVol : API invoke failed."</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/When-using-the-quot-controller-quot-option-with-commands-such-as-get-navol-I-get/m-p/59049#M2917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The "-controller" parameter is expecting an object of type NetApp.Ontapi.Filer.NaController, not of type System.String.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a result, the code below is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$netappCred = Get-Credential -Credential "root"&lt;BR /&gt;$controller = Connect-NaController -Name "filername" -Credential $netappCred&lt;BR /&gt;$vols = Get-NaVol &lt;SPAN style="color: #ff0000;"&gt;-Controller $controller&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code below here, is incorrect&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$netappCred = Get-Credential -Credential "root"&lt;BR /&gt;$controller = Connect-NaController -Name "filername" -Credential $netappCred&lt;BR /&gt;$vols = Get-NaVol &lt;SPAN style="color: #ff0000;"&gt;-Controller "filername"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bill&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Oct 2010 18:06:30 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/When-using-the-quot-controller-quot-option-with-commands-such-as-get-navol-I-get/m-p/59049#M2917</guid>
      <dc:creator>paleon</dc:creator>
      <dc:date>2010-10-07T18:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: When using the "-controller" option with commands such as get-navol I get "Get-NaVol : API invoke failed."</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/When-using-the-quot-controller-quot-option-with-commands-such-as-get-navol-I-get/m-p/59056#M2920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After choosing the array route, I now am getting RPC server unavailable errors. Any thoughts? This also occurs when I try to use connect-nacontroller directly from PS. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Oct 2010 20:02:12 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/When-using-the-quot-controller-quot-option-with-commands-such-as-get-navol-I-get/m-p/59056#M2920</guid>
      <dc:creator>ryanf123</dc:creator>
      <dc:date>2010-10-11T20:02:12Z</dc:date>
    </item>
  </channel>
</rss>

