Microsoft Virtualization Discussions

Get-NcSnapshot : Object reference not set to an instance of an object.

NcSnapshot-error
897 Views

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

1 REPLY 1

saharsh
804 Views

Hi,
Could you kindly provide us with the debug logs? You can obtain them using the Set-NatoolkitConfiguration debug cmdlet. Additionally, please share the details of the PSTK toolkit version you are using. You can retrieve the toolkit version with the Get-NatoolkitVersion cmdlet. Sharing this information at Mail will assist us in gaining a clearer understanding of the issue.

 

Public