<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Is there a way to get the currently connected controller ? in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Is-there-a-way-to-get-the-currently-connected-controller/m-p/40032#M1851</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Vinith...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, that is what I was looking for... I actually made my code simpler and more compact rather than duplicate the volume creation code.... below is what I used...&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; font-family: Courier New;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; font-family: Courier New;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If&lt;SPAN style="font-size: 8pt; font-family: Courier New;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 8pt; font-family: Courier New;"&gt;$CurrentNAController&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier New;"&gt;.Name &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: 8pt; font-family: Courier New;"&gt;-ne&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 8pt; font-family: Courier New;"&gt;$Filer&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier New;"&gt;) { &lt;/SPAN&gt;&lt;STRONG style="color: #5f9ea0; font-size: 8pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #5f9ea0; font-size: 8pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #5f9ea0; font-size: 8pt; font-family: Courier New;"&gt;Connect-NaController &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; font-family: Courier New;"&gt;&lt;SPAN style="color: #800080; font-size: 8pt; font-family: Courier New;"&gt;$Filer&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;EM style="color: #5f9ea0; font-size: 8pt; font-family: Courier New;"&gt;&lt;EM style="color: #5f9ea0; font-size: 8pt; font-family: Courier New;"&gt;&lt;EM style="color: #5f9ea0; font-size: 8pt; font-family: Courier New;"&gt;-Credential &lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;SPAN style="color: #5f9ea0; font-size: 8pt; font-family: Courier New;"&gt;$Cred &lt;/SPAN&gt;&lt;SPAN style="color: #5f9ea0; font-size: 8pt; font-family: Courier New;"&gt;}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;New-NaVol.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mayur&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Sep 2013 17:40:31 GMT</pubDate>
    <dc:creator>raol</dc:creator>
    <dc:date>2013-09-03T17:40:31Z</dc:date>
    <item>
      <title>Is there a way to get the currently connected controller ?</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Is-there-a-way-to-get-the-currently-connected-controller/m-p/40014#M1846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am creating a script to create volumes... The input list consists of Filer name/volume name/aggregate name/size/etc in a csv format.... This list could span multiple controllers and plan on sorting the entries by Filer name...&lt;/P&gt;&lt;P&gt;In my volume creation loop I will take a line from the CSV input file and process it... &lt;/P&gt;&lt;P&gt;I don't want to do Connect-NAController for each entry... what I would like to do is skip the connection part if the Filer name is the same as the currently connected Filer...&lt;/P&gt;&lt;P&gt;Is there a way to find out what the currently connected filer is ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mayur&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 05:54:44 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Is-there-a-way-to-get-the-currently-connected-controller/m-p/40014#M1846</guid>
      <dc:creator>raol</dc:creator>
      <dc:date>2025-06-05T05:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to get the currently connected controller ?</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Is-there-a-way-to-get-the-currently-connected-controller/m-p/40018#M1848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like I may have found the answer to my question... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a variable &lt;STRONG&gt;$CurrentNAController&lt;/STRONG&gt;.... and I can compare my Filer name to &lt;STRONG&gt;$CurrentNAController.Name&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Going to try it out and see how I fare...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2013 16:25:25 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Is-there-a-way-to-get-the-currently-connected-controller/m-p/40018#M1848</guid>
      <dc:creator>raol</dc:creator>
      <dc:date>2013-09-03T16:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to get the currently connected controller ?</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Is-there-a-way-to-get-the-currently-connected-controller/m-p/40024#M1850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you looking for something like this&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="java" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13782260429433201" jivemacro_uid="_13782260429433201" modifiedtitle="true"&gt;&lt;P&gt;$controllerdetails = Get-Content "c:\vinith\desktop\controllerdetails.csv"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;foreach ($control in $controllerdetails)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (($global:CurrentNaController).name -match $control.filername)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; New-NaVol -Name $control.volumename ....(continued syntax)...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Connect-NaController $control.filername ...&lt;SPAN style="color: rgba(0, 0, 0, 0); font-family: helvetica, arial; font-size: 12px;"&gt;(continued syntax)..&lt;/SPAN&gt;....&lt;/P&gt;&lt;P&gt; New-NaVol -Name $control.volumename ..&lt;SPAN style="color: rgba(0, 0, 0, 0); font-family: helvetica, arial; font-size: 12px;"&gt;(continued syntax)..&lt;/SPAN&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2013 16:30:39 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Is-there-a-way-to-get-the-currently-connected-controller/m-p/40024#M1850</guid>
      <dc:creator>vinith</dc:creator>
      <dc:date>2013-09-03T16:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to get the currently connected controller ?</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Is-there-a-way-to-get-the-currently-connected-controller/m-p/40032#M1851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Vinith...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, that is what I was looking for... I actually made my code simpler and more compact rather than duplicate the volume creation code.... below is what I used...&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; font-family: Courier New;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; font-family: Courier New;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If&lt;SPAN style="font-size: 8pt; font-family: Courier New;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 8pt; font-family: Courier New;"&gt;$CurrentNAController&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier New;"&gt;.Name &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-size: 8pt; font-family: Courier New;"&gt;-ne&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 8pt; font-family: Courier New;"&gt;$Filer&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier New;"&gt;) { &lt;/SPAN&gt;&lt;STRONG style="color: #5f9ea0; font-size: 8pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #5f9ea0; font-size: 8pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #5f9ea0; font-size: 8pt; font-family: Courier New;"&gt;Connect-NaController &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; font-family: Courier New;"&gt;&lt;SPAN style="color: #800080; font-size: 8pt; font-family: Courier New;"&gt;$Filer&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;EM style="color: #5f9ea0; font-size: 8pt; font-family: Courier New;"&gt;&lt;EM style="color: #5f9ea0; font-size: 8pt; font-family: Courier New;"&gt;&lt;EM style="color: #5f9ea0; font-size: 8pt; font-family: Courier New;"&gt;-Credential &lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;SPAN style="color: #5f9ea0; font-size: 8pt; font-family: Courier New;"&gt;$Cred &lt;/SPAN&gt;&lt;SPAN style="color: #5f9ea0; font-size: 8pt; font-family: Courier New;"&gt;}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;New-NaVol.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mayur&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Sep 2013 17:40:31 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Is-there-a-way-to-get-the-currently-connected-controller/m-p/40032#M1851</guid>
      <dc:creator>raol</dc:creator>
      <dc:date>2013-09-03T17:40:31Z</dc:date>
    </item>
  </channel>
</rss>

