Microsoft Virtualization Discussions

NetApp PowerShell Toolkit 9.7 and Add-NcSnapshotPolicySchedule issue

yaron
1,842 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
1,644 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