<?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 Get-NcSnapshot does not return a single snapshot in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NcSnapshot-does-not-return-a-single-snapshot/m-p/440216#M6633</link>
    <description>&lt;P&gt;I'm trying to create a script to add Snapmirror-Labels to snapshots that don't have one.&lt;/P&gt;&lt;P&gt;Although i'm able to get a list of snapshots by Get-NcSnapshot, selecting a single snapshot by this command runs to a "operation timed out".&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;-PowerShell ToolKit Version 9.11.1.2208&lt;/P&gt;&lt;P&gt;-Cluster/Ontap Version 9.10.1P7&lt;/P&gt;&lt;P&gt;-OS: Windows 10 22H2&lt;/P&gt;&lt;P&gt;Running the command as follows&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Get-NcSnapshot -Volume nfs_vmware3_vault | Select Name,Volume,Vserver,SnapmirrorLabel&lt;/LI-CODE&gt;&lt;P&gt;returns a proper list:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Name Volume Vserver SnapmirrorLabel
---- ------ ------- ---------------
VeeamSnapVault_nfs_vmware3_monthly.2021-11-01_0001 nfs_vmware3_vault svm-nfs-dr
VeeamSnapVault_nfs_vmware3_monthly.2021-12-01_0001 nfs_vmware3_vault svm-nfs-dr
...
VeeamSnapVault_nfs_vmware3_monthly.2022-09-01_0001 nfs_vmware3_vault svm-nfs-dr
VeeamSnapVault_nfs_vmware3_monthly.2022-10-01_0001 nfs_vmware3_vault svm-nfs-dr&lt;/LI-CODE&gt;&lt;P&gt;trying to fetch a single object of these:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Get-NcSnapshot -Volume nfs_vmware3_vault -SnapName VeeamSnapVault_nfs_vmware3_monthly.2022-10-01_0001 | Select Name,Volume,Vserver,SnapmirrorLabel&lt;/LI-CODE&gt;&lt;P&gt;runs into a timeout:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Get-NcSnapshot : The operation has timed out
At line:1 char:1
+ Get-NcSnapshot -Volume nfs_vmware3_vault -SnapName VeeamSnapVault_nfs ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Get-NcSnapshot], ArgumentException
+ FullyQualifiedErrorId : The operation has timed out,DataONTAP.C.PowerShell.SDK.Cmdlets.Snapshot.GetNcSnapshot&lt;/LI-CODE&gt;&lt;P&gt;as of this, i'm not able so set a snapmirror label by "Set-NcSnapShot -snapmirrorlabel "xy"...&lt;/P&gt;&lt;P&gt;am i doing something wrong or is this a bug?&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 09:55:12 GMT</pubDate>
    <dc:creator>MAMMANN</dc:creator>
    <dc:date>2025-06-04T09:55:12Z</dc:date>
    <item>
      <title>Get-NcSnapshot does not return a single snapshot</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NcSnapshot-does-not-return-a-single-snapshot/m-p/440216#M6633</link>
      <description>&lt;P&gt;I'm trying to create a script to add Snapmirror-Labels to snapshots that don't have one.&lt;/P&gt;&lt;P&gt;Although i'm able to get a list of snapshots by Get-NcSnapshot, selecting a single snapshot by this command runs to a "operation timed out".&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;-PowerShell ToolKit Version 9.11.1.2208&lt;/P&gt;&lt;P&gt;-Cluster/Ontap Version 9.10.1P7&lt;/P&gt;&lt;P&gt;-OS: Windows 10 22H2&lt;/P&gt;&lt;P&gt;Running the command as follows&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Get-NcSnapshot -Volume nfs_vmware3_vault | Select Name,Volume,Vserver,SnapmirrorLabel&lt;/LI-CODE&gt;&lt;P&gt;returns a proper list:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Name Volume Vserver SnapmirrorLabel
