Microsoft Virtualization Discussions

connect-nacontroller to vFiler

narendrathawani
4,728 Views

Hello!

I'm new to powershell. I need to write a script to capture information from vFilers (7-Mode, ONTAP 7.3.x and 8.x)

Wondering what is the correct way to connect vFiler ?

Connect-NaController PhysicalFilerName -vFiler VirtualFilerName

or

Connect-NaController VirtualFilerName

I get the same results with both of these commands when I query any of vFiler in our environment.

What is the technical difference between these two commands and in which situation one would not work ?

Is there any documentation that I can refer to ?

Thanks!

3 REPLIES 3

vinith
4,728 Views

For PSTK documentation use the Show-NaHelp cmdlet. 

PS C:\Users\vinith> Show-NaHelp

narendrathawani
4,728 Views

Vinith,

Thanks for reply but Show-NaHelp doesn't say if "Connect-NaController VirtualFilerName"   is even a valid command.

The script is for end user who only know vFiler name. If "Connect-NaController VirtualFilerName"  is valid then we don't have to query DFM to get the PhysicalFiler Name.

beam
4,728 Views

Connect-NaController PhysicalFileName -Vfiler VfilerName connects to the pfiler and tunnels the commands to the specified vfiler.  Connect-NaController VfilerName connects directly to the vfiler.

Either way is fine for communicating with vfilers.

-Steven

Public