Microsoft Virtualization Discussions

Highlighted

Connect-NaController Can't ouput filer Type

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 REPLY 1
Highlighted

Re: Connect-NaController Can't ouput filer Type

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

NetApp Insights To Action
All Community Forums