<?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: PSTK 9.11.1 usage of wildcard in get-snapshot in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/PSTK-9-11-1-usage-of-wildcard-in-get-snapshot/m-p/440543#M6657</link>
    <description>&lt;P&gt;For those interested, I tried Powershell Toolkit Version&amp;nbsp;&amp;nbsp;9.8.0 (DataONTAP not&amp;nbsp;&lt;SPAN&gt;NetApp.&lt;/SPAN&gt;&lt;SPAN&gt;ONTAP) and the script works flawlessly.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;Somehow, something has changed in the way PSTK uses ONTAP wildcards here, although the documentation suggests the use of ONTAP wildcards is possible.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Dec 2022 13:51:43 GMT</pubDate>
    <dc:creator>Migo</dc:creator>
    <dc:date>2022-12-14T13:51:43Z</dc:date>
    <item>
      <title>PSTK 9.11.1 usage of wildcard in get-snapshot</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/PSTK-9-11-1-usage-of-wildcard-in-get-snapshot/m-p/440427#M6649</link>
      <description>&lt;P&gt;I found a strange behaviour when listing snapshots with&amp;nbsp;Get-NcSnapshot.&amp;nbsp; Can anyone spot my mistake?&lt;/P&gt;&lt;P&gt;Basically, I try to build a script that modifies&amp;nbsp;snapmirror-labels on all Snapshots containing a certain text string in their name.&lt;/P&gt;&lt;P&gt;This was the script I tried:&amp;nbsp;Get-NcSnapshot -SnapName *sometext* -Volume * | Set-NcSnapshot -SnapmirrorLabel yearly&lt;/P&gt;&lt;P&gt;Since this did not work, I tried it manually:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I connect to the cluster and an SVM with:&lt;/P&gt;&lt;P&gt;Connect-NcController -Name testcluster -Vserver int-nv001-nfs1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I run:&lt;/P&gt;&lt;P&gt;Get-NcSnapshot -Volume *&amp;nbsp;&lt;/P&gt;&lt;P&gt;This only returns Snapshots from the Vserver root Volume&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I run:&lt;/P&gt;&lt;P&gt;Get-NcSnapshot -Volume nfs*&lt;/P&gt;&lt;P&gt;It returns only Snapshots from a Volume called&amp;nbsp;nfs_vdi001_data1 (although there are other Volumes called "nfs_vdi001_data2" and "nfs_vmware001_data1" etc. in the same Vserver)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I run:&lt;/P&gt;&lt;P&gt;Get-NcSnapshot -Volume nfs_vmware* or&amp;nbsp;Get-NcSnapshot -Volume nfs_vmware001_data*&lt;/P&gt;&lt;P&gt;It returns only Snapshots from Volume&amp;nbsp;nfs_vmware001_data1&amp;nbsp;(although there are other Volumes called "nfs_vmware001_data2", "nfs_vmware001_data3" etc.in the same Vserver)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I run:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Get-NcSnapshot -Volume nfs_vmware001_data2&lt;/P&gt;&lt;P&gt;It returns only&amp;nbsp;Snapshots from Volume&amp;nbsp;nfs_vmware001_data2 (as expected)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Target Cluster is ONTAP 9.11.1P4&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 09:54:41 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/PSTK-9-11-1-usage-of-wildcard-in-get-snapshot/m-p/440427#M6649</guid>
      <dc:creator>Migo</dc:creator>
      <dc:date>2025-06-04T09:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: PSTK 9.11.1 usage of wildcard in get-snapshot</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/PSTK-9-11-1-usage-of-wildcard-in-get-snapshot/m-p/440428#M6650</link>
      <description>&lt;P&gt;Could you check this command, if this helps. I don't have setup handy to test this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Get-NcSnapshot -Volume * | where-object {$_ -like "*nfs*" }&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;Get-NcSnapshot -Volume * | where-object {$_ -like "*nfs*" } | Select Name,Volume,Vserver,SnapmirrorLabel&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 14:31:22 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/PSTK-9-11-1-usage-of-wildcard-in-get-snapshot/m-p/440428#M6650</guid>
      <dc:creator>Ontapforrum</dc:creator>
      <dc:date>2022-12-09T14:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: PSTK 9.11.1 usage of wildcard in get-snapshot</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/PSTK-9-11-1-usage-of-wildcard-in-get-snapshot/m-p/440429#M6651</link>
      <description>&lt;P&gt;Those return nothing, probably because in the root volume, there are no Snapshots containing "nfs".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS C:\Windows\system32&amp;gt; Get-NcSnapshot -Volume *&lt;/P&gt;&lt;P&gt;Name Volume Vserver Created Total Cumulative Dependency&lt;BR /&gt;---- ------ ------- ------- ----- ---------- ----------&lt;BR /&gt;weekly.2022-11-27_0015 svm_nfs_vmware001... int-nv001-nfs1 27.11.2022&lt;BR /&gt;weekly.2022-12-04_0015 svm_nfs_vmware001... int-nv001-nfs1 04.12.2022&lt;/P&gt;&lt;P&gt;daily.2022-12-08_0010 svm_nfs_vmware001... int-nv001-nfs1 08.12.2022&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However it the where-object does work:&lt;/P&gt;&lt;P&gt;PS C:\Windows\system32&amp;gt; Get-NcSnapshot -Volume * | where-object {$_ -like "*weekly*" } | Select Name,Volume,Vserver,SnapmirrorLabel&lt;/P&gt;&lt;P&gt;Name Volume Vserver SnapmirrorLabel&lt;BR /&gt;---- ------ ------- ---------------&lt;BR /&gt;weekly.2022-11-27_0015 svm_nfs_vmware001_root int-nv001-nfs1 weekly&lt;BR /&gt;weekly.2022-12-04_0015 svm_nfs_vmware001_root int-nv001-nfs1 weekly&lt;/P&gt;</description>
      <pubDate>Fri, 09 Dec 2022 14:44:08 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/PSTK-9-11-1-usage-of-wildcard-in-get-snapshot/m-p/440429#M6651</guid>
      <dc:creator>Migo</dc:creator>
      <dc:date>2022-12-09T14:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: PSTK 9.11.1 usage of wildcard in get-snapshot</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/PSTK-9-11-1-usage-of-wildcard-in-get-snapshot/m-p/440543#M6657</link>
      <description>&lt;P&gt;For those interested, I tried Powershell Toolkit Version&amp;nbsp;&amp;nbsp;9.8.0 (DataONTAP not&amp;nbsp;&lt;SPAN&gt;NetApp.&lt;/SPAN&gt;&lt;SPAN&gt;ONTAP) and the script works flawlessly.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;Somehow, something has changed in the way PSTK uses ONTAP wildcards here, although the documentation suggests the use of ONTAP wildcards is possible.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 13:51:43 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/PSTK-9-11-1-usage-of-wildcard-in-get-snapshot/m-p/440543#M6657</guid>
      <dc:creator>Migo</dc:creator>
      <dc:date>2022-12-14T13:51:43Z</dc:date>
    </item>
  </channel>
</rss>

