<?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: Get-NcNetFailoverGroup not working as expected in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NcNetFailoverGroup-not-working-as-expected/m-p/142274#M5845</link>
    <description>&lt;P&gt;Thanks for your help - you catched my mistake.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There was indeed a "$global:currentnccontroller.Vserver = $VServer" line hidden in my script, which I thought I removed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Aug 2018 09:39:02 GMT</pubDate>
    <dc:creator>dmeyer</dc:creator>
    <dc:date>2018-08-23T09:39:02Z</dc:date>
    <item>
      <title>Get-NcNetFailoverGroup not working as expected</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NcNetFailoverGroup-not-working-as-expected/m-p/142265#M5842</link>
      <description>&lt;P&gt;Hi everyone.&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;I'm trying to use Get-NcNetFailoverGroup in one of my powershell scripts, but I can't get it to return anything at all.&lt;BR /&gt;&lt;BR /&gt;The call to Get-NcNetFailoverGroup is basicly like this:&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $failovergroup =&amp;nbsp;&amp;nbsp; Get-NcNetFailoverGroup -VserverContext $VServer&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Write-Host $failovergroup&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;but $failovergroup is just empty (even though the SVM has a lif, and that lif is using a failover group).&lt;BR /&gt;&lt;BR /&gt;For example, this works just fine, and returns all details about the lifs, including the failover-group:&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $LIF_List = Get-NcNetInterface -Query $Query -VserverContext $VServer&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;So the basic connectivity from my script to the cluster works, I can query everything I want, just not the details of the failover group.&lt;BR /&gt;&lt;BR /&gt;What I need is a list of target ports of the failover group, which should be returned by Get-NcNetFailoverGroup (at least the help/info to that command shows an example which contains exactly the info I need from the cluster).&lt;BR /&gt;&lt;BR /&gt;I also checked the NetApp Docs sources, and the call to Get-NcNetFailoverGroup looks just like my call.&lt;BR /&gt;&lt;BR /&gt;What am I doing wrong?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 13:23:35 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NcNetFailoverGroup-not-working-as-expected/m-p/142265#M5842</guid>
      <dc:creator>dmeyer</dc:creator>
      <dc:date>2025-06-04T13:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: Get-NcNetFailoverGroup not working as expected</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NcNetFailoverGroup-not-working-as-expected/m-p/142267#M5843</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it possible that you have connected to a data vserver instead of the cluster management vserver? Try this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Import-Module DataONTAP
Connect-NcController -Name cluster1.testlab.local -HTTPS -Credential (Get-Credential -Credential admin) | Out-Null
$failoverGroups = Get-NcNetFailoverGroup -VserverContext cluster1
$failoverGroups

FailoverGroup              Vserver                    Target
-------------              -------                    ------
Default                    cluster1                   {testc1n1:e0a, testc1n1:e0b, testc1n1:e0c, testc1n1:e0d}&lt;/PRE&gt;
&lt;P&gt;Note: you might consider using the -Query -Attributes syntax to improve performance of your query. EG&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Get-NcNetFailoverGroup -Query &amp;lt;NetFailoverGroupInfo&amp;gt; [-Attributes &amp;lt;NetFailoverGroupInfo&amp;gt;] [-VserverContext &amp;lt;String&amp;gt;] [-Controller &amp;lt;NcController[]&amp;gt;] [-ZapiRetryCount &amp;lt;Int32&amp;gt;] [&amp;lt;CommonParameters&amp;gt;]&lt;/PRE&gt;
&lt;P&gt;Hope this helps?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/Matt&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2018 08:41:07 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NcNetFailoverGroup-not-working-as-expected/m-p/142267#M5843</guid>
      <dc:creator>mbeattie</dc:creator>
      <dc:date>2018-08-23T08:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: Get-NcNetFailoverGroup not working as expected</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NcNetFailoverGroup-not-working-as-expected/m-p/142274#M5845</link>
      <description>&lt;P&gt;Thanks for your help - you catched my mistake.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There was indeed a "$global:currentnccontroller.Vserver = $VServer" line hidden in my script, which I thought I removed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2018 09:39:02 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NcNetFailoverGroup-not-working-as-expected/m-p/142274#M5845</guid>
      <dc:creator>dmeyer</dc:creator>
      <dc:date>2018-08-23T09:39:02Z</dc:date>
    </item>
  </channel>
</rss>

