Subscribe

After Connect-NaController, how can I recall to which filer/vfiler my session is established?

Hi All,

When working interactively with the powershell toolkit, after a session has been established to a filer or a vfiler (tunneling) with Connect-NaController, is there an easy way (cmdlet,?) I can invoke later during my PS session to show the execution context of the commands I am typing?

I hope my question makes sense

Kind regards

Pierre

Re: After Connect-NaController, how can I recall to which filer/vfiler my session is established?

Hello, Pierre.  Unless you use the -Transient switch, Connect-NaController stores the connection context in a global variable, CurrentNaController.

PS C:\> Connect-NaController dunn


Name                 Address           Ontapi   Version
----                 -------           ------   -------
dunn                 10.61.167.60      1.12     NetApp Release 7.3.3: Thu Mar 11 22:29:52 PST 2010


PS C:\> $global:CurrentNaController


Name                 Address           Ontapi   Version
----                 -------           ------   -------
dunn                 10.61.167.60      1.12     NetApp Release 7.3.3: Thu Mar 11 22:29:52 PST 2010

Re: After Connect-NaController, how can I recall to which filer/vfiler my session is established?

Thanks Clinton,

This toolkit is great, we're currently testing it at a customer site for vfiler management and really it is filling a gap.

Kind regards

Pierre