---- ------ ------- ---------------
VeeamSnapVault_nfs_vmware3_monthly.2021-11-01_0001 nfs_vmware3_vault svm-nfs-dr
VeeamSnapVault_nfs_vmware3_monthly.2021-12-01_0001 nfs_vmware3_vault svm-nfs-dr
...
VeeamSnapVault_nfs_vmware3_monthly.2022-09-01_0001 nfs_vmware3_vault svm-nfs-dr
VeeamSnapVault_nfs_vmware3_monthly.2022-10-01_0001 nfs_vmware3_vault svm-nfs-dr&lt;/LI-CODE&gt;&lt;P&gt;trying to fetch a single object of these:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Get-NcSnapshot -Volume nfs_vmware3_vault -SnapName VeeamSnapVault_nfs_vmware3_monthly.2022-10-01_0001 | Select Name,Volume,Vserver,SnapmirrorLabel&lt;/LI-CODE&gt;&lt;P&gt;runs into a timeout:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Get-NcSnapshot : The operation has timed out
At line:1 char:1
+ Get-NcSnapshot -Volume nfs_vmware3_vault -SnapName VeeamSnapVault_nfs ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Get-NcSnapshot], ArgumentException
+ FullyQualifiedErrorId : The operation has timed out,DataONTAP.C.PowerShell.SDK.Cmdlets.Snapshot.GetNcSnapshot&lt;/LI-CODE&gt;&lt;P&gt;as of this, i'm not able so set a snapmirror label by "Set-NcSnapShot -snapmirrorlabel "xy"...&lt;/P&gt;&lt;P&gt;am i doing something wrong or is this a bug?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 09:55:12 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NcSnapshot-does-not-return-a-single-snapshot/m-p/440216#M6633</guid>
      <dc:creator>MAMMANN</dc:creator>
      <dc:date>2025-06-04T09:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Get-NcSnapshot does not return a single snapshot</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NcSnapshot-does-not-return-a-single-snapshot/m-p/440220#M6634</link>
      <description>&lt;P&gt;Ok. I haven't used powershell for some time now and I don't have it installed, so I am not sure if that works. But I googled and found 'where-object', this might give you the result, give this a try:&lt;/P&gt;&lt;P&gt;Sample:&lt;/P&gt;&lt;P&gt;Get-NcSnapshot -Volume nfs_vmware3_vault | Where-Object {$_.Name -eq "VeeamSnapVault_nfs_vmware3_monthly.2022-10-01_0001"} | Select Name,Volume,Vserver,SnapmirrorLabel&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 13:21:50 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NcSnapshot-does-not-return-a-single-snapshot/m-p/440220#M6634</guid>
      <dc:creator>Ontapforrum</dc:creator>
      <dc:date>2022-12-01T13:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: Get-NcSnapshot does not return a single snapshot</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NcSnapshot-does-not-return-a-single-snapshot/m-p/440226#M6635</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;in fact, i don't get the error message anymore. Interestingly, this somehow still doesn't work.&lt;BR /&gt;I changed my code as follows:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;function Tag-Snapshot($Snap){
    If ($Snap.Name -like "*daily*"){
        Write-Log -Info "Found tag 'daily' in Snapshot $Snap Setting its SnapMirror-Label accordingly" -Status Info
        Get-NcSnapshot -Volume $Snap.Volume | ?($_.Name -eq $Snap.Name) | Set-NcSnapShot -SnapmirrorLabel "daily"
    }
}&lt;/LI-CODE&gt;&lt;P&gt;I now don't get a timeout anymore, unfortunately the snapmirrorlabel does not get set without any error message....&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 16:02:36 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NcSnapshot-does-not-return-a-single-snapshot/m-p/440226#M6635</guid>
      <dc:creator>MAMMANN</dc:creator>
      <dc:date>2022-12-01T16:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: Get-NcSnapshot does not return a single snapshot</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NcSnapshot-does-not-return-a-single-snapshot/m-p/440324#M6638</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I had tried on my side with below&lt;/P&gt;&lt;P&gt;-PowerShell ToolKit Version 9.11.1.2208&lt;/P&gt;&lt;P&gt;-Cluster/Ontap Version 9.10.1P7&lt;/P&gt;&lt;P&gt;Every thing is working fine in my side.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Multiple Snapshot:-&lt;/LI&gt;&lt;/UL&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Get-NcSnapshot -Volume bunny3 | Select Name,Volume,Vserver,SnapmirrorLabel&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Name Volume Vserver SnapmirrorLabel&lt;BR /&gt;---- ------ ------- ---------------&lt;BR /&gt;daily.2022-12-04_0010 bunny3 vs1 daily&lt;BR /&gt;weekly.2022-12-04_0015 bunny3 vs1 weekly&lt;BR /&gt;hourly.2022-12-05_0005 bunny3 vs1&lt;BR /&gt;daily.2022-12-05_0010 bunny3 vs1 daily&lt;BR /&gt;hourly.2022-12-05_0105 bunny3 vs1&lt;BR /&gt;hourly.2022-12-05_0205 bunny3 vs1&lt;BR /&gt;hourly.2022-12-05_0305 bunny3 vs1&lt;BR /&gt;hourly.2022-12-05_0405 bunny3 vs1&lt;BR /&gt;hourly.2022-12-05_0505 bunny3 vs1&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Single Snapshot :-&lt;/LI&gt;&lt;/UL&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Get-NcSnapshot -Volume bunny3 -SnapName hourly.2022-12-05_0305 | Select Name,Volume,Vserver,SnapmirrorLabel&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Name Volume Vserver SnapmirrorLabel&lt;BR /&gt;---- ------ ------- ---------------&lt;BR /&gt;hourly.2022-12-05_0305 bunny3 vs1&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Setting snapmirror label&lt;/LI&gt;&lt;/UL&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Get-NcSnapshot -Volume bunny3 -SnapName hourly.2022-12-05_0305 | Select Name,Volume,Vserver,SnapmirrorLabel | Set-NcSnapshot -SnapmirrorLabel "Hourly" | Select Name,Volume,Vserver,SnapmirrorLabel&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Name Volume Vserver SnapmirrorLabel&lt;BR /&gt;---- ------ ------- ---------------&lt;BR /&gt;hourly.2022-12-05_0305 bunny3 vs1 Hourly&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;/P&gt;&lt;P&gt;I think operation time out is might be due to network issue&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 11:14:14 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NcSnapshot-does-not-return-a-single-snapshot/m-p/440324#M6638</guid>
      <dc:creator>AmmarMhowwala</dc:creator>
      <dc:date>2022-12-05T11:14:14Z</dc:date>
    </item>
  </channel>
</rss>

