Microsoft Virtualization Discussions

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

pierrek
3,263 Views

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

2 REPLIES 2

cknight
3,263 Views

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

pierrek
3,263 Views

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

Public