Microsoft Virtualization Discussions

NetApp PowerShell Toolkit 9.7 and Add-NcSnapshotPolicySchedule issue

yaron

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

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)}
Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public