<?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: Finding the oldest snapshot by volume in SnapManager to SnapCenter Transition</title>
    <link>https://community.netapp.com/t5/SnapManager-to-SnapCenter-Transition/Finding-the-oldest-snapshot-by-volume/m-p/449887#M63</link>
    <description>&lt;P&gt;I am no PowerShell guru, but this seems to work (snapshots older than 55 days):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;PS &amp;gt; Get-NcSnapshot -ontapi | Sort-Object -Property Created | ? { $_.Created -lt (Get-Date).AddDays(-55) }

Name                      Volume               Vserver                   Created      Total Cumulative Dependency
----                      ------               -------                   -------      ----- ---------- ----------
snapmirror.xxxxxxxx-x2... xxxx_xxxx            xxxxxxxx                  01.05.2023   264,0 KB   264,0 KB snapmirror
xxx_daily.2023-10-2...    xxxx_xxxx            xxxxxxxx                  23.10.2023   252,0 KB   252,0 KB
xxx_daily.2023-10-2...    xxxx_xxxx            xxxxxxxx                  27.10.2023   272,0 KB   524,0 KB
xxx_daily.2023-10-2...    xxxx_xxxx            xxxxxxxx                  29.10.2023   340,0 KB   864,0 KB&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 21 Dec 2023 13:27:18 GMT</pubDate>
    <dc:creator>psx</dc:creator>
    <dc:date>2023-12-21T13:27:18Z</dc:date>
    <item>
      <title>Finding the oldest snapshot by volume</title>
      <link>https://community.netapp.com/t5/SnapManager-to-SnapCenter-Transition/Finding-the-oldest-snapshot-by-volume/m-p/449878#M62</link>
      <description>&lt;P&gt;I'm running into an issue where snapshots older than the Snapcenter retention period are not always removed, and I would like to run a powershell script to check for these (and possibly delete anything older. )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is SQL server FC attached vols, and the SnapCenter workflow is 1) full-backup with 7 days retention -&amp;gt; 2) snapmirror copy also with 7 days retention -&amp;gt; 3) snapvault copy to a separate aggr with 14 days retention.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To check the snapshot dates in chronological order, I am running:&lt;/P&gt;&lt;P&gt;Get-NcSnapshot | Where-Object {$_.Volume -match 'sql_srv_volx'} | Sort-object -property Created&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is reporting all dates for the relevant volumes, but is it possible to show the oldest snapshot only?&amp;nbsp; I've tried variations of -CreateTime &amp;gt;7days, but must be doing something wrong.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 09:42:42 GMT</pubDate>
      <guid>https://community.netapp.com/t5/SnapManager-to-SnapCenter-Transition/Finding-the-oldest-snapshot-by-volume/m-p/449878#M62</guid>
      <dc:creator>Ace</dc:creator>
      <dc:date>2025-06-04T09:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the oldest snapshot by volume</title>
      <link>https://community.netapp.com/t5/SnapManager-to-SnapCenter-Transition/Finding-the-oldest-snapshot-by-volume/m-p/449887#M63</link>
      <description>&lt;P&gt;I am no PowerShell guru, but this seems to work (snapshots older than 55 days):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;PS &amp;gt; Get-NcSnapshot -ontapi | Sort-Object -Property Created | ? { $_.Created -lt (Get-Date).AddDays(-55) }

Name                      Volume               Vserver                   Created      Total Cumulative Dependency
----                      ------               -------                   -------      ----- ---------- ----------
snapmirror.xxxxxxxx-x2... xxxx_xxxx            xxxxxxxx                  01.05.2023   264,0 KB   264,0 KB snapmirror
xxx_daily.2023-10-2...    xxxx_xxxx            xxxxxxxx                  23.10.2023   252,0 KB   252,0 KB
xxx_daily.2023-10-2...    xxxx_xxxx            xxxxxxxx                  27.10.2023   272,0 KB   524,0 KB
xxx_daily.2023-10-2...    xxxx_xxxx            xxxxxxxx                  29.10.2023   340,0 KB   864,0 KB&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 21 Dec 2023 13:27:18 GMT</pubDate>
      <guid>https://community.netapp.com/t5/SnapManager-to-SnapCenter-Transition/Finding-the-oldest-snapshot-by-volume/m-p/449887#M63</guid>
      <dc:creator>psx</dc:creator>
      <dc:date>2023-12-21T13:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the oldest snapshot by volume</title>
      <link>https://community.netapp.com/t5/SnapManager-to-SnapCenter-Transition/Finding-the-oldest-snapshot-by-volume/m-p/449950#M65</link>
      <description>&lt;P&gt;Thanks, this was helpful in piecing together my final script.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Dec 2023 19:38:48 GMT</pubDate>
      <guid>https://community.netapp.com/t5/SnapManager-to-SnapCenter-Transition/Finding-the-oldest-snapshot-by-volume/m-p/449950#M65</guid>
      <dc:creator>Ace</dc:creator>
      <dc:date>2023-12-29T19:38:48Z</dc:date>
    </item>
  </channel>
</rss>

