NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform.
You will still be able to view content, but posting and replying will be temporarily disabled.
To learn more, please review the information in this blog post.

Microsoft Virtualization Discussions

NetApp PowerShell Toolkit 9.7 and Add-NcSnapshotPolicySchedule issue

yaron
3,002 Views

In the latest version of the NetApp PowerShell Toolkit (9.7) the limit for the -Count variable for the Add-NcSnapshotPolicySchedule is still set to 255. This should be increased to 1023. What is the best way to inform the developers of the toolkit?

1 REPLY 1

donny_lang
2,804 Views

According to the FAQ for the PSTK, the offiical support channel and feature enhancement request method is the community site.  However, as a workaround, you could use Invoke-NcSystemApi to set a count higher than the limit imposed by the Add-NcSnapshotPolicySchedule cmdlet. For example, on an ONTAP 9.6 system: 

 

PS H:\> Get-NcSnapshotPolicy

Policy               Enabled SnapshotPolicySchedules
------               ------- -----------------------
custom                True   {hourly (1)}

$PolicyName = "custom"
$Count = "300"
$Schedule = "daily"

$Request = @"

  <snapshot-policy-add-schedule>
    <count>$Count</count>
    <policy>$PolicyName</policy>
    <schedule>$Schedule</schedule>
  </snapshot-policy-add-schedule>

"@

Invoke-NcSystemApi -Request $Request
PS H:\> Get-NcSnapshotPolicy

Policy               Enabled SnapshotPolicySchedules
------               ------- -----------------------
custom                True   {hourly (1), daily (300)}
Public