<?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: Unable to combine in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Unable-to-combine/m-p/76291#M3776</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Danny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I recommend managing multiple 7-mode controllers using the following technique:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: darkgreen;"&gt;# Declare an array where we will store 7-Mode controller connections.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: orangered;"&gt;$7modeControllers&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New';"&gt; &lt;SPAN style="color: darkgray;"&gt;=&lt;/SPAN&gt; @()&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: darkgreen;"&gt;# Connect to our controllers and store them in our array (assumes that&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: darkgreen;"&gt;# credentials are cached). You could connect to many controllers here.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: orangered;"&gt;$7modeControllers&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New';"&gt; &lt;SPAN style="color: darkgray;"&gt;+=&lt;/SPAN&gt; &lt;SPAN style="color: blue;"&gt;Connect-NaController&lt;/SPAN&gt; &lt;SPAN style="color: blueviolet;"&gt;192.168.2.8&lt;/SPAN&gt; &lt;SPAN style="color: navy;"&gt;-Transient&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: orangered;"&gt;$7modeControllers&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New';"&gt; &lt;SPAN style="color: darkgray;"&gt;+=&lt;/SPAN&gt; &lt;SPAN style="color: blue;"&gt;Connect-NaController&lt;/SPAN&gt; &lt;SPAN style="color: blueviolet;"&gt;192.168.2.6&lt;/SPAN&gt; &lt;SPAN style="color: navy;"&gt;-Transient&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: darkgreen;"&gt;# Iterate through the 7-mode controllers we connected to and retrieve a&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: darkgreen;"&gt;# list of aggregates from them.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: darkblue;"&gt;foreach&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New';"&gt; (&lt;SPAN style="color: orangered;"&gt;$controller&lt;/SPAN&gt; &lt;SPAN style="color: darkblue;"&gt;in&lt;/SPAN&gt; &lt;SPAN style="color: orangered;"&gt;$7modeControllers&lt;/SPAN&gt;) {&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: darkgreen;"&gt;# use the global variable to identify the current controller.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: orangered;"&gt;$global:CurrentNaController&lt;/SPAN&gt; &lt;SPAN style="color: darkgray;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: orangered;"&gt;$controller&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: darkgreen;"&gt;# Now every other command you run will use the current controller.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: blue;"&gt;Get-NaSnapMirror&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New';"&gt;} &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This approach allows you to do your work on each controller in a single loop no matter how many controllers you are managing.&amp;nbsp; You essentially perform the task as if you're using a single controller inside the foreach loop.&amp;nbsp; It's also a nice approach because you can work out your logic for one controller and then just drop it into the loop to scale it out, and you don't need to build up collections of objects in variables for processing, other than the connected controller collection of course.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kirk out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Oct 2012 17:00:04 GMT</pubDate>
    <dc:creator>kmunro</dc:creator>
    <dc:date>2012-10-15T17:00:04Z</dc:date>
    <item>
      <title>Unable to combine</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Unable-to-combine/m-p/76286#M3775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I querying the active snapmirror jobs of two filers. After that I want to combine the output sets into one to be able to do some stuff with them in a single loop.&lt;/P&gt;&lt;P&gt;Unfortuately PS don't allow me to add the output from the second command to the result from the first command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I'm quite new to PS and the DataOntap Module I want to ask if someone can give me a hint.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers, Danny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $filer1 = Connect-NaController filer1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $filer2 = Connect-NaController filer2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ret1 = Get-NaSnapmirror -controller $filer1&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ret2 = Get-NaSnapmirror -controller $filer2&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ret = $ret1&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ret += $ret2&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 06:17:24 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Unable-to-combine/m-p/76286#M3775</guid>
      <dc:creator>DSTETTLER</dc:creator>
      <dc:date>2025-06-05T06:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to combine</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Unable-to-combine/m-p/76291#M3776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Danny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I recommend managing multiple 7-mode controllers using the following technique:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: darkgreen;"&gt;# Declare an array where we will store 7-Mode controller connections.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: orangered;"&gt;$7modeControllers&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New';"&gt; &lt;SPAN style="color: darkgray;"&gt;=&lt;/SPAN&gt; @()&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: darkgreen;"&gt;# Connect to our controllers and store them in our array (assumes that&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: darkgreen;"&gt;# credentials are cached). You could connect to many controllers here.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: orangered;"&gt;$7modeControllers&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New';"&gt; &lt;SPAN style="color: darkgray;"&gt;+=&lt;/SPAN&gt; &lt;SPAN style="color: blue;"&gt;Connect-NaController&lt;/SPAN&gt; &lt;SPAN style="color: blueviolet;"&gt;192.168.2.8&lt;/SPAN&gt; &lt;SPAN style="color: navy;"&gt;-Transient&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: orangered;"&gt;$7modeControllers&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New';"&gt; &lt;SPAN style="color: darkgray;"&gt;+=&lt;/SPAN&gt; &lt;SPAN style="color: blue;"&gt;Connect-NaController&lt;/SPAN&gt; &lt;SPAN style="color: blueviolet;"&gt;192.168.2.6&lt;/SPAN&gt; &lt;SPAN style="color: navy;"&gt;-Transient&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: darkgreen;"&gt;# Iterate through the 7-mode controllers we connected to and retrieve a&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: darkgreen;"&gt;# list of aggregates from them.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: darkblue;"&gt;foreach&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New';"&gt; (&lt;SPAN style="color: orangered;"&gt;$controller&lt;/SPAN&gt; &lt;SPAN style="color: darkblue;"&gt;in&lt;/SPAN&gt; &lt;SPAN style="color: orangered;"&gt;$7modeControllers&lt;/SPAN&gt;) {&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: darkgreen;"&gt;# use the global variable to identify the current controller.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: orangered;"&gt;$global:CurrentNaController&lt;/SPAN&gt; &lt;SPAN style="color: darkgray;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: orangered;"&gt;$controller&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: darkgreen;"&gt;# Now every other command you run will use the current controller.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: blue;"&gt;Get-NaSnapMirror&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New';"&gt;} &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This approach allows you to do your work on each controller in a single loop no matter how many controllers you are managing.&amp;nbsp; You essentially perform the task as if you're using a single controller inside the foreach loop.&amp;nbsp; It's also a nice approach because you can work out your logic for one controller and then just drop it into the loop to scale it out, and you don't need to build up collections of objects in variables for processing, other than the connected controller collection of course.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kirk out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2012 17:00:04 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Unable-to-combine/m-p/76291#M3776</guid>
      <dc:creator>kmunro</dc:creator>
      <dc:date>2012-10-15T17:00:04Z</dc:date>
    </item>
  </channel>
</rss>

