Basic Problem Description : creating tamperproof snapshot polices on cluster - created a powershell script to identify the expired snapshots for the volumes now that the snapshot policy on the volume has been changed to a tamperproof policy. script works great on 9.13.1PX DR cluster but PROD cluster 9.10.1PX is getting the error below.
Get-NcSnapshot : Object reference not set to an instance of an object.
At C:\Users\gwennculbertson\Documents\PROD-vol-snap-list-366days.ps1:62 char:10
+ $list = Get-NcSnapshot -volume $thisVol | where-object {$_.Created - ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Get-NcSnapshot], ArgumentException
+ FullyQualifiedErrorId : Object reference not set to an instance of an object.,DataONTAP.C.PowerShell.SDK.Cmdlets.Snapshot.GetNcSnapshot
Volume=vol_SATA_CIFS_Research_nicoleoreilly_01
Get-NcSnapshot : Object reference not set to an instance of an object.
At C:\Users\gwennculbertson\Documents\PROD-vol-snap-list-366days.ps1:62 char:10
+ $list = Get-NcSnapshot -volume $thisVol | where-object {$_.Created - ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Get-NcSnapshot], ArgumentException
+ FullyQualifiedErrorId : Object reference not set to an instance of an object.,DataONTAP.C.PowerShell.SDK.Cmdlets.Snapshot.GetNcSnapshot