<?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: Getting API errors with a couple of cmdlets in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Getting-API-errors-with-a-couple-of-cmdlets/m-p/29399#M1337</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you may connect (via RPC or HTTP) to any number of controllers in a script, saving the result of each connection in a variable.&amp;nbsp; Then just pass the variable as the argument of -Controller in any of the Toolkit's cmdlets.&amp;nbsp; It's common to operate with multiple systems when dealing with clusters, SnapMirror, SnapVault, etc.&amp;nbsp; Some of the &lt;A _jive_internal="true" href="https://community.netapp.com/docs/DOC-6246" target="_blank"&gt;example&lt;/A&gt; scripts posted here by others show this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clinton&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Jun 2010 19:21:49 GMT</pubDate>
    <dc:creator>cknight</dc:creator>
    <dc:date>2010-06-18T19:21:49Z</dc:date>
    <item>
      <title>Getting API errors with a couple of cmdlets</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Getting-API-errors-with-a-couple-of-cmdlets/m-p/29375#M1332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having trouble mapping and unmapping luns with PowerShell. When I try I get an API error. Is there a minimum version of DataONTAP that is required for these cmdlets to work with? Right now I'm on 7.3.1.1 with plans to go to 7.3.3.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 07:13:21 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Getting-API-errors-with-a-couple-of-cmdlets/m-p/29375#M1332</guid>
      <dc:creator>lallin</dc:creator>
      <dc:date>2025-06-05T07:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: Getting API errors with a couple of cmdlets</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Getting-API-errors-with-a-couple-of-cmdlets/m-p/29380#M1333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, lallin.&amp;nbsp; The lun-map and lun-unmap APIs have been around a long time, so that shouldn't be a problem.&amp;nbsp; FWIW, I have done most of my Toolkit development / testing on 7.3.3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you'll send along the cmdlet invocation snippet and error details, we can look more closely.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clinton&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jun 2010 22:08:29 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Getting-API-errors-with-a-couple-of-cmdlets/m-p/29380#M1333</guid>
      <dc:creator>cknight</dc:creator>
      <dc:date>2010-06-17T22:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Getting API errors with a couple of cmdlets</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Getting-API-errors-with-a-couple-of-cmdlets/m-p/29385#M1334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just for kicks, I upgraded my mirror target filer to 7.3.3 and tried this again and it didn't work. Below is the command and the error that I'm getting. I'm connected to the filer using RPC, and can execute other commands against the filer except the add and remove nalunmap commands. I can run a get-nalunmap command just fine, just can't manipulate the mapping.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS C:\Windows\system32&amp;gt; Add-naLunMap -Path /vol/Chatesthv/Chatesthv.lun -InitiatorGroup viaRPC.iqn.1991-05.com.microsoft&lt;BR /&gt;:mmatlhyperv2.law.millermartin.com -Controller Filer6&lt;BR /&gt;Add-NaLunMap : API invoke failed.&lt;BR /&gt;At line:1 char:13&lt;BR /&gt;+ Add-naLunMap &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;nbsp; -Path /vol/Chatesthv/Chatesthv.lun -InitiatorGroup viaRPC.iqn.1991-05.com.microsoft:mmatlhyperv2.l&lt;BR /&gt;aw.millermartin.com -Controller Filer6&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + CategoryInfo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : InvalidOperation: (NetApp.Ontapi.Filer.NaController:NaController) [Add-NaLunMap], NaExce&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ption&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + FullyQualifiedErrorId : ApiException,DataONTAP.PowerShell.SDK.Cmdlets.Lun.AddNaLunMap&lt;/P&gt;&lt;P&gt;Add-NaLunMap : API invoke failed.&lt;BR /&gt;At line:1 char:13&lt;BR /&gt;+ Add-naLunMap &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;nbsp; -Path /vol/Chatesthv/Chatesthv.lun -InitiatorGroup viaRPC.iqn.1991-05.com.microsoft:mmatlhyperv2.l&lt;BR /&gt;aw.millermartin.com -Controller Filer6&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + CategoryInfo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : InvalidOperation: (NetApp.Ontapi.Filer.NaController:NaController) [Add-NaLunMap], NaExce&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ption&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + FullyQualifiedErrorId : LunListInfoFailed,DataONTAP.PowerShell.SDK.Cmdlets.Lun.AddNaLunMap&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Luther&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jun 2010 17:25:50 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Getting-API-errors-with-a-couple-of-cmdlets/m-p/29385#M1334</guid>
      <dc:creator>lallin</dc:creator>
      <dc:date>2010-06-18T17:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: Getting API errors with a couple of cmdlets</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Getting-API-errors-with-a-couple-of-cmdlets/m-p/29389#M1335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Luther.&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;&lt;P&gt;Add-naLunMap -Path /vol/Chatesthv/Chatesthv.lun -InitiatorGroup&amp;nbsp; viaRPC.iqn.1991-05.com.microsoft:mmatlhyperv2.law.millermartin.com -Controller Filer6&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you're using RPC, then you shouldn't need to use the -Controller switch when connected to a single controller.&amp;nbsp; If, however, you are connected to multiple controllers and wish to direct commands to different ones, try something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$Filer6 = Connect-NaController Filer6&lt;/P&gt;&lt;P&gt;Add-NaLunMap ... -Controller $Filer6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Don't forget the $ sign on the controller variable).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clinton&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jun 2010 18:16:55 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Getting-API-errors-with-a-couple-of-cmdlets/m-p/29389#M1335</guid>
      <dc:creator>cknight</dc:creator>
      <dc:date>2010-06-18T18:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: Getting API errors with a couple of cmdlets</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Getting-API-errors-with-a-couple-of-cmdlets/m-p/29394#M1336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, what do you know? It worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question though: What if I need to address multiple filers in the same script? Can I use RPC and then call out the filer name? Or, do I need to not use RPC if I'm going to do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jun 2010 19:13:26 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Getting-API-errors-with-a-couple-of-cmdlets/m-p/29394#M1336</guid>
      <dc:creator>lallin</dc:creator>
      <dc:date>2010-06-18T19:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: Getting API errors with a couple of cmdlets</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Getting-API-errors-with-a-couple-of-cmdlets/m-p/29399#M1337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you may connect (via RPC or HTTP) to any number of controllers in a script, saving the result of each connection in a variable.&amp;nbsp; Then just pass the variable as the argument of -Controller in any of the Toolkit's cmdlets.&amp;nbsp; It's common to operate with multiple systems when dealing with clusters, SnapMirror, SnapVault, etc.&amp;nbsp; Some of the &lt;A _jive_internal="true" href="https://community.netapp.com/docs/DOC-6246" target="_blank"&gt;example&lt;/A&gt; scripts posted here by others show this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clinton&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jun 2010 19:21:49 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Getting-API-errors-with-a-couple-of-cmdlets/m-p/29399#M1337</guid>
      <dc:creator>cknight</dc:creator>
      <dc:date>2010-06-18T19:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: Getting API errors with a couple of cmdlets</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Getting-API-errors-with-a-couple-of-cmdlets/m-p/29404#M1338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Clinton. This has been very helpful. I'm sure I'll be back.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jun 2010 19:24:27 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Getting-API-errors-with-a-couple-of-cmdlets/m-p/29404#M1338</guid>
      <dc:creator>lallin</dc:creator>
      <dc:date>2010-06-18T19:24:27Z</dc:date>
    </item>
  </channel>
</rss>

