NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

Microsoft Virtualization Discussions

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

pierrek
3,960 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,960 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,960 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