Microsoft Virtualization Discussions

Connect-NaController Can't ouput filer Type

cambricon_sh

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

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

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

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public