<?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 Ask the Experts: NetApp PowerShell Question in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Ask-the-Experts-NetApp-PowerShell-Question/m-p/134630#M6439</link>
    <description>&lt;P&gt;Hello PS Gurus,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have issue combining&amp;nbsp;Invoke-NcSsh and Select-string.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS C:\Users\user1&amp;gt; Invoke-NcSsh "storage failover show -node $Node" |select-string "Takeover Enabled" &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ( Select-string doesn't work)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Node: mars1&lt;BR /&gt;Partner Name: mars2&lt;BR /&gt;Node NVRAM ID: 18739555555&lt;BR /&gt;Partner NVRAM ID: 1874666666&lt;BR /&gt;Takeover Enabled: true&lt;BR /&gt;HA Mode: ha&lt;BR /&gt;Takeover Possible: true&lt;BR /&gt;Reason Takeover not Possible: -&lt;BR /&gt;Interconnect Up: true&lt;BR /&gt;Interconnect Links: RDMA Interconnect is up (Link 0 up (active), Link 1 up)&lt;BR /&gt;Interconnect Type: Infiniband ( Mellanox ConnectX )&lt;BR /&gt;State Description: Connected to mars2&lt;BR /&gt;Partner State: Up&lt;BR /&gt;Time Until Takeover: -&lt;BR /&gt;Reason Takeover not Possible by Partner: -&lt;BR /&gt;Auto Giveback Enabled: false&lt;BR /&gt;Check Partner Enabled: true&lt;BR /&gt;Takeover Detection Time (secs): 15&lt;BR /&gt;Takeover on Panic Enabled: true&lt;BR /&gt;Takeover on Reboot Enabled: true&lt;BR /&gt;Delay Before Auto Giveback (secs): 600&lt;BR /&gt;Hardware Assist Enabled: true&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;But when I put the output to a file and then pass it select-string it works.&lt;/P&gt;&lt;P&gt;Invoke-NcSsh "storage failover show -node $Node" &amp;gt;filer.txt&lt;/P&gt;&lt;P&gt;select-string "Takeover Enabled" filer.txt&lt;/P&gt;&lt;P&gt;filer.txt:9: Takeover Enabled: true&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am I doing wrong here? Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 14:35:00 GMT</pubDate>
    <dc:creator>storageguy</dc:creator>
    <dc:date>2025-06-04T14:35:00Z</dc:date>
    <item>
      <title>Ask the Experts: NetApp PowerShell Question</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Ask-the-Experts-NetApp-PowerShell-Question/m-p/134630#M6439</link>
      <description>&lt;P&gt;Hello PS Gurus,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have issue combining&amp;nbsp;Invoke-NcSsh and Select-string.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS C:\Users\user1&amp;gt; Invoke-NcSsh "storage failover show -node $Node" |select-string "Takeover Enabled" &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ( Select-string doesn't work)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Node: mars1&lt;BR /&gt;Partner Name: mars2&lt;BR /&gt;Node NVRAM ID: 18739555555&lt;BR /&gt;Partner NVRAM ID: 1874666666&lt;BR /&gt;Takeover Enabled: true&lt;BR /&gt;HA Mode: ha&lt;BR /&gt;Takeover Possible: true&lt;BR /&gt;Reason Takeover not Possible: -&lt;BR /&gt;Interconnect Up: true&lt;BR /&gt;Interconnect Links: RDMA Interconnect is up (Link 0 up (active), Link 1 up)&lt;BR /&gt;Interconnect Type: Infiniband ( Mellanox ConnectX )&lt;BR /&gt;State Description: Connected to mars2&lt;BR /&gt;Partner State: Up&lt;BR /&gt;Time Until Takeover: -&lt;BR /&gt;Reason Takeover not Possible by Partner: -&lt;BR /&gt;Auto Giveback Enabled: false&lt;BR /&gt;Check Partner Enabled: true&lt;BR /&gt;Takeover Detection Time (secs): 15&lt;BR /&gt;Takeover on Panic Enabled: true&lt;BR /&gt;Takeover on Reboot Enabled: true&lt;BR /&gt;Delay Before Auto Giveback (secs): 600&lt;BR /&gt;Hardware Assist Enabled: true&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;But when I put the output to a file and then pass it select-string it works.&lt;/P&gt;&lt;P&gt;Invoke-NcSsh "storage failover show -node $Node" &amp;gt;filer.txt&lt;/P&gt;&lt;P&gt;select-string "Takeover Enabled" filer.txt&lt;/P&gt;&lt;P&gt;filer.txt:9: Takeover Enabled: true&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am I doing wrong here? Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 14:35:00 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Ask-the-Experts-NetApp-PowerShell-Question/m-p/134630#M6439</guid>
      <dc:creator>storageguy</dc:creator>
      <dc:date>2025-06-04T14:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: Ask the Experts: NetApp PowerShell Question</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Ask-the-Experts-NetApp-PowerShell-Question/m-p/135148#M6440</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Invoke-NcSsh "storage failover show -node $node"&amp;nbsp; | out-string -Stream | Select-String "Takeover Enabled"&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Takeover Enabled: true&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2017 02:44:17 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Ask-the-Experts-NetApp-PowerShell-Question/m-p/135148#M6440</guid>
      <dc:creator>NGPENGLIANG</dc:creator>
      <dc:date>2017-10-11T02:44:17Z</dc:date>
    </item>
  </channel>
</rss>

