Hi,
Is it possible that you have connected to a data vserver instead of the cluster management vserver? Try this:
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}
Note: you might consider using the -Query -Attributes syntax to improve performance of your query. EG
Get-NcNetFailoverGroup -Query <NetFailoverGroupInfo> [-Attributes <NetFailoverGroupInfo>] [-VserverContext <String>] [-Controller <NcController[]>] [-ZapiRetryCount <Int32>] [<CommonParameters>]
Hope this helps?
/Matt
If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.