<?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 Powershell: Get-NcNetFailoverGroup not working as expected in Software Development Kit (SDK) and API Discussions</title>
    <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Powershell-Get-NcNetFailoverGroup-not-working-as-expected/m-p/142244#M2716</link>
    <description>&lt;P&gt;Hi everyone.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&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;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The call to Get-NcNetFailoverGroup is basicly like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&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;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but $failovergroup is just empty (even though the SVM has a lif, and that lif is using a failover group).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, this works just fine, and returns all details about the lifs, including the failover-group:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;$LIF_List = Get-NcNetInterface -Query $Query -VserverContext $VServer&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&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;/P&gt;
&lt;P&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;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also checked the NetApp Docs sources, and the call to Get-NcNetFailoverGroup looks just like my call.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What am I doing wrong?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 13:23:49 GMT</pubDate>
    <dc:creator>dmeyer</dc:creator>
    <dc:date>2025-06-04T13:23:49Z</dc:date>
    <item>
      <title>Powershell: Get-NcNetFailoverGroup not working as expected</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Powershell-Get-NcNetFailoverGroup-not-working-as-expected/m-p/142244#M2716</link>
      <description>&lt;P&gt;Hi everyone.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&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;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The call to Get-NcNetFailoverGroup is basicly like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&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;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but $failovergroup is just empty (even though the SVM has a lif, and that lif is using a failover group).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, this works just fine, and returns all details about the lifs, including the failover-group:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;$LIF_List = Get-NcNetInterface -Query $Query -VserverContext $VServer&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&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;/P&gt;
&lt;P&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;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also checked the NetApp Docs sources, and the call to Get-NcNetFailoverGroup looks just like my call.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What am I doing wrong?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 13:23:49 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Powershell-Get-NcNetFailoverGroup-not-working-as-expected/m-p/142244#M2716</guid>
      <dc:creator>dmeyer</dc:creator>
      <dc:date>2025-06-04T13:23:49Z</dc:date>
    </item>
  </channel>
</rss>

