<?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: using Powershell, Deleting old snapshots in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/using-Powershell-Deleting-old-snapshots/m-p/92885#M4005</link>
    <description>&lt;P&gt;Siva then you would need to replace "Nc" with "Na" in the example i gave you, all 7-Mode cmdlets are of type "Na" and "Nc" is for cDOT&lt;/P&gt;</description>
    <pubDate>Wed, 15 Oct 2014 13:03:27 GMT</pubDate>
    <dc:creator>vinith</dc:creator>
    <dc:date>2014-10-15T13:03:27Z</dc:date>
    <item>
      <title>using Powershell, Deleting old snapshots</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/using-Powershell-Deleting-old-snapshots/m-p/92851#M3999</link>
      <description>&lt;P&gt;Using powershell, can we find out the year,month,date of the snapshots under each volume and delete only the old snapshots &amp;gt; 120 days old.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Oct 2014 08:29:36 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/using-Powershell-Deleting-old-snapshots/m-p/92851#M3999</guid>
      <dc:creator>siva</dc:creator>
      <dc:date>2014-10-15T08:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: using Powershell, Deleting old snapshots</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/using-Powershell-Deleting-old-snapshots/m-p/92855#M4000</link>
      <description>&lt;P&gt;You can try something like this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#Set a new variable of date type which is 120 days before the current date&lt;/P&gt;&lt;P&gt;$120days = (get-date).adddays(-120)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#Get list of all snapshots older than 120 days and delete them ( i have put an whatif parameter to check and confirm)&amp;nbsp;&lt;/P&gt;&lt;P&gt;Get-Ncvol | Get-NcSnapshot | where-object { $_.created -lt $120days } | remove-ncsnapshot -whatif&lt;/P&gt;</description>
      <pubDate>Wed, 15 Oct 2014 08:39:28 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/using-Powershell-Deleting-old-snapshots/m-p/92855#M4000</guid>
      <dc:creator>vinith</dc:creator>
      <dc:date>2014-10-15T08:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: using Powershell, Deleting old snapshots</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/using-Powershell-Deleting-old-snapshots/m-p/92859#M4001</link>
      <description>&lt;P&gt;Thanks for quick response. sorry to trouble with few more questions.. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1)&amp;nbsp; if we run the PS script from Oncommand /DFM server against the filer, does it use dfm based user account ? or we need to supply filer accounts explicitly?&lt;/P&gt;&lt;P&gt;2) Already have PS installed in the server,Do we need to have admin rights in the windows server to add the Data ontap PS modules?&lt;/P&gt;&lt;P&gt;3) is there anyway we can ignore deletion of mirror and snapvault base snapshots eventhough older?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Oct 2014 09:15:23 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/using-Powershell-Deleting-old-snapshots/m-p/92859#M4001</guid>
      <dc:creator>siva</dc:creator>
      <dc:date>2014-10-15T09:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: using Powershell, Deleting old snapshots</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/using-Powershell-Deleting-old-snapshots/m-p/92861#M4002</link>
      <description>&lt;P&gt;Hello Siva,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Answers below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1)&amp;nbsp; if we run the PS script from Oncommand /DFM server against the filer, does it use dfm based user account ? or we need to supply filer accounts explicitly?&lt;/P&gt;&lt;P&gt;You need to supply the filer accounts to establish connection&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) Already have PS installed in the server,Do we need to have admin rights in the windows server to add the Data ontap PS modules?&lt;/P&gt;&lt;P&gt;Yes you would need admin rights to install pstoolkit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3) is there anyway we can ignore deletion of mirror and snapvault base snapshots eventhough older?&lt;/P&gt;&lt;P&gt;You would need to filter out these snapshots by their naming conventions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinith&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please remember to mark solved&amp;nbsp;if you feel your query is answered.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Oct 2014 09:25:25 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/using-Powershell-Deleting-old-snapshots/m-p/92861#M4002</guid>
      <dc:creator>vinith</dc:creator>
      <dc:date>2014-10-15T09:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: using Powershell, Deleting old snapshots</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/using-Powershell-Deleting-old-snapshots/m-p/92881#M4003</link>
      <description>&lt;P&gt;I see Vinith has given you the cDot cmdlets.. Are you running cDot or 7-mode..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also - I've written something that will report on your entire environment, not delete, that is easy to add..&lt;/P&gt;</description>
      <pubDate>Wed, 15 Oct 2014 12:33:57 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/using-Powershell-Deleting-old-snapshots/m-p/92881#M4003</guid>
      <dc:creator>JGPSHNTAP</dc:creator>
      <dc:date>2014-10-15T12:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: using Powershell, Deleting old snapshots</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/using-Powershell-Deleting-old-snapshots/m-p/92883#M4004</link>
      <description>&lt;P&gt;Thanks we are using 7 mode.&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>Wed, 15 Oct 2014 12:55:18 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/using-Powershell-Deleting-old-snapshots/m-p/92883#M4004</guid>
      <dc:creator>siva</dc:creator>
      <dc:date>2014-10-15T12:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: using Powershell, Deleting old snapshots</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/using-Powershell-Deleting-old-snapshots/m-p/92885#M4005</link>
      <description>&lt;P&gt;Siva then you would need to replace "Nc" with "Na" in the example i gave you, all 7-Mode cmdlets are of type "Na" and "Nc" is for cDOT&lt;/P&gt;</description>
      <pubDate>Wed, 15 Oct 2014 13:03:27 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/using-Powershell-Deleting-old-snapshots/m-p/92885#M4005</guid>
      <dc:creator>vinith</dc:creator>
      <dc:date>2014-10-15T13:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: using Powershell, Deleting old snapshots</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/using-Powershell-Deleting-old-snapshots/m-p/92991#M4006</link>
      <description>&lt;P&gt;Also, you want to query non-snapmirrored volumes, since you can't delete snaps on read-only volume.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll start you with this query&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Get-NaVol | ? {$_.state -eq "online" -and $_.raidstatus -notmatch "read-only"}&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Oct 2014 14:41:52 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/using-Powershell-Deleting-old-snapshots/m-p/92991#M4006</guid>
      <dc:creator>JGPSHNTAP</dc:creator>
      <dc:date>2014-10-15T14:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: using Powershell, Deleting old snapshots</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/using-Powershell-Deleting-old-snapshots/m-p/115762#M4743</link>
      <description>&lt;P&gt;I have two NetApp Clustered OnTAP sites with SnapVault relationships running between them.&amp;nbsp; I am using SMVI at both sites to create crash consistent backups of my VM's contained within the volumes/datastores and then SnapVault them cross-site.&amp;nbsp; In order for the SnapVault to work I need to have SnapShots enabled.&amp;nbsp; The labels are configured as VSC_DAILY_BACKUP and VSC_WEEKLY_BACKUP.&amp;nbsp; By doing this however this creates daily and weekly 'non-crash-consistent' snapshots.&amp;nbsp; The only snapshots that I need are the SMVI daily and SMVI weekly ones.&amp;nbsp; I suspect that I am unable to get away from having the normal NetApp volume snapshots (daily, weekly).&amp;nbsp; Is there a post backup script that can be run for each SMVI backup job that lists and deletes all non-smvi snapshots?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2016 10:33:59 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/using-Powershell-Deleting-old-snapshots/m-p/115762#M4743</guid>
      <dc:creator>JustinM</dc:creator>
      <dc:date>2016-02-15T10:33:59Z</dc:date>
    </item>
  </channel>
</rss>

