NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

Microsoft Virtualization Discussions

PowerShell Toolkit - errors when connecting to cluster

Rangan
4,432 Views

Hi All,

 

I am new to this Powershell toolkit. I am able to conenct to the cluster but getting below Errors.

 

can some one help me

 

PS C:\Users\ranggo03> Connect-NcController 1X.xx.xx.xxx -Credential $nacred -HTTPS
Name                 Address           Vserver              Version
----                 -------           -------              -------
10.7.56.132          10.7.56.132                            NetApp Release 8.2.4 Cluster-Mode: Tue Oct 27 14:12:25 PDT

PS C:\Users\ranggo03> Get-NaVfiler
Get-NaVfiler : Value in $global:CurrentNaController is not of type NetApp.Ontapi.Filer.NaController
At line:1 char:1
+ Get-NaVfiler
+ ~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Get-NaVfiler], ArgumentException
    + FullyQualifiedErrorId : ControllerNotSpecified,DataONTAP.PowerShell.SDK.Cmdlets.Vfiler.GetNaVfiler
PS C:\Users\ranggo03> $global:CurrentNaController.TimeoutMsec = 60000
Property 'TimeoutMsec' cannot be found on this object; make sure it exists and is settable.
At line:1 char:1
+ $global:CurrentNaController.TimeoutMsec = 60000
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : PropertyNotFound
PS C:\Users\ranggo03>
PS C:\Users\ranggo03>
PS C:\Users\ranggo03> Get-NaVol
Get-NaVol : Value in $global:CurrentNaController is not of type NetApp.Ontapi.Filer.NaController
At line:1 char:1
+ Get-NaVol
+ ~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Get-NaVol], ArgumentException
    + FullyQualifiedErrorId : ControllerNotSpecified,DataONTAP.PowerShell.SDK.Cmdlets.Volume.GetNaVol
PS C:\Users\ranggo03>

 

1 REPLY 1

markweber
4,415 Views

you are running 7-mode commands but connected to cDOT -

try get-ncvol instead of get-navol

 

m

Public