<?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: Need Command Line to delete Volume Collection Snapshots based on date or age of the snapshot. in Array Setup and Networking</title>
    <link>https://community.hpe.com/t5/array-setup-and-networking/need-command-line-to-delete-volume-collection-snapshots-based-on/m-p/6983179#M664</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Juan, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The "&lt;STRONG&gt;CLI Reference Guide&lt;/STRONG&gt;" can be found on &lt;A href="http://infosight.nimblestorage.com/"&gt;InfoSight&lt;/A&gt;. Once you login to InfoSight, click on the download icon in the top right portion of the page. Under the "&lt;STRONG&gt;Nimble OS&lt;/STRONG&gt;" tab, select your software version and then select the "&lt;STRONG&gt;CLI Reference Guide&lt;/STRONG&gt;" below. In this document, you will find the commands needed to manage your array. The information you are looking for will probably be in Chapter 36 (~page 259.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Jun 2015 13:21:06 GMT</pubDate>
    <dc:creator>rhamilton59</dc:creator>
    <dc:date>2015-06-11T13:21:06Z</dc:date>
    <item>
      <title>Need Command Line to delete Volume Collection Snapshots based on date or age of the snapshot.</title>
      <link>https://community.hpe.com/t5/array-setup-and-networking/need-command-line-to-delete-volume-collection-snapshots-based-on/m-p/6983178#M663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using Volume collections for our Oracle Volumes and performing snapshots using the CLi to do Begin/End Backup Mode.&lt;/P&gt;&lt;P&gt;The naming of the snapshots is dynamic to include date/time info. I need a way to delete old snapshots via command line.&lt;/P&gt;&lt;P&gt;I would like to keep a max of 15 snapshots, I take snapshots every 15 mins.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Juan C. Irizarry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2015 14:30:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/array-setup-and-networking/need-command-line-to-delete-volume-collection-snapshots-based-on/m-p/6983178#M663</guid>
      <dc:creator>jirizarry76</dc:creator>
      <dc:date>2015-06-10T14:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: Need Command Line to delete Volume Collection Snapshots based on date or age of the snapshot.</title>
      <link>https://community.hpe.com/t5/array-setup-and-networking/need-command-line-to-delete-volume-collection-snapshots-based-on/m-p/6983179#M664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Juan, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The "&lt;STRONG&gt;CLI Reference Guide&lt;/STRONG&gt;" can be found on &lt;A href="http://infosight.nimblestorage.com/"&gt;InfoSight&lt;/A&gt;. Once you login to InfoSight, click on the download icon in the top right portion of the page. Under the "&lt;STRONG&gt;Nimble OS&lt;/STRONG&gt;" tab, select your software version and then select the "&lt;STRONG&gt;CLI Reference Guide&lt;/STRONG&gt;" below. In this document, you will find the commands needed to manage your array. The information you are looking for will probably be in Chapter 36 (~page 259.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 13:21:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/array-setup-and-networking/need-command-line-to-delete-volume-collection-snapshots-based-on/m-p/6983179#M664</guid>
      <dc:creator>rhamilton59</dc:creator>
      <dc:date>2015-06-11T13:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Need Command Line to delete Volume Collection Snapshots based on date or age of the snapshot.</title>
      <link>https://community.hpe.com/t5/array-setup-and-networking/need-command-line-to-delete-volume-collection-snapshots-based-on/m-p/6983180#M665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your snapshots follow a specific naming scheme you could use the snapshot collection list to find the ones you want to remove. For example the following line will find all the snapshots that are in the &lt;EM&gt;VMware&lt;/EM&gt; volume collection that have the keyword "hourly" in the name. It then reverse sorts the snapshots based on the date in the name from newest to oldest and only shows the ones after the first 15 lines. Then the tr and cut commands show just the snapshot name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;Nimble OS $ snapcoll --list --volcoll VMware | grep hourly | sort -r -k2 | tail -n +15 | tr -s " " | cut -d " " -f 2&lt;BR /&gt;VMware-hourly-2015-06-17::19:00:00.000&lt;BR /&gt;VMware-hourly-2015-06-17::18:00:00.000&lt;BR /&gt;VMware-hourly-2015-06-17::17:00:00.000&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This can then be used in a for loop to remove those snapshots.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;for x in `snapcoll --list --volcoll VMware | grep hourly | sort -r -k2 | tail -n +15 | tr -s " " | cut -d " " -f 2`; do snapcoll --delete $x --volcoll VMware; done&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2015 14:46:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/array-setup-and-networking/need-command-line-to-delete-volume-collection-snapshots-based-on/m-p/6983180#M665</guid>
      <dc:creator>aherbert23</dc:creator>
      <dc:date>2015-06-18T14:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: Need Command Line to delete Volume Collection Snapshots based on date or age of the snapshot.</title>
      <link>https://community.hpe.com/t5/array-setup-and-networking/need-command-line-to-delete-volume-collection-snapshots-based-on/m-p/6983181#M666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks a lot buddy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2015 15:16:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/array-setup-and-networking/need-command-line-to-delete-volume-collection-snapshots-based-on/m-p/6983181#M666</guid>
      <dc:creator>jirizarry76</dc:creator>
      <dc:date>2015-06-18T15:16:01Z</dc:date>
    </item>
  </channel>
</rss>

