Microsoft Virtualization Discussions

Connect-NaController Can't ouput filer Type

cambricon_sh
3,491 Views

PS Z:\Users\it\Desktop> Connect-NaController 10.4.130.12
Connect-NaController : Failed to load ntapadmin64 DLL
At line:1 char:1
+ Connect-NaController 10.4.130.12
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidResult: (10.4.130.12:NaController) [Connect-NaController], Exception
+ FullyQualifiedErrorId : RpcConnectionFailed,DataONTAP.PowerShell.SDK.ConnectNaController


PS Z:\Users\it\Desktop> Connect-NaController 10.4.130.12 -HTTPS
WARNING: Use Connect-NcController for Data ONTAP Cluster-mode.

Name Address Vserver Version
---- ------- ------- -------
10.4.130.12 10.4.130.12 NetApp Release 9.3: Thu Jan 04 10:56:26 UTC 2018


PS Z:\Users\it\Desktop> $con = Connect-NaController 10.4.130.12 -HTTPS
WARNING: Use Connect-NcController for Data ONTAP Cluster-mode.
PS Z:\Users\it\Desktop> $con.gettype()

IsPublic IsSerial Name BaseType
-------- -------- ---- --------
True True NcController NetApp.Ontapi.AbstractController

PS Z:\Users\it\Desktop> Get-NaQuotaReport
Get-NaQuotaReport : Value in $global:CurrentNaController is not of type NetApp.Ontapi.Filer.NaController
At line:1 char:1
+ Get-NaQuotaReport
+ ~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Get-NaQuotaReport], ArgumentException
+ FullyQualifiedErrorId : ControllerNotSpecified,DataONTAP.PowerShell.SDK.Cmdlets.Quota.GetNaQuotaReport

PS Z:\Users\it\Desktop> Get-NaQuotaReport -Controller $con
Get-NaQuotaReport : Cannot bind parameter 'Controller'. Cannot convert the "10.4.130.12" value of type "NetApp.Ontapi.Filer.C.NcController" to type "NetApp.Ontapi.Filer.NaController".
At line:1 char:31
+ Get-NaQuotaReport -Controller $con
+ ~~~~
+ CategoryInfo : InvalidArgument: (:) [Get-NaQuotaReport], ParameterBindingException
+ FullyQualifiedErrorId : CannotConvertArgumentNoMessage,DataONTAP.PowerShell.SDK.Cmdlets.Quota.GetNaQuotaReport

 

Tools Version:   NetApp_PowerShell_Toolkit_9.7.1.0

1 ACCEPTED SOLUTION

donny_lang
3,486 Views

From your command output, it looks like you are trying to connect to a system running ONTAP 9.3 - in that case, you'll want to use the Connect-NcController command instead (the "C" in the cmdlet names denotes CDOT) to connect to your cluster. From there, you can use Get-NcQuotaReport to get the data that you're looking for. 

 

 

View solution in original post

1 REPLY 1

donny_lang
3,487 Views

From your command output, it looks like you are trying to connect to a system running ONTAP 9.3 - in that case, you'll want to use the Connect-NcController command instead (the "C" in the cmdlet names denotes CDOT) to connect to your cluster. From there, you can use Get-NcQuotaReport to get the data that you're looking for. 

 

 

Public