<?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: PS to show what vol does not have Snapshots enabled in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/PS-to-show-what-vol-does-not-have-Snapshots-enabled/m-p/143002#M5856</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/8479"&gt;@asulliva&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Also, to answer the second part of your original post, how to view the volume and it's snapshot policy:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Get-NcVol | Select Vserver,Name,@{N="Snapshot Policy"; E={ $_.VolumeSnapshotAttributes.SnapshotPolicy }}&lt;/PRE&gt;
&lt;P&gt;Andrew&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Just stumbled across this thread as i was looking for the same thing. The above command works great.....except it truncates some of myoutput&amp;nbsp;&amp;nbsp;like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;vserve... abVolume1&amp;nbsp; vserver1__standard_po...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I tidy up the output so i can see the full text?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;TIA&lt;/P&gt;</description>
    <pubDate>Thu, 27 Sep 2018 16:43:47 GMT</pubDate>
    <dc:creator>markey164</dc:creator>
    <dc:date>2018-09-27T16:43:47Z</dc:date>
    <item>
      <title>PS to show what vol does not have Snapshots enabled</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/PS-to-show-what-vol-does-not-have-Snapshots-enabled/m-p/114206#M4630</link>
      <description>&lt;P&gt;Looking to powershell to find what volumes have Snapshots enabled and what snapshot policy is being used.&amp;nbsp; I know you can use Get-NcSnapshotPolicy to see the policies, but does not show which volumes it is applied to.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have not been able to find a PS command that shows what volumes have snapshots enabled.&amp;nbsp; Get-NcSnapshot shows the current snapshots and outputs the volume, but i cant filter show volumes it is not enabled on.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Dec 2015 21:02:39 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/PS-to-show-what-vol-does-not-have-Snapshots-enabled/m-p/114206#M4630</guid>
      <dc:creator>jhawkroche</dc:creator>
      <dc:date>2015-12-31T21:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: PS to show what vol does not have Snapshots enabled</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/PS-to-show-what-vol-does-not-have-Snapshots-enabled/m-p/114208#M4631</link>
      <description>Use Get-NcVolOption to check for the "nosnap" (it may have an underscore) option.&lt;BR /&gt;&lt;BR /&gt;I will post an example when I'm no longer on mobile...&lt;BR /&gt;&lt;BR /&gt;Andrew</description>
      <pubDate>Thu, 31 Dec 2015 21:10:13 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/PS-to-show-what-vol-does-not-have-Snapshots-enabled/m-p/114208#M4631</guid>
      <dc:creator>asulliva</dc:creator>
      <dc:date>2015-12-31T21:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: PS to show what vol does not have Snapshots enabled</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/PS-to-show-what-vol-does-not-have-Snapshots-enabled/m-p/114209#M4632</link>
      <description>&lt;P&gt;Get the folllowing error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;This cmdlet must be directed to a data vserver.&amp;nbsp; You are currently connected&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;BR /&gt;| to the cluster admin vserver.&amp;nbsp; See the Toolkit web docs (Show-NcHelp) or online |&lt;BR /&gt;| help (Get-Help Connect-NcController -Examples) to learn more about directing&amp;nbsp;&amp;nbsp;&amp;nbsp; |&lt;BR /&gt;| Toolkit cmdlets to a cluster or data vserver as required by Data ONTAP.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Was hoping to run it at the cluster, so it would check all SVMs.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Dec 2015 21:16:16 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/PS-to-show-what-vol-does-not-have-Snapshots-enabled/m-p/114209#M4632</guid>
      <dc:creator>jhawkroche</dc:creator>
      <dc:date>2015-12-31T21:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: PS to show what vol does not have Snapshots enabled</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/PS-to-show-what-vol-does-not-have-Snapshots-enabled/m-p/114210#M4633</link>
      <description>Still on mobile, so please forgive any errors (and this obviously isn't tested) as I'm pulling from memory...&lt;BR /&gt;&lt;BR /&gt;Get-NcVol | ?{ ($_ | Get-NcVolOption -Hashtable).value.nosnap -eq "on" }&lt;BR /&gt;&lt;BR /&gt;Andrew</description>
      <pubDate>Thu, 31 Dec 2015 21:24:05 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/PS-to-show-what-vol-does-not-have-Snapshots-enabled/m-p/114210#M4633</guid>
      <dc:creator>asulliva</dc:creator>
      <dc:date>2015-12-31T21:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: PS to show what vol does not have Snapshots enabled</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/PS-to-show-what-vol-does-not-have-Snapshots-enabled/m-p/114211#M4634</link>
      <description>&lt;P&gt;That worked, but shows vault and mirror destination volumes.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Dec 2015 21:33:01 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/PS-to-show-what-vol-does-not-have-Snapshots-enabled/m-p/114211#M4634</guid>
      <dc:creator>jhawkroche</dc:creator>
      <dc:date>2015-12-31T21:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: PS to show what vol does not have Snapshots enabled</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/PS-to-show-what-vol-does-not-have-Snapshots-enabled/m-p/114214#M4636</link>
      <description>&lt;P&gt;Ok, back at a real computer...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There's a few things that we want to accomodate when checking for volumes which do not have snapshot protection:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Not a root volume...this is probably what was causing the errors to show up before&lt;/LI&gt;&lt;LI&gt;Not a data protection volume, which will exclude SnapMirror and SnapVault volumes&lt;/LI&gt;&lt;LI&gt;"nosnap" enabled, indicating snapshot policy has been disabled&lt;/LI&gt;&lt;LI&gt;or a Snap Policy of "none", indicating snaps are enabled, but no schedule is set&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;With all that in mind, we can use PowerShell to check for these things, filtering the things we want and don't want:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Get-NcVol | ?{ 
    # get non-root volumes
    $_.VolumeStateAttributes.IsNodeRoot -eq $false `
    -and
        # which are rw (this will exclude SnapMirror, etc.)
        $_.VolumeIdAttributes.Type -eq "rw" `
    -and 
    (
        # with "nosnap" turned on
        (($_ | Get-NcVolOption -Hashtable).value.nosnap -eq "on") `
        -or 
        # or with snapshot policy set to none
        ($_.VolumeSnapshotAttributes.SnapshotPolicy -eq "none") 
    )
}&lt;/PRE&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Sat, 02 Jan 2016 00:01:05 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/PS-to-show-what-vol-does-not-have-Snapshots-enabled/m-p/114214#M4636</guid>
      <dc:creator>asulliva</dc:creator>
      <dc:date>2016-01-02T00:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: PS to show what vol does not have Snapshots enabled</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/PS-to-show-what-vol-does-not-have-Snapshots-enabled/m-p/114215#M4637</link>
      <description>&lt;P&gt;Also, to answer the second part of your original post, how to view the volume and it's snapshot policy:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Get-NcVol | Select Vserver,Name,@{N="Snapshot Policy"; E={ $_.VolumeSnapshotAttributes.SnapshotPolicy }}&lt;/PRE&gt;&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Sat, 02 Jan 2016 00:06:01 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/PS-to-show-what-vol-does-not-have-Snapshots-enabled/m-p/114215#M4637</guid>
      <dc:creator>asulliva</dc:creator>
      <dc:date>2016-01-02T00:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: PS to show what vol does not have Snapshots enabled</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/PS-to-show-what-vol-does-not-have-Snapshots-enabled/m-p/114256#M4639</link>
      <description>&lt;P&gt;Both of them work great&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2016 17:02:54 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/PS-to-show-what-vol-does-not-have-Snapshots-enabled/m-p/114256#M4639</guid>
      <dc:creator>jhawkroche</dc:creator>
      <dc:date>2016-01-04T17:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: PS to show what vol does not have Snapshots enabled</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/PS-to-show-what-vol-does-not-have-Snapshots-enabled/m-p/143002#M5856</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/8479"&gt;@asulliva&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Also, to answer the second part of your original post, how to view the volume and it's snapshot policy:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Get-NcVol | Select Vserver,Name,@{N="Snapshot Policy"; E={ $_.VolumeSnapshotAttributes.SnapshotPolicy }}&lt;/PRE&gt;
&lt;P&gt;Andrew&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Just stumbled across this thread as i was looking for the same thing. The above command works great.....except it truncates some of myoutput&amp;nbsp;&amp;nbsp;like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;vserve... abVolume1&amp;nbsp; vserver1__standard_po...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I tidy up the output so i can see the full text?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;TIA&lt;/P&gt;</description>
      <pubDate>Thu, 27 Sep 2018 16:43:47 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/PS-to-show-what-vol-does-not-have-Snapshots-enabled/m-p/143002#M5856</guid>
      <dc:creator>markey164</dc:creator>
      <dc:date>2018-09-27T16:43:47Z</dc:date>
    </item>
  </channel>
</rss>

