<?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 Disconnect-NaController? in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Disconnect-NaController/m-p/104985#M4315</link>
    <description>&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just wrote a script to get all the AGGR status of all filers.&lt;/P&gt;&lt;P&gt;Therefore I loop through all filers, open the connection&amp;nbsp;and&lt;/P&gt;&lt;P&gt;$var = Connect-NaController $Controller&lt;/P&gt;&lt;P&gt;Get-NaAggr -Controller $var&lt;/P&gt;&lt;P&gt;(roughly &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All write-hosts in the script work, the loops goes fine and all potential errors are not triggered.&lt;/P&gt;&lt;P&gt;Anyway, only the AGGRs of the first given filer are printed in the console ... regardless of the $Controller written above (which is correct in every loop walkthrough)&lt;/P&gt;&lt;P&gt;So I wonder if there IS anything like Disconnect-NaController!?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I already found the solutions&amp;nbsp;&lt;A target="_blank" href="https://community.netapp.com/t5/Microsoft-Cloud-and-Virtualization-Discussions/is-there-a-way-to-disconnect-from-a-controller/td-p/1709"&gt;here&lt;/A&gt;&amp;nbsp;(&lt;SPAN&gt;$global:CurrentNaController = $null)&amp;nbsp;&lt;/SPAN&gt;or&amp;nbsp;&lt;A target="_blank" href="https://community.netapp.com/t5/Microsoft-Cloud-and-Virtualization-Discussions/Is-there-a-Disconnect-NaController-or-equivalent/td-p/12967"&gt;here&lt;/A&gt;&amp;nbsp;(&lt;SPAN&gt;use the -Transient switch to Connect-NaController), but neither of them worked for me.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any other ideas?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 13 May 2015 13:22:20 GMT</pubDate>
    <dc:creator>GabbaLo</dc:creator>
    <dc:date>2015-05-13T13:22:20Z</dc:date>
    <item>
      <title>Disconnect-NaController?</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Disconnect-NaController/m-p/104985#M4315</link>
      <description>&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just wrote a script to get all the AGGR status of all filers.&lt;/P&gt;&lt;P&gt;Therefore I loop through all filers, open the connection&amp;nbsp;and&lt;/P&gt;&lt;P&gt;$var = Connect-NaController $Controller&lt;/P&gt;&lt;P&gt;Get-NaAggr -Controller $var&lt;/P&gt;&lt;P&gt;(roughly &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All write-hosts in the script work, the loops goes fine and all potential errors are not triggered.&lt;/P&gt;&lt;P&gt;Anyway, only the AGGRs of the first given filer are printed in the console ... regardless of the $Controller written above (which is correct in every loop walkthrough)&lt;/P&gt;&lt;P&gt;So I wonder if there IS anything like Disconnect-NaController!?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I already found the solutions&amp;nbsp;&lt;A target="_blank" href="https://community.netapp.com/t5/Microsoft-Cloud-and-Virtualization-Discussions/is-there-a-way-to-disconnect-from-a-controller/td-p/1709"&gt;here&lt;/A&gt;&amp;nbsp;(&lt;SPAN&gt;$global:CurrentNaController = $null)&amp;nbsp;&lt;/SPAN&gt;or&amp;nbsp;&lt;A target="_blank" href="https://community.netapp.com/t5/Microsoft-Cloud-and-Virtualization-Discussions/Is-there-a-Disconnect-NaController-or-equivalent/td-p/12967"&gt;here&lt;/A&gt;&amp;nbsp;(&lt;SPAN&gt;use the -Transient switch to Connect-NaController), but neither of them worked for me.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any other ideas?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2015 13:22:20 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Disconnect-NaController/m-p/104985#M4315</guid>
      <dc:creator>GabbaLo</dc:creator>
      <dc:date>2015-05-13T13:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Disconnect-NaController?</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Disconnect-NaController/m-p/104991#M4317</link>
      <description>&lt;P&gt;Ok, i'm not sure how many filers you are looping through but here's a suggestion&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are using a csv or txt file import there are different ways to do it&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, if you don't need credential and are using RPC it's easier as well&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So for example&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$filers = gc c:\filers.txt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$filers | % {&lt;/P&gt;&lt;P&gt;$filer = $_&lt;/P&gt;&lt;P&gt;$c = connect-nacontroller $filer&lt;/P&gt;&lt;P&gt;get-naaggr&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Obviously, there are other ways to do that..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to append it to a csv, I would suggest outputing it to a csv with -append and building an expression statement with Select-object for your controller&lt;/P&gt;&lt;P&gt;So, something like this.&lt;/P&gt;&lt;P&gt;get-naaggr | Select @{n='filer';E={($global:currentnacontroller).name}},Name, State,Totalsize,Used,Available | epcsv -append c:\temp\filers.csv -notypeinformation&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now once you use that type of select object, you will have to build expression statements with convertto-formattednumber or math .net functions &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Give it a shot, if you get stuck we can help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2015 13:37:35 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Disconnect-NaController/m-p/104991#M4317</guid>
      <dc:creator>JGPSHNTAP</dc:creator>
      <dc:date>2015-05-13T13:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: Disconnect-NaController?</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Disconnect-NaController/m-p/105070#M4326</link>
      <description>&lt;P&gt;Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;With your code and a little fixing in my menu I was able to solve this problem.&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2015 07:47:31 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Disconnect-NaController/m-p/105070#M4326</guid>
      <dc:creator>GabbaLo</dc:creator>
      <dc:date>2015-05-15T07:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: Disconnect-NaController?</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Disconnect-NaController/m-p/128653#M5291</link>
      <description>&lt;P&gt;To Disconnect NaController, you can find the parameter "-Timeout" in Connect-NaController. We can provide approximate seconds in the cmdlet Connect-NaController -Timeout 7000. So it will Disconnect by itslef.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2017 14:43:26 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Disconnect-NaController/m-p/128653#M5291</guid>
      <dc:creator>santhanalakshmi_j</dc:creator>
      <dc:date>2017-03-03T14:43:26Z</dc:date>
    </item>
  </channel>
</rss>

