Microsoft Virtualization Discussions

PowerShell Toolkit - errors when connecting to cluster

Rangan
3,708 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
3,691 Views

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

try get-ncvol instead of get-navol

 

m

Public