And I received a message saying that I'm connected.
After that, I have tried to run many commands, such as get-navol, get-naqtree and many more,
And I have received the following message everytime:
Get-NaVol : Value in $global:CurrentNaController is not of type NetApp.Ontapi.Filer.NaController At line:1 char:1 + Get-NaVol -Name <volname> + ~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (:) [Get-NaVol], ArgumentException + FullyQualifiedErrorId : ControllerNotSpecified,DataONTAP.PowerShell.SDK.Cmdlets.Volume.GetNaVol
Do I have to specify the controller name although i'm at the vserver level?
In addition to using NC commands, use connect-nccontroller to connect to the cluster, not a vserver. You can use it with -vserver to tunnel commands to a vserver, although I find that rarely necessary. Once you have a cluster connection object, any cmdlet that needs a vserver will generally have a -vserver switch you can use then.