I am trying to set the "snaplock-expiry-time" of a bunch of snapshots using the ONTAP Powershell toolkit...
Ontap 9.13.1P2, Powershell Toolkit 9.13.1.2306
I get the snapshot created value with the Get-NcSnapshot, then add 30 days with the $snapexpdate = $snapshot.Created.adddays(30)
I verify that the variables have been set correctly.
I then use the Set-NcSnapshotSnaplockExpTime with the -ExpiryTime $snapexpdate and the command executes OK.
Only thing is that this sets the "expiry-time" of the snapshot and not the "snaplock-expiry-time" which is not the same thing...
How do I set the "snaplock-expiry-time" of my snapshots?
Of cause I have the correct license (ONTAP One), snaplock compliance clock has been set, and snaplock has been set on the volume... and I am able to set the snaplock-expiry-time from both the commandline and GUI... not apparently not via Powershell... ?
Is this a bug? And is there other ways to set this?