<?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: Powershell script to sell all Snapshot in Array Performance and Data Protection</title>
    <link>https://community.hpe.com/t5/array-performance-and-data/powershell-script-to-sell-all-snapshot/m-p/6983455#M507</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dang, She beat me to it..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the CLI, this will check all volumes, and all snaps of those volumes;&lt;/P&gt;&lt;P&gt;Get-NSVolume | foreach-object { get-nssnapshot -vol_name $_.name | where {$_.name -match "MyTestString" } }&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Jun 2017 19:58:40 GMT</pubDate>
    <dc:creator>Chris_Lionetti</dc:creator>
    <dc:date>2017-06-09T19:58:40Z</dc:date>
    <item>
      <title>Powershell script to sell all Snapshot</title>
      <link>https://community.hpe.com/t5/array-performance-and-data/powershell-script-to-sell-all-snapshot/m-p/6983453#M505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #444444; background-color: #ffffff;"&gt;I want to use powershell to list all snapshot beginning by Ncss on all volumes&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #444444; background-color: #ffffff;"&gt;I can't find how to do it for all volumes but I am able to do it for one volumes with this command &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #444444; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Get-NSSnapshot -vol_name "NMBL-DBEX-SIEGESOCIAL" | where {$_.name -match "NSs"} &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #444444;"&gt;Is it possible to achieve&amp;nbsp;my goal&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #444444; background-color: #ffffff;"&gt;thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jun 2017 18:39:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/array-performance-and-data/powershell-script-to-sell-all-snapshot/m-p/6983453#M505</guid>
      <dc:creator>Francois lepage</dc:creator>
      <dc:date>2017-06-09T18:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell script to sell all Snapshot</title>
      <link>https://community.hpe.com/t5/array-performance-and-data/powershell-script-to-sell-all-snapshot/m-p/6983454#M506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Francois,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are several ways to script this. Here is an example, where we first get volumes, and then pass the output through a foreach loop. In the sample below, I am focusing on volumes that have 2017-06-09 in the snapshot&amp;nbsp;name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dianne&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6;" width="100%"&gt;&lt;THEAD&gt;&lt;TR style="background-color: #efefef;"&gt;&lt;TH&gt;Sample script&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: Lucida Console; font-size: xx-small;"&gt;Connect-NSGroup&lt;/SPAN&gt;&lt;SPAN style="font-family: Lucida Console; font-size: xx-small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-family: Lucida Console; font-size: xx-small;"&gt;-Credential&lt;/SPAN&gt;&lt;SPAN style="font-family: Lucida Console; font-size: xx-small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff4500; font-family: Lucida Console; font-size: xx-small;"&gt;$nm_cred&lt;/SPAN&gt;&lt;SPAN style="font-family: Lucida Console; font-size: xx-small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-family: Lucida Console; font-size: xx-small;"&gt;-group&lt;/SPAN&gt;&lt;SPAN style="font-family: Lucida Console; font-size: xx-small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff4500; font-family: Lucida Console; font-size: xx-small;"&gt;$nsarray&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="color: #ff4500; font-family: Lucida Console; font-size: xx-small;"&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="color: #ff4500; font-family: Lucida Console; font-size: xx-small;"&gt;$volname&lt;/SPAN&gt;&lt;SPAN style="font-family: Lucida Console; font-size: xx-small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #a9a9a9; font-family: Lucida Console; font-size: xx-small;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: Lucida Console; font-size: xx-small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Lucida Console; font-size: xx-small;"&gt;Get-NSVolume&lt;/SPAN&gt;&lt;SPAN style="font-family: Lucida Console; font-size: xx-small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #a9a9a9; font-family: Lucida Console; font-size: xx-small;"&gt;|&lt;/SPAN&gt;&lt;SPAN style="font-family: Lucida Console; font-size: xx-small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Lucida Console; font-size: xx-small;"&gt;Select-Object&lt;/SPAN&gt;&lt;SPAN style="font-family: Lucida Console; font-size: xx-small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-family: Lucida Console; font-size: xx-small;"&gt;-Property&lt;/SPAN&gt;&lt;SPAN style="font-family: Lucida Console; font-size: xx-small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #8b0000; font-family: Lucida Console; font-size: xx-small;"&gt;"name"&lt;/SPAN&gt;&lt;SPAN style="font-family: Lucida Console; font-size: xx-small;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="font-family: Lucida Console; font-size: xx-small;"&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="color: #ff4500; font-family: Lucida Console; font-size: xx-small;"&gt;$snaplist&lt;/SPAN&gt;&lt;SPAN style="font-family: Lucida Console; font-size: xx-small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #a9a9a9; font-family: Lucida Console; font-size: xx-small;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: Lucida Console; font-size: xx-small;"&gt; @()&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="font-family: Lucida Console; font-size: xx-small;"&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="color: #00008b; font-family: Lucida Console; font-size: xx-small;"&gt;foreach&lt;/SPAN&gt;&lt;SPAN style="font-family: Lucida Console; font-size: xx-small;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #ff4500; font-family: Lucida Console; font-size: xx-small;"&gt;$name&lt;/SPAN&gt;&lt;SPAN style="font-family: Lucida Console; font-size: xx-small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #00008b; font-family: Lucida Console; font-size: xx-small;"&gt;in&lt;/SPAN&gt;&lt;SPAN style="font-family: Lucida Console; font-size: xx-small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff4500; font-family: Lucida Console; font-size: xx-small;"&gt;$volname&lt;/SPAN&gt;&lt;SPAN style="font-family: Lucida Console; font-size: xx-small;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Lucida Console; font-size: xx-small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff4500; font-family: Lucida Console; font-size: xx-small;"&gt;$res&lt;/SPAN&gt;&lt;SPAN style="font-family: Lucida Console; font-size: xx-small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #a9a9a9; font-family: Lucida Console; font-size: xx-small;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: Lucida Console; font-size: xx-small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Lucida Console; font-size: xx-small;"&gt;Get-NSSnapshot&lt;/SPAN&gt;&lt;SPAN style="font-family: Lucida Console; font-size: xx-small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-family: Lucida Console; font-size: xx-small;"&gt;-vol_name&lt;/SPAN&gt;&lt;SPAN style="font-family: Lucida Console; font-size: xx-small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff4500; font-family: Lucida Console; font-size: xx-small;"&gt;$name&lt;/SPAN&gt;&lt;SPAN style="color: #a9a9a9; font-family: Lucida Console; font-size: xx-small;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-family: Lucida Console; font-size: xx-small;"&gt;name &lt;/SPAN&gt;&lt;SPAN style="color: #a9a9a9; font-family: Lucida Console; font-size: xx-small;"&gt;|&lt;/SPAN&gt;&lt;SPAN style="font-family: Lucida Console; font-size: xx-small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Lucida Console; font-size: xx-small;"&gt;where&lt;/SPAN&gt;&lt;SPAN style="font-family: Lucida Console; font-size: xx-small;"&gt; { &lt;/SPAN&gt;&lt;SPAN style="color: #ff4500; font-family: Lucida Console; font-size: xx-small;"&gt;$_&lt;/SPAN&gt;&lt;SPAN style="color: #a9a9a9; font-family: Lucida Console; font-size: xx-small;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-family: Lucida Console; font-size: xx-small;"&gt;name &lt;/SPAN&gt;&lt;SPAN style="color: #a9a9a9; font-family: Lucida Console; font-size: xx-small;"&gt;-like&lt;/SPAN&gt;&lt;SPAN style="font-family: Lucida Console; font-size: xx-small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #8b0000; font-family: Lucida Console; font-size: xx-small;"&gt;"*2017-06-09*"&lt;/SPAN&gt;&lt;SPAN style="font-family: Lucida Console; font-size: xx-small;"&gt; } &lt;/SPAN&gt;&lt;SPAN style="color: #a9a9a9; font-family: Lucida Console; font-size: xx-small;"&gt;|&lt;/SPAN&gt;&lt;SPAN style="font-family: Lucida Console; font-size: xx-small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Lucida Console; font-size: xx-small;"&gt;select&lt;/SPAN&gt;&lt;SPAN style="font-family: Lucida Console; font-size: xx-small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #8a2be2; font-family: Lucida Console; font-size: xx-small;"&gt;name&lt;/SPAN&gt;&lt;SPAN style="color: #a9a9a9; font-family: Lucida Console; font-size: xx-small;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-family: Lucida Console; font-size: xx-small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #8a2be2; font-family: Lucida Console; font-size: xx-small;"&gt;id&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="color: #8a2be2; font-family: Lucida Console; font-size: xx-small;"&gt; &lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="font-family: Lucida Console; font-size: xx-small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff4500; font-family: Lucida Console; font-size: xx-small;"&gt;$snaplist&lt;/SPAN&gt;&lt;SPAN style="font-family: Lucida Console; font-size: xx-small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #a9a9a9; font-family: Lucida Console; font-size: xx-small;"&gt;+=&lt;/SPAN&gt;&lt;SPAN style="font-family: Lucida Console; font-size: xx-small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff4500; font-family: Lucida Console; font-size: xx-small;"&gt;$res&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN style="color: #ff4500; font-family: Lucida Console; font-size: xx-small;"&gt; &lt;/SPAN&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Lucida Console; font-size: xx-small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Lucida Console; font-size: xx-small;"&gt;Write-&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Lucida Console; font-size: xx-small;"&gt;Output&lt;/SPAN&gt;&lt;SPAN style="font-family: Lucida Console; font-size: xx-small;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff4500; font-family: Lucida Console; font-size: xx-small;"&gt;$snaplist&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jun 2017 19:42:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/array-performance-and-data/powershell-script-to-sell-all-snapshot/m-p/6983454#M506</guid>
      <dc:creator>dgonzalez59</dc:creator>
      <dc:date>2017-06-09T19:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell script to sell all Snapshot</title>
      <link>https://community.hpe.com/t5/array-performance-and-data/powershell-script-to-sell-all-snapshot/m-p/6983455#M507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dang, She beat me to it..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the CLI, this will check all volumes, and all snaps of those volumes;&lt;/P&gt;&lt;P&gt;Get-NSVolume | foreach-object { get-nssnapshot -vol_name $_.name | where {$_.name -match "MyTestString" } }&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jun 2017 19:58:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/array-performance-and-data/powershell-script-to-sell-all-snapshot/m-p/6983455#M507</guid>
      <dc:creator>Chris_Lionetti</dc:creator>
      <dc:date>2017-06-09T19:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell script to sell all Snapshot</title>
      <link>https://community.hpe.com/t5/array-performance-and-data/powershell-script-to-sell-all-snapshot/m-p/6983456#M508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks it is working!! If I could put 2 solutions as the correct answer you will be marked as that too&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jun 2017 20:06:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/array-performance-and-data/powershell-script-to-sell-all-snapshot/m-p/6983456#M508</guid>
      <dc:creator>Francois lepage</dc:creator>
      <dc:date>2017-06-09T20:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell script to sell all Snapshot</title>
      <link>https://community.hpe.com/t5/array-performance-and-data/powershell-script-to-sell-all-snapshot/m-p/6983457#M509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks also working!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jun 2017 20:07:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/array-performance-and-data/powershell-script-to-sell-all-snapshot/m-p/6983457#M509</guid>
      <dc:creator>Francois lepage</dc:creator>
      <dc:date>2017-06-09T20:07:09Z</dc:date>
    </item>
  </channel>
</rss>

